/* /Components/Layout/MainLayout.razor.rz.scp.css */
html[b-f0kbpsoa56], body[b-f0kbpsoa56] {
    height: 100%;
    overflow: hidden; /* stop browser scroll */
    margin: 0;
}

.page[b-f0kbpsoa56] {
    display: flex;
    height: 100vh;
    overflow: hidden; /* prevent scroll here */
}

.main[b-f0kbpsoa56] {
    flex-grow: 1;
    overflow-y: auto;   /* ADD SCROLL ONLY HERE */
}

/* .page {
    position: relative;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row ::deep a, .top-row ::deep .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row ::deep a:hover, .top-row ::deep .btn-link:hover {
        text-decoration: underline;
    }

    .top-row ::deep a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row {
        justify-content: space-between;
    }

    .top-row ::deep a, .top-row ::deep .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth ::deep a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row, article {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    } */
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-usyzp0qfnp],
.components-reconnect-repeated-attempt-visible[b-usyzp0qfnp],
.components-reconnect-failed-visible[b-usyzp0qfnp],
.components-pause-visible[b-usyzp0qfnp],
.components-resume-failed-visible[b-usyzp0qfnp],
.components-rejoining-animation[b-usyzp0qfnp] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-usyzp0qfnp],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-usyzp0qfnp],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-usyzp0qfnp],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-usyzp0qfnp],
#components-reconnect-modal.components-reconnect-retrying[b-usyzp0qfnp],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-usyzp0qfnp],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-usyzp0qfnp],
#components-reconnect-modal.components-reconnect-failed[b-usyzp0qfnp],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-usyzp0qfnp] {
    display: block;
}


#components-reconnect-modal[b-usyzp0qfnp] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-usyzp0qfnp 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-usyzp0qfnp 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-usyzp0qfnp 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-usyzp0qfnp]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-usyzp0qfnp 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-usyzp0qfnp {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-usyzp0qfnp {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-usyzp0qfnp {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-usyzp0qfnp] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-usyzp0qfnp] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-usyzp0qfnp] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-usyzp0qfnp] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-usyzp0qfnp] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-usyzp0qfnp] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-usyzp0qfnp] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-usyzp0qfnp 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-usyzp0qfnp] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-usyzp0qfnp {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Layout/SideBar.razor.rz.scp.css */
/* === Wrapper === */
.wrapper[b-ze58r3lpf0] {
    display: flex;
    height: 100%;
}

/* === Sidebar Base === */
.sidebar[b-ze58r3lpf0] {
    width: 70px;
    background: #fff;
    border-right: 1px solid var(--bs-border-color);
    color: var(--gray-700);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: width 0.25s ease-in-out; /*sidebar background expand/collapse*/
    height: 100vh; /* 👈 ensure full height as well */
}
.sidebar.expand[b-ze58r3lpf0] {
    width: 260px;
}
/* Expanded sidebar: reveal text */
.sidebar.expand .sidebar-link i[b-ze58r3lpf0] {
    max-width: 180px !important; /* adjust as needed */
    opacity: 1;
}

/* === Toggle Button === */
.toggle-btn[b-ze58r3lpf0] {
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
}
.toggle-btn i[b-ze58r3lpf0] {
    font-size: 1.5rem;
    color: var(--gray-700);
}

/* === Logo === */
.sidebar-logo[b-ze58r3lpf0] {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1.25rem;
    margin-left: 0.5rem;
    transition: opacity 0.25s ease-in-out;
}
.sidebar:not(.expand) .sidebar-logo[b-ze58r3lpf0] {
    opacity: 0;
    pointer-events: none;
}

/* === Nav Structure === */
.sidebar-nav[b-ze58r3lpf0] {
    margin: 0;
    padding: 0;
    list-style: none; 
}
.sidebar-item[b-ze58r3lpf0] {
    margin: 0.25rem 1rem;
}
.sidebar:not(.expand) .sidebar-item[b-ze58r3lpf0]{
    margin: 0.25rem 0.75rem;
}

/* === Nav Link using deep for 'a' tag generated by the tag 'navlink' === */
.sidebar-item[b-ze58r3lpf0]  .sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    line-height: 1.25rem;
    min-height: 42px;
    color: inherit;
    white-space: nowrap;
    transition: all 0.2s ease-in-out; /*transition color(hover/active) of link in sidebar*/
}
/* IconUtil wrapper (span) */
.sidebar-item[b-ze58r3lpf0]  .sidebar-link span {
    display: inline-flex;
    align-items: center;
}
/* Icon svg inherits text color */
.sidebar-item[b-ze58r3lpf0]  .sidebar-link span svg {
    width: 21px !important;
    height: 21px !important;
    flex-shrink: 0;
}

