/* --- VARIAVEIS E RESET --- */
:root {
    /* [ALTERADO] Paleta baseada na logo Conecta Talentos (Rosa e Laranja) */
    --primary: #e91e63;       /* Rosa vibrante */
    --primary-dark: #c2185b;  /* Rosa escuro */
    --secondary: #ff9800;     /* Laranja (Novo) */
    --accent: #1e293b;        /* Mantido escuro para contraste */
    
    --text-main: #333333;
    --text-light: #666666;
    --bg-page: #fafafa;       /* Fundo mais limpo */
    --bg-card: #ffffff;
    --success: #16a34a;       
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.02); /* Sombras mais suaves (Minimalismo) */
    --shadow-md: 0 4px 12px rgba(233, 30, 99, 0.08); /* Sombra colorida suave */
    --shadow-lg: 0 15px 30px rgba(0,0,0,0.08);
    
    --radius-card: 24px; /* Bordas mais arredondadas (Moderno) */
    --radius-btn: 50px;  /* Botões pílula */
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    overflow-x: hidden; 
    min-height: 100vh;
    width: 100%;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem; /* Levemente mais compacta */
    background: rgba(255, 255, 255, 0.95); /* Leve transparência */
    backdrop-filter: blur(10px); /* Efeito de desfoque moderno (estilo vidro) */
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    transition: transform 0.3s ease-in-out, padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar--hidden {
    transform: translateY(-100%); /* Move para cima, fora da tela */
    box-shadow: none;
}

.navbar--scrolled {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-shadow: var(--shadow-md);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
}
.brand img { height: 70px; width: auto; }

.btn-nav {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-btn);
    transition: 0.2s;
}
.btn-nav:hover { background: #f1f5f9; color: var(--primary); }

.hero-section {
    flex: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 4rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%; 
}

.form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg-page);
}

.upload-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 500px;
}

.hero-section h1 { font-size: 3rem; margin-bottom: 1rem; line-height: 1.1; }


.split-screen {
    display: flex;
    min-height: 100vh; 
    padding-top: 80px; 
}
.main-navbar {
    background-color: rgba(255, 255, 255, 0.9); 
    backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    box-shadow: var(--shadow-sm);
    position: sticky; /* Sticky para facilitar navegação mobile */
    top: 0;
    z-index: 100; 
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
}

.site-logo {
    max-height: 50px; /* Ajustado para a proporção horizontal da logo Conecta */
    width: auto; 
    display: block;
}

/* Botões de Navegação */
.btn-student {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: var(--radius-btn);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-family: var(--font-heading);
    font-size: 0.9rem;
}

.btn-student:active { transform: scale(0.95); } /* Feedback tátil */
.btn-student:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(219, 39, 119, 0.3);
}

/* --- HERO SECTION --- */
.hero {
    /* Gradiente baseado na logo: Rosa para Amarelo/Laranja */
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 4rem 1.5rem 5rem;
    text-align: center;
    position: relative;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.tag {
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    display: inline-block;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.3);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* --- PESQUISA FLUTUANTE --- */
.search-wrapper {
    display: flex;
    justify-content: center;
    margin: -3.5rem 1rem 1.5rem; /* Puxa para cima para entrar na Hero */
    position: relative;
    z-index: 90;
}

.search-box {
    background: white;
    padding: 8px 8px 8px 20px;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 500px;
    gap: 10px;
}

.search-input {
    border: none;
    background: transparent;
    flex-grow: 1;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-main);
    outline: none;
}

.search-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}
.search-btn:active { transform: scale(0.9); }

/* --- FILTROS (SCROLL HORIZONTAL) --- */
.filter-wrapper {
    position: sticky;
    top: 70px; /* Logo abaixo da navbar */
    z-index: 80;
    margin-bottom: 2rem;
    background: rgba(248, 250, 252, 0.95); /* Cor do fundo com transparência */
    padding: 10px 0;
    backdrop-filter: blur(5px);
}

.filter-container {
    display: flex;
    overflow-x: auto;
    padding: 0 1.5rem;
    gap: 10px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
    justify-content: flex-start; /* Alinha a esquerda no mobile */
    flex-wrap: nowrap; /* Impede quebra de linha no mobile */
    overflow-x: auto;  /* Permite rolagem lateral */
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch; /* Rolagem suave no iOS */
    scrollbar-width: none; /* Firefox */
}
.filter-container::-webkit-scrollbar { display: none; } 

.filter-btn {
    padding: 8px 20px;
    border: 1px solid #e2e8f0;
    background: white;
    color: var(--text-light);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50px;
    cursor: pointer;
    white-space: nowrap; /* Impede quebra de linha */
    transition: all 0.2s ease;
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(219, 39, 119, 0.25);
}

/* --- CARDS E GRID --- */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem 2rem;
}

