/* =========================================
   1. RESET E TIPOGRAFIA GLOBAL
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #f8f9fa; /* Cinza de fundo bem suave */
    color: #1e293b; /* Cor de texto padrão (Slate 800) */
    overflow-x: hidden; /* Evita rolagem lateral */
}

/* =========================================
   2. NAVBAR (COMPLETA)
   ========================================= */
.navbar {
    background-color: #0F4D3A; /* Verde Marca */
    height: 70px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    
    /* Fixa no topo */
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Logotipo (Filtro para ficar branco) */
.logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    display: block;
    cursor: pointer;
}

/* Links Centrais */
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #cbd5e1; /* Cinza claro */
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover, 
.nav-links a.active {
    color: #ffffff; /* Branco ao passar o mouse ou ativo */
}

/* Área do Usuário (Direita) */
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: right;
    border-right: 1px solid rgba(255,255,255,0.2);
    padding-right: 20px;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
    object-fit: cover;
}

.user-name {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
}

.user-email {
    color: #94a3b8;
    font-size: 0.75rem;
    display: block;
}

.btn-logout {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: 0.2s;
}

.btn-logout:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

/* =========================================
   3. LAYOUT DA PÁGINA E HEADER
   ========================================= */
.dashboard-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px;
}

.page-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.5rem;
    color: #0F4D3A;
    font-weight: 600;
}

/* Botão Nova Obra */
.btn-primary {
    background-color: #0F4D3A;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
    box-shadow: 0 4px 6px rgba(15, 77, 58, 0.2);
}

.btn-primary:hover {
    background-color: #0a3528;
}

/* =========================================
   4. LISTA DE OBRAS (ACCORDION)
   ========================================= */
.works-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.work-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.work-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Borda verde quando o item está expandido */
.work-item.active {
    border-color: #0F4D3A;
}

/* --- Linha de Resumo (Clicável) --- */
.work-summary {
    padding: 20px 25px;
    display: grid;
    /* Define as larguras das colunas */
    grid-template-columns: 2fr 1.5fr 2fr 40px; 
    align-items: center;
    cursor: pointer;
    gap: 20px;
    background: white;
}

