/* _content/ServicoDocente/Components/Layout/MainLayout.razor.rz.scp.css */

/* --- VARIÁVEIS DE CORES GLOBAIS (ESTILO AEGP) --- */
:root[b-codeblztua] {
    --sidebar-bg: #0f2c59; /* Azul Escuro Oficial do AEGP */
    --sidebar-logo-bg: #0c2449; /* Tom ligeiramente mais escuro para o topo */
    --page-bg: #f4f5f7; /* Cinza claro para destacar os painéis brancos */
    --border-color: #e5e7eb; /* Linhas divisórias suaves */
    --text-muted: #6b7280;
}

/* --- ESTRUTURA BASE DA APP --- */
.page[b-codeblztua] {
    display: flex;
    flex-direction: row;
    background-color: var(--page-bg);
    height: 100vh;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    width: 100vw;
}

main[b-codeblztua] {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    height: 100vh;
}


/* --- BARRA LATERAL (SIDEBAR) FLUIDA & COLAPSÁVEL --- */
.sidebar[b-codeblztua] {
    background-color: #0f2c59;
    width: 240px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    /* Transição suave de largura (efeito encolher/esticar) */
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
    z-index: 100;
    height: 100vh;
}

    /* Estado Colapsado: Reduz a largura para focar apenas nos ícones */
    .sidebar.collapsed[b-codeblztua] {
        width: 70px;
    }

/* Contentor do Logótipo no topo da Sidebar */
.sidebar-logo-container[b-codeblztua] {
    height: 65px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background-color: var(--sidebar-logo-bg);
}

.sidebar-logo[b-codeblztua] {
    max-width: 80%;
    height: auto;
    object-fit: contain;
}

/* --- BARRA SUPERIOR (HEADER) --- */
.top-row[b-codeblztua] {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

/* Botão do Hambúrguer Menu */
.burger-btn[b-codeblztua] {
    background: none;
    border: none;
    color: #4b5563;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .burger-btn:hover[b-codeblztua] {
        background-color: #f3f4f6;
        color: var(--sidebar-bg);
    }

/* Título da Aplicação no Topo */
.app-title[b-codeblztua] {
    color: #111827;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Zona do Perfil / Ações à Direita */
.header-actions[b-codeblztua] {
    font-size: 0.9rem;
    color: #4b5563;
}

.user-profile[b-codeblztua] {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --- ÁREA DE CONTEÚDO PRINCIPAL --- */
.content[b-codeblztua] {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
    /* Recria as linhas milimétricas em grelha muito suaves do teu mockup */
    background-image: linear-gradient(rgba(0, 0, 0, 0.015) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, 0.015) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* --- ANIMAÇÕES DE TRANSIÇÃO DO LOGO --- */
.animate-fade-in[b-codeblztua] {
    animation: fadeIn-b-codeblztua 0.2s ease forwards;
}

@keyframes fadeIn-b-codeblztua {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- RESPONSIVIDADE PARA ECRÃS PEQUENOS --- */
@media (max-width: 767.98px) {
    .page[b-codeblztua] {
        flex-direction: column;
    }

    .sidebar[b-codeblztua] {
        width: 100%;
        height: auto;
    }

        .sidebar.collapsed[b-codeblztua] {
            display: none; /* Esconde completamente em mobile se colapsado */
        }

    .top-row[b-codeblztua] {
        padding: 0 1rem;
    }
}



/* _content/ServicoDocente/Components/Layout/NavMenu.razor.rz.scp.css */
.nav-scrollable[b-wk9r2rmay6] {
    padding-top: 1rem;
}

.nav-item[b-wk9r2rmay6]  a {
    color: #94a3b8 !important;
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: all 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
}

    /* Ícone maior e centralizado */
    .nav-item[b-wk9r2rmay6]  a i {
        font-size: 1.25rem;
        width: 24px;
        display: inline-flex;
        justify-content: center;
        align-items: center;
    }

.nav-text[b-wk9r2rmay6] {
    margin-left: 12px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Hover */
.nav-item[b-wk9r2rmay6]  a:hover {
    background-color: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
}

/* Ativo */
.nav-item[b-wk9r2rmay6]  a.active {
    background-color: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border-left: 4px solid #3b82f6; /* Pequeno detalhe azul de página ativa */
    border-radius: 0 8px 8px 0;
}

/* Ajuste fino quando a barra estiver colapsada */
[b-wk9r2rmay6] .collapsed .nav-item a {
    justify-content: center;
    padding: 0.8rem 0;
}
