/* ============================================================
   ESTILOS GERAIS E RESET
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    padding-top: 60px; 
}

/* ============================================================
   CONFIGURAÇÃO DO TOPO FIXO (HEADER)
   ============================================================ */
.header-fixo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px; 
    background-color: #ffffff;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-bottom: 2px solid #f1c40f; 
    overflow: hidden; 
}

.container-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 15px;
    max-width: 1200px;
    margin: 0 auto;
    
}

.img-logo {
    max-height: 32px; /* Reduzido levemente para maior respiro */
    width: auto;
    display: block;
}

.menu-sanduiche { 
    font-size: 1.3rem; /* Reduzido: Ícone mais discreto */
    cursor: pointer; 
    color: #0056b3;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    min-height: 35px;
}

/* ============================================================
   SIDEBAR (MENU LATERAL)
   ============================================================ */
.sidebar {
    position: fixed;
    top: 0;
    right: -260px; 
    width: 260px;
    height: 100%;
    background-color: #ffffff;
    z-index: 2000;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 15px rgba(0,0,0,0.08);
    padding: 10px; /* Reduzido o padding interno */
    display: flex;
    flex-direction: column;
}

.sidebar.ativo {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

#btn-fechar-menu {
    font-size: 1.5rem; /* Reduzido */
    color: #2c3e50;
    cursor: pointer;
    padding: 5px;
}

/* Links do Menu Lateral */
.menu-links {
    list-style: none;
}

.menu-links li {
    border-bottom: 1px solid #f8f8f8;
}

.menu-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 10px; /* Mais compacto */
    text-decoration: none;
    color: #0056b3;
    font-weight: 500; /* Peso médio para não pesar visualmente */
    font-size: 0.85rem; /* Fonte pequena e elegante para Notebook/Desktop */
    transition: all 0.2s;
}

.menu-links a i {
    font-size: 1rem; /* Ícones acompanhando o texto pequeno */
    width: 18px;
    text-align: center;
    opacity: 0.8;
}

/* Destaque para o usuário logado */
.user-info {
    padding: 10px;
    color: #e67e22;
    font-weight: 600;
    font-size: 0.8rem; /* Saudação menor */
    background: #fffdf5;
    border-radius: 4px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #fffae6;
}

/* Fundo Escuro (Overlay) */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 1500;
}

.overlay.ativo {
    display: block;
}

/* ============================================================
   RESPONSIVIDADE (MEDIA QUERIES)
   ============================================================ */

/* Celulares (Abaixo de 480px) */
@media (max-width: 480px) {
    .img-logo {
        max-height: 30px;
    }
    
    .sidebar {
        width: 70%; /* Menu um pouco mais estreito */
        right: -70%;
    }
    
    .menu-links a {
        padding: 10px 8px;
        font-size: 0.82rem; /* Fonte bem compacta para celular */
    }

    .user-info {
        font-size: 0.75rem;
    }
}