.course-card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    animation: fadeUp 0.6s forwards;
}

.course-card:active { transform: scale(0.98); } /* Feedback click mobile */
.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    height: 180px;
    position: relative;
    overflow: hidden;
}

.card-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px; /* Badge na esquerda fica mais moderno */
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-dark);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.course-subtitle {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Botões do Card */
.btn {
    padding: 12px;
    border-radius: var(--radius-btn);
    border: none;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: 0.2s;
    font-size: 0.95rem;
}

/* Estilo para Botão Principal de Ação */
.btn-whatsapp {
    background: linear-gradient(90deg, var(--primary) 0%, #be185d 100%);
    color: white;
    width: 100%;
    box-shadow: 0 4px 6px rgba(219, 39, 119, 0.2);
}
.btn-whatsapp:active { transform: scale(0.96); }

/* Estilo para Botão de Detalhes (Cinza/Outline) */
.btn-info {
    width: 100%;
    background-color: #f1f5f9;
    color: var(--text-main);
    margin-top: auto; /* Empurra para o fundo */
}
.btn-info:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

/* --- FABs (Botões Flutuantes) --- */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 900;
    transition: transform 0.2s;
}
.floating-whatsapp:active { transform: scale(0.9); }

.fab-creator {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--accent);
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: none; /* Controlado via JS */
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: 900;
    border: none;
}
.fab-creator.admin-visible { display: flex; animation: fadeUp 0.5s forwards; }

/* --- MODAIS E PAINÉIS --- */
.creator-section {
    display: none;
    padding: 0 1.5rem 4rem;
}
.creator-section.active { display: block; animation: fadeUp 0.4s; }

.form-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-lg);
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.8); /* Fundo mais escuro */
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center; 
    opacity: 0; visibility: hidden;
    transition: all 0.3s;
    padding: 20px;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content {
    background: white;
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    border-radius: 24px;
    overflow-y: auto;
    position: relative;
    transform: translateY(50px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.form-group { margin-bottom: 1.5rem; }
.label { display: block; font-weight: 600; margin-bottom: 0.5rem; color: var(--accent); }
.input, .select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    outline: none;
    transition: 0.3s;
}
.input:focus, .select:focus { border-color: var(--primary); }

.dropzone {
    border: 2px dashed #cbd5e1;
    padding: 2rem;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
}
.dropzone:hover { border-color: var(--primary); background: #fff1f2; }

/* Botão Principal */
.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-btn);
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.2s;
}
.btn-primary:active { transform: scale(0.98); }

/* --- PÁGINA ADMIN (admin.html) --- */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto; /* Remove margem superior fixa */
    padding: 2rem 1.5rem;
    padding-top: 100px; 
}

/* --- KPIs Cards --- */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* Responsivo automático */
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.kpi-card {
    background: white;
    padding: 1.75rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f0f2f5;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    /* Adicionando ícones via CSS (opcional, para dar um tchan) */
    position: relative;
    overflow: hidden;
}