/* Text <i> element */
.sidebar-item[b-ze58r3lpf0]  .sidebar-link i {
    font-style: normal; /* prevent italic */
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    display: inline-block;
    transition: max-width 0.25s ease-in-out, opacity 0.25s ease-in-out;
}

/* === Hover === */
.sidebar-item[b-ze58r3lpf0]  .sidebar-link:hover {
    background: var(--bs-secondary);
    border-color: var(--bs-border-color);    
    color: #000;
}

/* === Active === */
.sidebar-item[b-ze58r3lpf0]  .sidebar-link.active {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff !important;
}
.sidebar-item[b-ze58r3lpf0]  .sidebar-link.active:hover {
    background: rgba(var(--bs-primary-rgb), 0.85);
    border-color: rgba(var(--bs-primary-rgb), 0.85);
}

/* === Collapsed Mode === */
.sidebar:not(.expand) .sidebar-item[b-ze58r3lpf0]  .sidebar-link {
    justify-content: center;
    padding-left: 0.625rem;
    padding-right: 0.625rem;
}

/* Hide only the text <i> when collapsed */
.sidebar:not(.expand) .sidebar-item[b-ze58r3lpf0]  .sidebar-link i {
    opacity: 0;
    display: none;
}
/* icon centered vertically when collapsed */
.sidebar:not(.expand) .sidebar-item[b-ze58r3lpf0]  .sidebar-link span {
    display: flex;
    align-items: center;
    justify-content: center;
}
/* /Components/Pages/Auth/Login.razor.rz.scp.css */


.auth-container[b-x0uscj5ezd] {
    display: flex;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    background-color: var(--bs-primary);
}

/* Seção da Marca (Esquerda Desktop / Topo Mobile) */
.auth-brand-section[b-x0uscj5ezd] {
    display: none; /* Controlado via media query */
    flex: 1;
    background-color: var(--bs-primary);
    color: #ffffff;
    padding: 2rem;
    position: relative;
}

/* Contêiner principal do conteúdo da marca */
.brand-content[b-x0uscj5ezd] {
    max-width: 450px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    /* A chave aqui é NÃO usar justify-content: center no pai se quisermos controle fino dos filhos */
}

/* Wrapper para centralizar Logo e Texto no espaço disponível */
.brand-centered-content[b-x0uscj5ezd] {
    flex: 1; /* Ocupa todo o espaço disponível acima do footer */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centraliza verticalmente o conteúdo interno */
}

.brand-text h2[b-x0uscj5ezd]{
    color: white;
}

.brand-logo[b-x0uscj5ezd] {
    width: 180px;
    max-width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 1.5rem;
}

.brand-footer p[b-x0uscj5ezd] {
    /* O footer fica naturalmente no final porque o brand-centered-content empurra */
    opacity: 0.8;
    font-size: 0.85rem;
    color: white;
}

/* Seção do Formulário (Direita Desktop / Corpo Mobile) */
.auth-form-section[b-x0uscj5ezd] {
    flex: 1;
    display: flex;
    flex-direction: column; /* Essencial para posicionar o footer mobile */
    padding: 1.5rem;
    background-color: #f8f9fa;
    position: relative;
}

.form-content-wrapper[b-x0uscj5ezd] {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Centraliza o card por padrão */
}

/* --- CARD DE LOGIN --- */
.auth-card[b-x0uscj5ezd] {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
    animation: fadeIn-b-x0uscj5ezd 0.5s ease-out;
}

.card-header-custom[b-x0uscj5ezd] {
    text-align: center;
    margin-bottom: 2rem;
}

/* Logo pequena "D" */
.logo-symbol[b-x0uscj5ezd] {
    background-color: var(--bs-primary);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}
.logo-text[b-x0uscj5ezd] {
    font-weight: 600;
    font-size: 1.2rem;
    color: #333;
}

/* --- INPUTS E BOTÕES --- */
.form-label[b-x0uscj5ezd] {
    font-weight: 500;
    font-size: 0.9rem;
    color: #4b5563;
}

.custom-input[b-x0uscj5ezd] {
    height: 46px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    background-color: #fff;
    transition: all 0.2s ease;
}

.custom-input:focus[b-x0uscj5ezd] {
    background-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.password-container[b-x0uscj5ezd] {
    position: relative;
}

/* O input de senha precisa de padding na direita para o texto não ficar atrás do ícone */
.password-input[b-x0uscj5ezd] {
    padding-right: 48px; 
}

/* O botão "flutua" sobre o input */
.btn-password-toggle[b-x0uscj5ezd] {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%); /* Centraliza verticalmente exato */
    background: transparent;
    border: none;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af; /* Cor cinza suave */
    cursor: pointer;
    z-index: 5;
    border-radius: 50%;
    transition: background-color 0.2s, color 0.2s;
}