/* Coluna 1: Nome e Status */
.col-info { display: flex; flex-direction: column; gap: 6px; }
.col-info strong { font-size: 1rem; color: #1e293b; }

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    width: fit-content;
}
.status-badge.running { background: #dcfce7; color: #166534; }
.status-badge.late { background: #fee2e2; color: #991b1b; }

/* Coluna 2: Datas */
.col-dates { display: flex; flex-direction: column; gap: 4px; }
.date-item {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.85rem; color: #64748b;
}
.date-item i { color: #0F4D3A; }

/* Coluna 3: Progresso */
.col-progress { display: flex; flex-direction: column; gap: 6px; }
.progress-info {
    display: flex; justify-content: space-between;
    font-size: 0.8rem; color: #64748b;
}
.progress-track {
    width: 100%; height: 8px;
    background: #f1f5f9;
    border-radius: 4px; overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: #0F4D3A;
    border-radius: 4px;
}
.progress-fill.warning { background: #f59e0b; }

/* Coluna 4: Seta */
.col-arrow {
    display: flex; justify-content: center;
    color: #94a3b8;
    transition: transform 0.3s ease;
}
/* Gira a seta quando ativo */
.work-item.active .col-arrow { transform: rotate(180deg); color: #0F4D3A; }

/* --- Detalhes Expansíveis --- */
.work-details {
    max-height: 0; /* Começa fechado */
    overflow: hidden;
    transition: max-height 0.3s ease-out; /* Animação suave */
    background-color: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.details-inner { padding: 25px; }

.details-grid {
    display: grid;
    grid-template-columns: 1fr 250px; /* Texto esquerda, Foto direita */
    gap: 30px;
}

.detail-row {
    margin-bottom: 12px;
    display: flex; flex-direction: column;
}
.detail-row strong { font-size: 0.85rem; color: #64748b; margin-bottom: 2px; }
.detail-row span { font-size: 1rem; color: #334155; font-weight: 500; }

.details-img img {
    width: 100%; height: 150px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.detail-actions {
    margin-top: 20px;
    display: flex; gap: 10px;
}

.btn-outline {
    background: white;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: 0.2s;
}
.btn-outline:hover { border-color: #0F4D3A; color: #0F4D3A; }

/* =========================================
   5. MODAL (ESTILO ELEGANTE)
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 77, 58, 0.2); /* Verde escuro transparente */
    backdrop-filter: blur(4px); /* Desfoque atrás */
    z-index: 2000;
    display: flex; justify-content: center; align-items: center;
    opacity: 1; transition: opacity 0.3s;
}

.modal-overlay.hidden { opacity: 0; pointer-events: none; }

.modal-box {
    background: white;
    width: 100%; max-width: 550px;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid #dcfce7;
    transform: scale(1); transition: transform 0.3s;
}

.hidden .modal-box { transform: scale(0.95); }

.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 25px;
}
.modal-header h3 { font-size: 1.4rem; color: #0F4D3A; font-weight: 600; }
.btn-close { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: #94a3b8; }

/* Formulário */
.form-group { margin-bottom: 16px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

.form-group label {
    display: block; font-size: 0.85rem; color: #475569; margin-bottom: 6px; font-weight: 500;
}

.form-group input {
    width: 100%; padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem; color: #1e293b;
    outline: none; transition: 0.2s;
}

.form-group input:focus {
    border-color: #0F4D3A;
    box-shadow: 0 0 0 3px rgba(15, 77, 58, 0.1);
}

/* Upload de Imagem */
.file-input-wrapper {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 20px;
    text-align: center; color: #64748b;
    cursor: pointer; position: relative;
    transition: 0.2s;
    display: flex; flex-direction: column; align-items: center; gap: 5px;
}
.file-input-wrapper:hover {
    border-color: #0F4D3A; color: #0F4D3A; background: #f0fdf4;
}
.file-input-wrapper input {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; cursor: pointer;
}

/* Rodapé do Modal */
.modal-footer {
    margin-top: 30px;
    display: flex; justify-content: flex-end; gap: 12px;
}

.btn-cancel {
    background: transparent; border: 1px solid transparent; color: #64748b;
    padding: 10px 20px; border-radius: 8px; cursor: pointer; font-weight: 500;
}
.btn-cancel:hover { background: #f1f5f9; }

.btn-confirm {
    background: #0F4D3A; border: none; color: white;
    padding: 10px 24px; border-radius: 8px; cursor: pointer; font-weight: 500;
    box-shadow: 0 4px 10px rgba(15, 77, 58, 0.2);
}
.btn-confirm:hover { background: #0a3528; }

/* =========================================
   6. RESPONSIVIDADE
   ========================================= */
@media (max-width: 900px) {
    .navbar { padding: 0 20px; }
    /* Esconde menu no mobile para simplificar */
    .nav-links, .user-info { display: none; } 
    .user-profile { border: none; padding-right: 0; }
    
    .dashboard-container { padding: 20px; }
    
    .work-summary { grid-template-columns: 1fr auto; }
    .col-dates, .col-progress { display: none; } /* Esconde colunas menos importantes */
    
    .details-grid { grid-template-columns: 1fr; }
    .form-row-2 { grid-template-columns: 1fr; }
}
/* Botão de Perfil (Destaque) */
.btn-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    
    /* Estilo Diferenciado (Cápsula Translúcida) */
    background-color: rgba(255, 255, 255, 0.15); 
    color: white;
    text-decoration: none;
    
    padding: 8px 16px;
    border-radius: 20px; /* Bordas bem redondas */
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent; /* Para evitar pulo no hover */
}

/* Efeito Hover: Fica branco com texto verde */
.btn-profile:hover {
    background-color: #ffffff;
    color: #0F4D3A; /* Verde da marca */
    transform: translateY(-1px); /* Leve subida */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Ajuste no botão de Sair para ficar harmônico ao lado */
.btn-logout {
    /* Se quiser, pode deixar o botão sair apenas como ícone para economizar espaço */
    padding: 8px 12px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    display: flex; align-items: center; justify-content: center;
}

.btn-logout:hover {
    border-color: #fca5a5; /* Vermelho claro ao passar o mouse */
    color: #fca5a5;
    background: rgba(255, 0, 0, 0.05);
}

/* Responsividade: No mobile, esconde o texto 'Minha Conta' e deixa só o ícone */
@media (max-width: 900px) {
    .btn-profile {
        font-size: 0; /* Esconde o texto */
        padding: 10px; /* Ajusta padding para ficar quadrado/redondo */
        border-radius: 50%;
        width: 38px;
        height: 38px;
        justify-content: center;
    }
    
    .btn-profile i {
        font-size: 1.2rem; /* Aumenta o ícone */
    }
}
/* No seu arquivo obras.css */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fundo escuro transparente */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Garante que fique na frente de tudo */
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

/* Essa é a classe que o JS adiciona/remove */
.modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Impede clique quando invisível */
}

.modal-box {
    background: white;
    padding: 24px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
/* Container das informações do usuário na Navbar */
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px; /* Espaço entre o texto e a foto */
    margin-right: 15px;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Alinha o texto à direita (perto da foto) */
    line-height: 1.3;
}

/* Nome do Usuário */
.nav-user-name {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e293b; /* Cinza escuro (Slate 800) - Tira o azul */
}

/* E-mail do Usuário */
.nav-user-email {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #64748b; /* Cinza médio (Slate 500) */
    font-weight: 400;
}

/* Avatar/Foto */
.nav-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Deixa a foto redonda */
    object-fit: cover; /* Garante que a foto não fique esticada */
    border: 2px solid #e2e8f0; /* Borda sutil para destaque */
    background-color: #f1f5f9; /* Cor de fundo caso a imagem demore */
}
/* Container do texto para garantir alinhamento */
.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Alinha texto à direita */
    justify-content: center;
    line-height: 1.4;
    margin-right: 10px;
}

/* NOME: Cor escura (Quase preto) */
.nav-user-name {
    font-family: 'Inter', sans-serif;
    font-weight: 600;      /* Negrito moderado */
    font-size: 0.95rem;    /* Tamanho ideal */
    color: #ffffff;        /* <--- ISSO TIRA O AZUL (Cor Dark Slate) */
    text-decoration: none; /* Garante que não tenha sublinhado */
    display: block;        /* Garante que fique em uma linha própria */
}

/* E-MAIL: Cor cinza médio */
.nav-user-email {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.75rem;    /* Letra um pouco menor */
    color: #ffffff;        /* <--- ISSO DEFINE O CINZA (Cor Slate 500) */
    text-decoration: none;
    display: block;
}

/* Se você envolveu tudo num link <a>, isso garante que o hover não fique azul */
.user-profile a:hover,
.nav-user-name:hover {
    color: #0f172a; /* Mantém a cor mesmo ao passar o mouse */
    cursor: default;
}
/* --- Estilos do Accordion (Abrir e Fechar) --- */

/* Esconde os detalhes por padrão */
.work-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s ease;
    opacity: 0;
    background-color: #f8fafc; /* Fundo levemente cinza para destacar área aberta */
    border-radius: 0 0 8px 8px;
}

/* Quando o JS adiciona a classe .active no pai */
.work-item.active .work-details {
    max-height: 600px; /* Altura máxima suficiente para o conteúdo */
    opacity: 1;
    border-top: 1px solid #e2e8f0;
}

/* Padding interno dos detalhes */
.details-inner {
    padding: 24px;
}

/* Grid para separar Texto e Imagem */
.details-grid {
    display: grid;
    grid-template-columns: 1fr 250px; /* Texto ocupa resto, Imagem fixa 250px */
    gap: 24px;
}

/* Estilo das linhas de detalhe */
.detail-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 8px;
}

.detail-row strong {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 4px;
}

.detail-row span {
    font-size: 1rem;
    color: #1e293b;
    font-weight: 500;
}

/* Imagem da Obra */
.details-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    background-color: #cbd5e1;
}

/* Setinha animada */
.col-arrow i {
    transition: transform 0.3s ease;
}

/* Responsividade para celular */
@media (max-width: 768px) {
    .details-grid {
        grid-template-columns: 1fr; /* Uma coluna só no mobile */
    }
    
    .details-img img {
        height: 180px;
    }
}

/* =========================================
   1. LOADING SPINNER OVERLAY
   ========================================= */
.loading-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    z-index: 9999;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: 0.3s;
}
.loading-overlay.visible { opacity: 1; pointer-events: all; }

.spinner {
    width: 40px; height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #d7a40d; /* Dourado da marca */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.loading-text {
    margin-top: 15px; font-weight: 600; color: #1e293b; font-size: 0.9rem;
    animation: pulse 1.5s infinite;
}

/* =========================================
   2. TOAST NOTIFICATIONS (BADGES)
   ========================================= */
.toast-container {
    position: fixed; top: 20px; right: 20px; z-index: 10000;
    display: flex; flex-direction: column; gap: 10px;
}
.toast {
    min-width: 300px; padding: 16px; border-radius: 8px;
    background: white; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex; align-items: center; gap: 12px;
    border-left: 4px solid #cbd5e1;
    transform: translateX(120%); transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.toast.show { transform: translateX(0); }
.toast.success { border-left-color: #10b981; }
.toast.success i { color: #10b981; }
.toast.error { border-left-color: #ef4444; }
.toast.error i { color: #ef4444; }

/* =========================================
   3. PAGINAÇÃO
   ========================================= */
.pagination-controls {
    display: flex; justify-content: center; align-items: center; gap: 15px;
    margin-top: 30px; padding-bottom: 40px;
}
.btn-page {
    background: white; border: 1px solid #cbd5e1;
    width: 40px; height: 40px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: 0.2s; color: #64748b;
}
.btn-page:hover:not(:disabled) { border-color: #d7a40d; color: #d7a40d; }
.btn-page:disabled { opacity: 0.5; cursor: not-allowed; background: #f1f5f9; }
.page-info { font-size: 0.9rem; color: #64748b; font-weight: 500; }

/* =========================================
   4. MODAL DELETE (Red)
   ========================================= */
.btn-delete-confirm {
    background-color: #ef4444; color: white; border: none;
    padding: 10px 24px; border-radius: 6px; font-weight: 600; cursor: pointer;
}
.btn-delete-confirm:hover { background-color: #dc2626; }
/* Select de Status dentro do Card */
.status-select {
    padding: 6px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #334155;
    background-color: white;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
    margin-left: 8px;
}

.status-select:focus {
    border-color: #d7a40d;
    box-shadow: 0 0 0 2px rgba(215, 164, 13, 0.1);
}

.detail-block {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}
/* --- CABEÇALHO DO CARD (Resumo) --- */
.work-summary {
    display: flex;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    gap: 20px; /* Espaço entre os elementos */
}

/* Isso empurra a seta para o final da linha */
.col-arrow {
    margin-left: auto; 
    color: #94a3b8;
    transition: transform 0.3s ease;
}

/* --- GRID INTERNO DO COLAPSÁVEL (Organização) --- */

/* Cria uma linha com 2 colunas para as datas */
.dates-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Divide em 2 partes iguais */
    gap: 20px;
    margin-bottom: 20px;
    background-color: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.date-box label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 4px;
}

.date-box span {
    color: #334155;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Linha do Status bem definida */
.status-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 15px;
}

.status-label {
    font-weight: 600;
    color: #334155;
    min-width: 60px;
}

.status-select {
    flex: 1; /* Ocupa o resto do espaço ou defina width fixa */
    max-width: 200px;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: white;
    color: #1e293b;
    font-weight: 500;
    cursor: pointer;
}
/* ============================================================
   NAVBAR & MENU RESPONSIVO (COMPLETO)
   ============================================================ */

/* --- Estilos Base (Desktop) --- */
.navbar {
    background-color: #0F4D3A; /* Verde Marca */
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Esconde o controle do menu e o ícone no Desktop */
#menu-check, .menu-hamburguer {
    display: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: white;
}

/* --- Responsividade (Mobile: abaixo de 900px) --- */
@media (max-width: 900px) {
    .navbar {
        padding: 0 20px;
        justify-content: space-between;
    }

    /* Exibe o ícone de hambúrguer */
    .menu-hamburguer {
        display: block;
        color: white;
        font-size: 2rem;
        cursor: pointer;
        order: -1; /* Posiciona à esquerda do logo */
    }

    /* Menu Lateral (Drawer) */
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%; /* Escondido à esquerda */
        width: 280px;
        height: calc(100vh - 70px);
        background-color: #0F4D3A;
        flex-direction: column;
        gap: 5px; /* Espaçamento entre os blocos de link */
        padding-top: 30px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        box-shadow: 10px 0 25px rgba(0,0,0,0.3);
    }

    /* Itens do Menu Mobile */
    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: flex;
        align-items: center;
        padding: 22px 35px; /* Espaço generoso para o clique */
        font-size: 1.1rem;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.03);
        color: #cbd5e1;
    }

    /* Estado Ativo e Hover no Mobile */
    .nav-links a.active {
        background-color: rgba(255, 255, 255, 0.08);
        color: white;
        border-left: 6px solid #ffffff;
        padding-left: 29px; /* Ajuste para compensar a borda lateral */
    }

    .nav-links a:active {
        background-color: rgba(255, 255, 255, 0.15);
    }

    /* LOGICA DE ABERTURA: Quando o checkbox é marcado */
    #menu-check:checked ~ .nav-center .nav-links {
        left: 0; /* Desliza para dentro da tela */
    }

    /* Ajustes de interface mobile */
    .logo { height: 38px; }
    
    .nav-right {
        gap: 15px;
    }

    .btn-profile span, .user-info {
        display: none !important; /* Esconde textos para não quebrar a barra */
    }

    .btn-profile {
        padding: 10px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
    }
}