/*=============================================
=            ARQUIVO DE ESTILO ÚNICO          =
=============================================*/

/*-------------------------------------------*\
    1. Importações e Configurações Globais
\*-------------------------------------------*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --text: #ffffff;
    --gray: #f0f2f5;
    --blue: #1c3157;
    --blueOp: #1c3157da;
    --afterColor: #3a4d77;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --font: "Montserrat", sans-serif;
    --border-radius: 6px;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: var(--font);
}

html {
    scroll-behavior: smooth;
    height: 100%; /* Garante que o html também ocupe toda a altura */
}

body {
    background-color: var(--gray);
    color: var(--blue);
    min-height: 100%; /* <<< MUDANÇA 1: O corpo ocupa no mínimo 100% da altura */
    display: flex; /* <<< MUDANÇA 2: Ativa o Flexbox */
    flex-direction: column; /* <<< MUDANÇA 3: Organiza os itens em coluna */
    justify-content: center;
    align-items:center;
}

a {
    text-decoration: none;
    color: var(--blue);
}

main.container {
    width: 100%;
    padding: 20px;
    margin: 140px auto 80px auto;
}


/*-------------------------------------------*\
    2. Header (Público e Painel)
\*-------------------------------------------*/
/* ... (O resto do seu CSS permanece o mesmo) ... */
header, .panel-header { display: flex; align-items: center; justify-content: space-around; width: 100%; min-height: 100px; padding: 10px 40px; background-color: var(--blue); position: fixed; top: 0; left: 0; z-index: 1000; color: var(--text); }
header img { height: 60px; width: auto; }
.nav { display: flex; align-items: center; list-style: none; column-gap: 60px; }
.nav__link { font-size: 1.2rem; font-weight: 400; color: var(--text); cursor: pointer; text-transform: uppercase; position: relative; }
.nav__link:hover { color: var(--gray); }
.nav__link::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 60%; height: 1px; background: var(--gray); transform: scaleX(0); transform-origin: right; transition: transform 0.4s; }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
#menu { display: none; }
.panel-header h1 { margin: 0; font-size: 24px; }
.btn-logout { width: auto; height: auto; margin: 0; padding: 10px 20px; background-color: var(--gray); color: var(--blue); font-weight: 700; border-radius: var(--border-radius); border: none; cursor: pointer; transition: all 0.2s; }
.btn-logout:hover { background-color: white; color: var(--blue); transform: scale(1.05); }