/* Efeito de hover nos cards */
.kpi-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.kpi-label { 
    color: var(--text-light); 
    font-size: 0.95rem; 
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-value { 
    font-size: 2.5rem; 
    font-weight: 800; 
    color: var(--accent);
    line-height: 1;
}

/* Cores específicas para cada KPI (baseado na ordem) */
.kpi-card:nth-child(1) .kpi-value { color: var(--primary); }
.kpi-card:nth-child(2) .kpi-value { color: var(--secondary); }
.kpi-card:nth-child(3) .kpi-value { color: #10b981; /* Verde para Aprovados */ }
.kpi-card:nth-child(4) .kpi-value { color: var(--accent); }


/* --- Tabela e Toolbar --- */
.table-container {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid #f0f2f5;
    overflow: hidden; /* Importante para o border-radius */
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.toolbar h2 {
    font-family: var(--font-heading);
    color: var(--accent);
    margin: 0;
}

/* Container da tabela para rolagem horizontal suave */
.table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table { 
    width: 100%; 
    border-collapse: separate; /* Necessário para border-radius nas linhas */
    border-spacing: 0; /* Remove espaço entre células */
    white-space: nowrap; /* Evita quebra de texto em telas médias */
}

thead th {
    background-color: #f8fafc;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    padding: 1.2rem 1rem;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
}
/* Arredondar cantos do header da tabela */
thead th:first-child { border-top-left-radius: 12px; }
thead th:last-child { border-top-right-radius: 12px; }

tbody td {
    padding: 1.2rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-main);
    font-weight: 500;
}

/* Efeito de hover na linha da tabela */
tbody tr:hover td {
    background-color: #fff1f2; /* Um rosa bem clarinho */
}

/* Badges de Status (Adicione essas classes nas suas <td> de status no HTML futuro) */
.status-badge {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
}
.status-novo { background: #dbeafe; color: #1e40af; }
.status-analise { background: #fef3c7; color: #92400e; }

/* Ações */
.actions-cell {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    border: none; 
    background: #f1f5f9; 
    width: 36px; 
    height: 36px;
    border-radius: 10px; /* Quadrado arredondado moderno */
    cursor: pointer; 
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s all;
}
.btn-icon:hover { 
    background: var(--primary); 
    color: white; 
    transform: scale(1.1);
}
.btn-pdf:hover { background: #dc2626; }

/* =========================================
   RESPONSIVIDADE AVANÇADA ADMIN
   ========================================= */
@media (max-width: 768px) {
    .dashboard-container { padding: 0 1rem; margin-top: 1rem;}
    .table-container { padding: 1.25rem; }
    
    .toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .search-box { width: 100%; }
    .input { width: 100%; }

    /* Transforma a tabela em Cards no mobile (Visual muito melhor) */
    table, thead, tbody, th, td, tr { 
        display: block; 
    }
    
    /* Esconde o cabeçalho da tabela */
    thead tr { 
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    tbody tr {
        background: white;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        margin-bottom: 1rem;
        padding: 1rem;
        box-shadow: var(--shadow-sm);
    }
    
    tbody td {
        /* Faz cada célula parecer uma linha chave/valor */
        border: none;
        position: relative;
        padding: 0.5rem 0;
        padding-left: 40%; /* Espaço para o label */
        display: flex;
        align-items: center;
        white-space: normal; /* Permite quebra de texto */
    }
    
    /* Adiciona os labels "fake" antes do conteúdo */
    tbody td:before {
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        width: 35%;
        white-space: nowrap;
        font-weight: 600;
        color: var(--text-light);
        font-size: 0.85rem;
    }

    td:nth-of-type(1):before { content: "Candidato"; }
    td:nth-of-type(2):before { content: "Vaga"; }
    td:nth-of-type(3):before { content: "Data"; }
    td:nth-of-type(4):before { content: "Status"; }
    td:nth-of-type(5):before { content: "Ações"; }

    /* Ajuste específico para a célula de ações no modo card */
    tbody td:last-child {
        padding-left: 0;
        justify-content: flex-end;
        padding-top: 1rem;
        border-top: 1px solid #f1f5f9;
        margin-top: 0.5rem;
    }
    tbody td:last-child:before { display: none; } /* Remove label de ações */
}
@media (max-width: 900px) {
    /* 1. Transforma a tela dividida em coluna única */
    .split-screen {
        flex-direction: column;
    }

    /* 2. Ajusta Hero para ficar no topo */
    .hero-section {
        padding: 3rem 1.5rem;
        text-align: center;
        flex: none; /* Remove expansão flex */
    }
    .hero-section h1 { font-size: 2rem; }

    /* 3. Formulário sobe um pouco para cima do Hero (efeito visual) */
    .form-section {
        padding: 0 1rem 2rem;
        margin-top: -30px; 
    }
    
    .kpi-grid {
        grid-template-columns: 1fr 1fr; /* 2 colunas no tablet */
    }
}

@media (max-width: 600px) {
    
    /* 1. Ajustes Gerais de Espaçamento */
    .dashboard-container {
        padding: 1rem;
        padding-top: 100px; /* Espaço para navbar fixa */
    }

    /* 2. KPIs (Indicadores) Gigantes */
    .kpi-grid {
        grid-template-columns: 1fr; /* Um por linha */
        gap: 1rem;
    }
    
    .kpi-card {
        padding: 1.5rem;
        flex-direction: row; /* Ícone/Label lado a lado com valor */
        align-items: center;
        justify-content: space-between;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    }
    
    .kpi-label { font-size: 1rem; margin: 0; }
    .kpi-value { font-size: 2.2rem; }

    /* 3. Toolbar (Filtros) */
    .toolbar {
        flex-direction: column;
        align-items: stretch; /* Estica o select para largura total */
    }
    .toolbar select {
        padding: 12px;
        font-size: 1rem; /* Texto maior no select */
    }

    /* 4. TABELA VIRA CARDS (A Mágica) */
    .table-container {
        background: transparent;
        box-shadow: none;
        padding: 0;
        border: none;
    }
    
    /* Esconde cabeçalho da tabela */
    thead { display: none; }
    
    tbody {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    tbody tr {
        background: white;
        display: block;
        border-radius: 20px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
        padding: 1.5rem;
        position: relative;
        border: 1px solid #f0f2f5;
    }

    tbody td {
        display: block;
        padding: 5px 0;
        border: none;
        text-align: left;
    }
    
    tbody td:before { display: none; } /* Remove labels antigos */

    /* --- FORMATAÇÃO ESPECÍFICA DAS CÉLULAS NO CARD --- */
    
    /* Nome do Candidato (Destaque Topo) */
    tbody td:nth-child(1) {
        border-bottom: 1px solid #f0f2f5;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }
    tbody td:nth-child(1) div:first-child {
        font-size: 1.3rem !important; /* Nome Grande */
        color: var(--primary);
    }
    tbody td:nth-child(1) div:last-child {
        font-size: 0.95rem !important; /* Cidade */
        margin-top: 4px;
    }

    /* Área e Data (Lado a Lado) */
    tbody td:nth-child(2), 
    tbody td:nth-child(3) {
        display: inline-block;
        width: 48%;
        font-size: 0.9rem;
        color: var(--text-light);
    }
    
    /* Status (Select Grande) */
    tbody td:nth-child(4) {
        margin-top: 10px;
        width: 100%;
    }
    tbody td:nth-child(4) select {
        width: 100% !important;
        padding: 12px !important;
        font-size: 1rem !important;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        background-color: #f8fafc !important; /* Força cor de fundo leve */
    }

    /* Score IA */
    tbody td:nth-child(5) {
        margin-top: 10px;
        background: #f8fafc;
        padding: 10px;
        border-radius: 8px;
    }

    /* Botões de Ação (Grandes no Rodapé) */
    tbody td:last-child {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #f0f2f5;
        display: flex;
        gap: 10px;
        justify-content: space-between;
    }

    .btn-icon {
        flex: 1; /* Botões ocupam 50% cada */
        height: 50px; /* Botão alto para dedo gordo */
        width: auto;
        border-radius: 12px;
        font-size: 1.2rem;
    }
    
    /* Cores nos botões para mobile */
    .btn-pdf { background-color: #e0f2fe; color: #0284c7; }
    .btn-icon[title="Excluir"] { background-color: #fee2e2; color: #ef4444; }
}

.modal-content {
    border-radius: 16px; /* Cantos mais arredondados */
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15); /* Sombra mais suave e profunda */
    border: 1px solid #f0f0f0; /* Borda sutil para definição */
    padding: 2.5rem; /* Um pouco mais de espaço interno */
}

/* Título do modal */
.modal-content h3 {
    font-size: 1.5rem;
    color: var(--text-heading);
}

/* Botão de fechar (X) */
.modal-content .close-btn {
    color: var(--text-muted);
    transition: color 0.2s;
    font-size: 1.5rem;
    padding: 5px;
}
.modal-content .close-btn:hover {
    color: var(--error);
}


#newRecAreas.select[multiple] {
    border: 1px solid var(--border);
    background-color: #ffffff;
    padding: 5px; /* Espaço entre a borda e os itens */
    border-radius: 10px;
    /* Remove a aparência padrão feia do navegador */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    overflow-y: auto; /* Garante o scroll */
}

#newRecAreas optgroup {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-heading);
    background-color: #f8fafc; /* Fundo sutil para separar os grupos */
    padding: 12px 8px 6px 8px; /* Espaçamento maior acima */
    border-bottom: 1px solid #e2e8f0;
    margin-top: 5px;
}

#newRecAreas option {
    padding: 10px 12px; /* Áreas de clique maiores */
    margin: 4px 2px; /* Espacinho entre as opções */
    border-radius: 6px;
    color: var(--text-body);
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.95rem;
}

#newRecAreas option:hover {
    background-color: #f1f5f9; /* Cinza muito claro */
    color: var(--primary);
}

#newRecAreas option:checked {
    background-color: var(--primary) !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
    font-weight: 500;
}

#newRecAreas::-webkit-scrollbar {
    width: 8px;
}

#newRecAreas::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
    margin: 5px 0; /* Espaço nas pontas */
}

#newRecAreas::-webkit-scrollbar-thumb {
    background-color: #cbd5e1; /* Cor cinza suave */
    border-radius: 4px;
    border: 2px solid #f1f5f9; /* Cria uma borda branca para parecer mais fino */
}

#newRecAreas::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8; /* Um pouco mais escuro */
}

#newRecAreas {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.btn-header-whatsapp {
    background-color: #25D366; /* Verde WhatsApp */
    color: white;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 50px; /* Formato pílula */
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.btn-header-whatsapp:hover {
    background-color: #128C7E; /* Verde mais escuro no hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.5);
}

.btn-header-whatsapp i {
    font-size: 1.2rem;
}

@media (max-width: 600px) {
    .btn-header-whatsapp span {
        display: none; /* Esconde o texto "Fale Conosco" no mobile */
    }
    .btn-header-whatsapp {
        padding: 10px; /* Botão vira uma bolinha ou quadrado arredondado */
        width: 44px;
        height: 44px;
        justify-content: center;
        border-radius: 50%;
    }
    
    .navbar {
        padding: 0.8rem 1rem; /* Ajuste fino no padding da nav mobile */
    }
}