.btn-password-toggle:hover[b-x0uscj5ezd] {
    color: var(--brand-color);
    background-color: rgba(0,0,0,0.04); /* Efeito hover sutil */
}

.validation-msg-container[b-x0uscj5ezd] {
    min-height: 20px; /* Evita pulo de layout */
}
.validation-message[b-x0uscj5ezd] {
    font-size: 0.8rem;
    color: #dc3545;
    margin-top: 4px;
}

/* --- RESPONSIVIDADE (Media Queries) --- */

/* DESKTOP (acima de 768px) */
@media (min-width: 768px) {
    .auth-brand-section[b-x0uscj5ezd] {
        display: flex;
        justify-content: center; /* Centraliza o container brand-content horizontalmente */
    }
    
    .brand-content[b-x0uscj5ezd] {
        align-items: flex-start; /* Alinha itens à esquerda */
        text-align: left;
    }

    .auth-form-section[b-x0uscj5ezd] {
        background-color: #f3f4f6; /* Fundo cinza claro */
        align-items: center;
        justify-content: center;
    }
}


/* MOBILE (abaixo de 768px) */
@media (max-width: 767.98px) {
    .auth-container[b-x0uscj5ezd] {
        flex-direction: column;
    }

    .auth-brand-section[b-x0uscj5ezd] {
        display: flex;
        flex: 0 0 auto;
        padding: 2rem 1rem 1rem 1rem;
        min-height: auto;
        justify-content: center;
    }

    .brand-content[b-x0uscj5ezd] {
        align-items: center;
        text-align: center;
        height: auto;
        display: block; /* Simplifica layout no topo mobile */
    }

    /* No mobile, o brand-centered-content não precisa de flex grow, apenas exibe o logo */
    .brand-centered-content[b-x0uscj5ezd] {
        display: block; 
    }

    .brand-logo[b-x0uscj5ezd] {
        width: 150px;
        margin-bottom: 0.5rem;
    }

    .auth-form-section[b-x0uscj5ezd] {
        flex: 1;
        background-color: var(--bs-primary); /* Fundo Laranja no mobile */
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    /* Ajuste do wrapper para mobile: permite que o copyright vá para o fundo */
    .form-content-wrapper[b-x0uscj5ezd] {
        justify-content: space-between; /* Card no topo/meio, Footer no fundo */
        min-height: 100%; /* Garante que ocupe a altura restante da tela */
    }

    .auth-card[b-x0uscj5ezd] {
        padding: 2rem 1.5rem;
        /* No mobile, o card pode subir um pouco se houver espaço, ou ficar no topo */
        margin-bottom: auto; 
    }

    .mobile-slogan[b-x0uscj5ezd] {
        margin-bottom: 2rem;
    }
}

@keyframes fadeIn-b-x0uscj5ezd {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* /Components/Shared/AppModal.razor.rz.scp.css */
.modal-overlay[b-vqal4u1bvs] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.app-modal[b-vqal4u1bvs] {
    background: #fff;
    border-radius: 14px;
    width: 420px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,.15);
    position: relative;
    animation: fadeIn-b-vqal4u1bvs .2s ease-out;
}

.modal-icon[b-vqal4u1bvs] {
    font-size: 42px;
    margin-bottom: 16px;
}

.app-modal h4[b-vqal4u1bvs] {
    font-weight: 600;
    margin-bottom: 10px;
}

.app-modal p[b-vqal4u1bvs] {
    color: #555;
    font-size: 15px;
    margin-bottom: 24px;
}

.modal-actions[b-vqal4u1bvs] {
    display: flex;
    justify-content: center;
}

.btn-primary[b-vqal4u1bvs] {
    background-color: #F97316;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 500;
}

.close-btn[b-vqal4u1bvs] {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    color: black;
    cursor: pointer;
}

/* Tipos */
.success .modal-icon[b-vqal4u1bvs] { color: #22C55E; }
.error .modal-icon[b-vqal4u1bvs] { color: #EF4444; }
.warning .modal-icon[b-vqal4u1bvs] { color: #F59E0B; }
.confirm .modal-icon[b-vqal4u1bvs] { color: #3B82F6; }
.info .modal-icon[b-vqal4u1bvs] { color: #6366F1; }

@keyframes fadeIn-b-vqal4u1bvs {
    from {
        opacity: 0;
        transform: scale(.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