/*-------------------------------------------*\
    3. Estilos de Formulário (Card)
\*-------------------------------------------*/
.card { background-color: white; padding: 40px 50px; border-radius: var(--border-radius); border: 1px solid #dde1e7; }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.9rem; }
.form-group input[type="text"], .form-group input[type="password"], .form-group input[type="tel"], .form-group input[type="file"] { width: 100%; height: 45px; padding: 10px; border: 1px solid #ccc; border-radius: var(--border-radius); box-sizing: border-box; font-size: 1rem; }
.form-group input[type="file"] { padding: 12px 10px; }
.form-group input:focus { outline: none; border-color: var(--blue); box-shadow: 0px 0px 5px rgba(28, 49, 87, 0.2); }
.form-group-checkbox { display: flex; align-items: center; margin: 25px 0; color: #555; }
.form-group-checkbox input { margin-right: 10px; width: 16px; height: 16px; }
.btn { display: block; width: 250px; height: 48px; margin: 30px auto 0 auto; border: none; border-radius: var(--border-radius); background-color: var(--blue); color: var(--text); font-size: 1rem; font-weight: 600; text-align: center; cursor: pointer; transition: all 0.2s; text-decoration: none; }
.btn:hover { background-color: var(--afterColor); transform: translateY(-2px); box-shadow: 0px 4px 8px rgba(28, 49, 87, 0.2); }
.admin-link { text-align: center; margin-top: 30px; }
.admin-link a { color: var(--afterColor); font-weight: 500; transition: color 0.3s; }
.admin-link a:hover { color: var(--blue); text-decoration: underline; }


/*-------------------------------------------*\
    4. Tabela do Painel (LARGURA AJUSTADA)
\*-------------------------------------------*/
.panel-container {
    margin: 120px auto 80px auto;
    max-width: 1400px;
    padding: 0 40px;
}
.table-wrapper { width: 100%; background-color: white; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,0.07); overflow: hidden; }
#indicacoes-table { width: 100%; border-collapse: collapse; border-spacing: 0; }
#indicacoes-table th { background-color: #f9fafb; color: #6b7280; font-weight: 600; text-transform: uppercase; font-size: 12px; letter-spacing: 0.5px; padding: 16px 24px; text-align: left; border-bottom: 1px solid #e5e7eb; }
#indicacoes-table td {
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle; /* <<< ESTA LINHA GARANTE O ALINHAMENTO AO MEIO */
    color: #374151;
    font-size: 0.9rem;
}
#indicacoes-table tbody tr:last-child td { border-bottom: none; }
#indicacoes-table tbody tr:hover { background-color: #f9fafb; }
.candidate-name { font-weight: 600; color: var(--blue); }
.status-cell { display: flex; align-items: center; gap: 10px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.status-dot.sem-status { background-color: #9ca3af; }
.status-dot.em-analise { background-color: #f59e0b; }
.status-dot.aprovado { background-color: var(--success-color); }
.status-dot.rejeitado { background-color: var(--danger-color); }
.status-selector { padding: 8px 12px; border-radius: 6px; border: 1px solid #d1d5db; background-color: #fff; color: #374151; font-weight: 500; width: 100%; min-width: 150px; transition: border-color 0.2s, box-shadow 0.2s; }
.status-selector:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(28, 49, 87, 0.1); }
.actions-cell {align-items: center; gap: 10px;}
.btn-action { padding: 8px 12px; font-size: 14px; font-weight: 600; width: auto; margin: 0; color: white; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: none; cursor: pointer; transition: all 0.2s; }
.btn-action svg { width: 16px; height: 16px; }
.btn-action:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.btn-download { background-color: var(--success-color); }
.btn-download:hover { background-color: #059669; }
.btn-delete { background-color: var(--danger-color); }
.btn-delete:hover { background-color: #dc2626; }
.panel-container {
    margin: 120px auto 80px auto;
    max-width: 1400px;
    padding: 0 40px;
}


.panel-container {
    margin: 120px auto 80px auto;
    max-width: 1400px;
    padding: 0 40px;
}

/* ... (todo o CSS anterior permanece o mesmo) ... */

/*-------------------------------------------*\
    4. Tabela do Painel (LARGURA AJUSTADA)
\*-------------------------------------------*/

.panel-container {
    margin: 120px auto 80px auto;
    max-width: 1400px;
    padding: 0 40px;
}

/* ESTILOS DA BARRA DE FILTRO ATUALIZADOS */
.filter-bar {
    padding: 15px 20px;
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    flex-wrap: wrap; /* Permite que os filtros quebrem a linha em telas menores */
    align-items: flex-end; /* Alinha os itens na parte inferior */
    gap: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column; /* Coloca o label em cima do input */
    gap: 8px;
}

.filter-group label {
    font-weight: 600;
    font-size: 0.8rem; /* Tamanho menor para o label */
    color: var(--afterColor);
    text-transform: uppercase;
}

.filter-group select,
.filter-group input[type="text"] {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background-color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--blue);
    height: 42px; /* Altura padrão */
}

.filter-group select:focus,
.filter-group input[type="text"]:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(28, 49, 87, 0.1);
}

/* Ajuste para o botão de pesquisa ficar alinhado */
.filter-group .btn-action {
    height: 42px;
    background-color: var(--blue);
}
.filter-group .btn-action:hover {
    background-color: var(--afterColor);
}

/* ... (o resto do CSS da tabela, footer, etc. permanece o mesmo) ... */



/*-------------------------------------------*\
    5. Footer
\*-------------------------------------------*/
footer {
    width: 100%;
    height: 400px;
    padding-top: 7rem;
    padding-bottom: 1rem;
    background: linear-gradient(0deg, rgba(0,0,0,1) 0%, rgba(28,49,87,1) 35%, var(--gray) 100%);
    color: var(--text);
    flex-shrink: 0; /* <<< MUDANÇA 5: Impede que o footer encolha */
}
/* ... (O resto dos estilos do footer e media queries permanecem os mesmos) ... */
.footer-content { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-around; flex-wrap: wrap; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 20px; }
.footer-column.contact img { width: 300px; height: auto; }
.footer-column h3 { font-size: 1.25rem; font-weight: 600; color: white; }
.footer-column a, .footer-column p { font-size: 1.25rem; color: white; }
.footer-column button { width: 235px; height: 40px; font-size: 20px; border-radius: 50px; background-color: transparent; border: 1px solid white; color: white; display: flex; align-items: center; justify-content: center; gap: 10px; transition: 1s all; cursor: pointer; }
.footer-column button:hover { background-color: white; color: black; }
.footer-column button svg { width: 20px; height: 20px; }
.direitos-reservados { margin-top: 2rem; color: white; text-align: center; }
.footer-column a:hover { text-decoration: underline; opacity: 0.8; }

/*-------------------------------------------*\
    6. Media Queries (Responsividade)
\*-------------------------------------------*/
/* ... (as media queries permanecem as mesmas) ... */
@media(max-width: 1270px) { .nav { background-color: #0000004a; backdrop-filter: blur(15px); z-index: 2; position: fixed; top: -100vh; left: 0; width: 100%; height: 100vh; flex-direction: column; justify-content: center; row-gap: 40px; transition: all 0.9s; } .nav.active { transform: translateY(100vh); } header img { z-index: 3; } .nav__link { font-size: 2rem; line-height: 2.5rem; font-weight: bold; } #menu { display: flex; flex-direction: column; align-items: flex-end; row-gap: 8px; padding-right: 1rem; z-index: 10; border: 0; background: transparent; cursor: pointer; } #menu span { height: 2px; background: var(--text); border-radius: 8px; transition: all 0.4s; } #menu span:nth-child(1) { width: 32px; } #menu span:nth-child(2) { width: 40px; } #menu span:nth-child(3) { width: 24px; } #menu.active span:nth-child(2) { opacity: 0; width: 0px; } #menu.active span:nth-child(1) { width: 32px; transform: rotate(-45deg) translate(-7px, 5px); } #menu.active span:nth-child(3) { width: 32px; transform: rotate(45deg) translate(-8px, -7px); } }
@media (max-width: 960px) { footer { height: fit-content; padding-top: 4rem; } .footer-content { flex-direction: column; align-items: center; text-align: center; } .footer-column { align-items: center; margin-top: 2rem; } }
@media (max-width: 768px) { header { justify-content: space-between; padding: 10px 20px; } }
@media (max-width: 400px) { .footer-column.contact img { width: 270px; } }

/* ... (todo o seu CSS anterior continua aqui) ... */

/*-------------------------------------------*\
    7. Estilos da Página de Regras
\*-------------------------------------------*/

.rules-card {
    padding: 40px 50px;
}

.rules-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    color: var(--blue);
}

.rules-header svg {
    width: 48px;
    height: 48px;
}

.rules-header h1 {
    text-align: center;
    font-size: 2rem;
    margin: 0;
}

.rules-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px auto;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
}

.rule-section {
    margin-bottom: 30px;
    padding-left: 15px;
    border-left: 3px solid var(--blue);
}

.rule-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 15px;
}

.rule-section ul {
    list-style: none; /* Remove os marcadores padrão */
    padding-left: 0;
}

.rule-section ul li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 10px;
    line-height: 1.5;
    color: #374151;
}

/* Adiciona um ícone de "check" antes de cada item da lista */
.rule-section ul li::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--success-color);
    font-weight: bold;
}

.dates-cell {
    font-size: 0.85rem;
    line-height: 1.5;
    white-space: nowrap; /* Impede que as datas quebrem a linha */
}

.date-info {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.date-label {
    font-weight: 500;
    color: #6b7280;
}

.date-value {
    font-weight: 600;
    color: var(--blue);
}

.date-na {
    color: #9ca3af;
    font-style: italic;
}


/* ... (todo o seu CSS anterior continua aqui) ... */

/*-------------------------------------------*\
    8. Estilos da Página de Logs (DESIGN MELHORADO)
\*-------------------------------------------*/

.panel-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Estiliza o botão "Voltar ao Painel" para se diferenciar do "Sair" */
.panel-nav .btn-action {
    padding: 10px 20px;
    background-color: var(--afterColor);
    color: white;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}
.panel-nav .btn-action:hover {
    background-color: var(--blueOp);
    transform: translateY(-2px);
}

/* Aplica o mesmo estilo base da tabela de indicações para a de logs */
#logs-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

#logs-table th {
    background-color: #f9fafb;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

#logs-table td {
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

#logs-table tbody tr:last-child td {
    border-bottom: none;
}

#logs-table tbody tr:hover {
    background-color: #f9fafb;
}

/* Estilos específicos para cada coluna de log */
.log-user {
    font-weight: 600;
    color: var(--blue);
    white-space: nowrap;
}

.log-action {
    color: #374151;
    font-size: 0.9rem;
}

.log-timestamp {
    color: #6b7280;
    font-size: 0.85rem;
    white-space: nowrap;
    text-align: right;
}

.rule-section.disclaimer {
    margin-top: 40px;
    padding: 20px;
    background-color: #fffbeb; /* Um amarelo bem claro */
    border-left: 3px solid #f59e0b; /* Borda amarela */
    border-radius: var(--border-radius);
}

.rule-section.disclaimer h3 {
    color: #b45309; /* Um laranja escuro */
}

.rule-section.disclaimer p {
    color: #b45309;
    font-weight: 600;
    margin: 0;
}


