/* ARQUIVO: style.css - VERSÃO COMPLETA FINAL */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #ce1018; /* Vermelho Bombeiros PB */
    --primary-dark: #a00c12;  /* Vermelho Escuro (Hover) */
    --secondary-color: #333333; /* Cinza Escuro */
    --text-color: #444444;
    --background-bg: #f0f2f5; /* Cinza bem claro para fundo */
    --white: #ffffff;
    --border-color: #dddddd;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-bg);
    color: var(--text-color);
    line-height: 1.6;
}

/* --- ESTILOS DO LOGIN (Index) --- */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #ce1018 0%, #333 100%);
}

.login-container {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-header h2 {
    color: var(--primary-color);
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 700;
}

.login-header p {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

/* --- FORMULÁRIOS --- */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s;
    background-color: #fafafa;
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 5px rgba(206, 16, 24, 0.2);
}

.btn-login, .btn-primary {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.btn-login:hover, .btn-primary:hover {
    background-color: var(--primary-dark);
}

.forgot-password {
    display: block;
    margin-top: 15px;
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-copy {
    margin-top: 30px;
    font-size: 0.75rem;
    color: #aaa;
}

/* --- LAYOUT DASHBOARD --- */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar (Menu Lateral) */
.sidebar {
    width: 260px;
    background-color: #2c2c2c;
    color: var(--white);
    display: flex;
    flex-direction: column;
    position: fixed; /* Fixar na esquerda */
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar-header {
    background-color: #000000; /* Agora o fundo é PRETO */
    padding: 25px 20px;
    text-align: center;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1.3rem;
    letter-spacing: 1px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-bottom: 4px solid var(--primary-color); /* Borda vermelha para separar */
}

.sidebar-menu {
    list-style: none;
    padding-top: 10px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: #cfcfcf;
    text-decoration: none;
    font-size: 0.95rem;
    border-left: 4px solid transparent;
    transition: all 0.2s;
}

.sidebar-menu li a i {
    width: 25px;
    font-size: 1.1rem;
    margin-right: 10px;
    text-align: center;
}

.sidebar-menu li a:hover {
    background-color: #3a3a3a;
    color: var(--white);
    border-left-color: var(--primary-color);
}

.sidebar-separator {
    padding: 15px 25px 5px 25px;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #777;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Conteúdo Principal */
.main-content {
    margin-left: 260px; /* Espaço da sidebar */
    flex: 1;
    display: flex;
    flex-direction: column;
    width: calc(100% - 260px);
}

/* Barra Superior */
.top-bar {
    background-color: var(--white);
    height: 70px;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 900;
}

.page-title {
    font-size: 1.4rem;
    color: var(--secondary-color);
    font-weight: 700;
}

.user-info-display {
    text-align: right;
    line-height: 1.2;
}

.user-info-display strong {
    display: block;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.user-info-display span {
    font-size: 0.8rem;
    color: #777;
}

/* Corpo do Conteúdo */
.content-body {
    padding: 30px;
    background-color: var(--background-bg);
    min-height: calc(100vh - 70px);
}

.welcome-banner {
    background: linear-gradient(to right, #ffffff, #f8f8f8);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.welcome-banner h3 {
    color: var(--secondary-color);
}

/* Grid de Atalhos (Cards) */
.grid-atalhos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}

.card-atalho {
    background-color: var(--white);
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.card-atalho:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: rgba(206, 16, 24, 0.1);
}

.card-atalho i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.card-atalho h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.card-atalho p {
    font-size: 0.85rem;
    color: #888;
}

/* Responsividade */
@media (max-width: 768px) {
    .sidebar {
        width: 70px; /* Versão compacta */
        overflow-x: hidden;
    }
    .sidebar-header, .sidebar-separator, .sidebar-menu li a span {
        display: none;
    }
    .sidebar-menu li a {
        justify-content: center;
        padding: 15px;
    }
    .sidebar-menu li a i {
        margin: 0;
        font-size: 1.5rem;
    }
    .main-content {
        margin-left: 70px;
        width: calc(100% - 70px);
    }
    .grid-atalhos {
        grid-template-columns: 1fr;
    }
}

/* --- ADICIONAR AO FINAL DO ARQUIVO style.css --- */

/* Estilo do Brasão na Barra Lateral */
.brasao-img {
    max-width: 80px; /* Define largura máxima */
    height: auto;
    display: block;
    margin: 0 auto 10px auto; /* Centraliza e dá espaço embaixo */
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2)); /* Sombra leve */
}

/* Ajuste fino para o cabeçalho ficar bonito com a imagem */
.sidebar-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 25px;
    padding-bottom: 25px;
}

/* --- ADICIONAR AO FINAL DO ARQUIVO style.css --- */

/* --- ESTILOS DA TELA DE EFETIVO (Tabelas e Filtros) --- */

/* Barra de Filtros */
.filter-card {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end; /* Alinha os botões com os inputs */
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.85rem;
    font-weight: bold;
    color: #555;
}

.filter-group input, .filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Botões de Ação na Barra de Filtro */
.btn-filter {
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    height: 42px; /* Altura para alinhar com inputs */
}

.btn-add {
    background-color: var(--success); /* Verde */
}

.btn-transfer {
    background-color: #17a2b8; /* Azul Claro */
}

/* Tabela de Dados */
.table-responsive {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow-x: auto; /* Permite rolar para o lado no celular */
    padding: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px; /* Garante que a tabela não esmague */
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

th {
    background-color: #f9f9f9;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

tr:hover {
    background-color: #f0f2f5; /* Efeito ao passar o mouse na linha */
}

/* Etiquetas de Status (Badges) */
.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    display: inline-block;
}

.badge-success { background: #d4edda; color: #155724; } /* Verde Claro */
.badge-danger { background: #f8d7da; color: #721c24; }  /* Vermelho Claro */
.badge-warning { background: #fff3cd; color: #856404; } /* Amarelo Claro */
.badge-secondary { background: #e2e3e5; color: #383d41; } /* Cinza */

/* Botões Pequenos da Tabela */
.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: none;
    color: white;
    cursor: pointer;
    margin-right: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.action-btn:hover { opacity: 0.8; }
.btn-edit { background-color: #007bff; } /* Azul */
.btn-delete { background-color: #dc3545; } /* Vermelho */
.btn-taf { background-color: #6610f2; } /* Roxo */

/* --- ADICIONAR AO FINAL DO ARQUIVO style.css --- */

/* --- ESTILOS DA TELA DE AVALIAÇÃO (Lançamento de Notas) --- */

.taf-header-card {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.militar-info h2 {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.militar-info span {
    color: #666;
    margin-right: 15px;
    font-size: 0.9rem;
}

/* Container dos Exercícios (Grid) */
.exercises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Card de Cada Exercício */
.exercise-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: relative;
    border-top: 3px solid transparent;
    transition: transform 0.2s;
}

.exercise-card:hover {
    transform: translateY(-3px);
    border-top-color: var(--primary-color);
}

.exercise-title {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-weight: 700;
    color: #444;
    font-size: 1.1rem;
}

.exercise-title i {
    background-color: #ffecec;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

/* Inputs Grandes para Notas */
.input-score {
    font-size: 1.5rem;
    text-align: center;
    padding: 15px;
    width: 100%;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #fafafa;
    color: var(--primary-color);
    font-weight: bold;
}

.input-score:focus {
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 10px rgba(206, 16, 24, 0.1);
}

.input-helper {
    text-align: center;
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
}

/* Placar de Pontuação (Score Total) */
.score-panel {
    background-color: #333;
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
}

.score-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffc107; /* Amarelo Ouro */
}

.score-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Toggle Switch (Interruptor para Atividade Aquática) */
.switch-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    background-color: #e9f7ef; /* Fundo verde claro */
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
}

.switch-label {
    flex: 1;
    font-weight: bold;
    color: #155724;
}

/* Botões de Ação do Formulário */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

/* --- ADICIONAR AO FINAL DO ARQUIVO style.css --- */

/* --- ESTILOS DA TELA MEU TAF --- */

/* Card de Perfil */
.profile-header {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background-color: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #ccc;
    border: 4px solid var(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.profile-details h2 {
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.profile-details p {
    color: #666;
    margin-bottom: 5px;
}

/* Área de Atestado Médico */
.medical-status-card {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.status-indicator {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.status-ok {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.status-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}

/* Zona de Upload (Drag & Drop visual) */
.upload-zone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    background-color: #fafafa;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-zone:hover {
    border-color: var(--primary-color);
    background-color: #fff;
}

.upload-zone i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 15px;
}

.upload-zone p {
    color: #777;
    margin-bottom: 10px;
}

/* Gráfico de Barras (Simulação CSS) */
.chart-container {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    height: 300px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding-bottom: 40px; /* Espaço para labels */
    position: relative;
}

.bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 10%;
    position: relative;
}

.bar {
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 4px 4px 0 0;
    transition: height 1s;
    position: relative;
    min-height: 5px; /* Para aparecer mesmo se for 0 */
}

.bar:hover {
    background-color: var(--primary-dark);
}

/* Tooltip do valor da barra */
.bar span {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    font-weight: bold;
    color: #333;
}

.bar-label {
    position: absolute;
    bottom: -35px;
    font-size: 0.75rem;
    color: #666;
    text-align: center;
    width: 150%;
}

/* --- ADICIONAR AO FINAL DO ARQUIVO style.css --- */

/* --- ESTILOS DA JANELA MODAL (Para ver o atestado) --- */

.modal {
    display: none; /* Escondido por padrão */
    position: fixed;
    z-index: 2000; /* Fica acima de tudo */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8); /* Fundo preto transparente */
    backdrop-filter: blur(5px); /* Desfoque no fundo */
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-50px);}
    to {opacity: 1; transform: translateY(0);}
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    border-radius: 8px 8px 0 0;
}

.modal-body {
    padding: 30px;
    text-align: center;
    background-color: #f9f9f9;
    max-height: 70vh; /* Altura máxima para não estourar a tela */
    overflow-y: auto;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    background-color: white;
    border-radius: 0 0 8px 8px;
}

/* Botão de Fechar (X) */
.close-modal {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: #ddd;
}

/* Imagem do Atestado dentro do Modal */
.atestado-preview {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* --- ADICIONAR AO FINAL DO ARQUIVO style.css --- */

/* --- ESTILOS DA TELA DE RELATÓRIOS --- */

.reports-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Área de Configuração (Filtros no topo) */
.config-panel {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-left: 5px solid #6610f2; /* Roxo para Relatórios */
}

/* Grid de Tipos de Relatório */
.report-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* O Card do Relatório (Botão) */
.report-option {
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
}

.report-option:hover {
    border-color: #6610f2;
    background-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 16, 242, 0.1);
}

/* Estado Selecionado */
.report-option.selected {
    background-color: #f2ebff; /* Roxo bem clarinho */
    border-color: #6610f2;
    box-shadow: 0 0 0 2px rgba(102, 16, 242, 0.2);
}

/* Ícone de Check quando selecionado */
.report-option.selected::after {
    content: '\f00c'; /* Código do ícone Check do FontAwesome */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #6610f2;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.report-icon {
    font-size: 2rem;
    color: #6c757d;
    margin-bottom: 15px;
}

.report-option.selected .report-icon {
    color: #6610f2;
}

.report-title {
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.report-desc {
    font-size: 0.8rem;
    color: #777;
    line-height: 1.4;
}

/* Botão Grande de Gerar */
.btn-generate {
    background-color: #6610f2;
    color: white;
    font-size: 1.1rem;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(102, 16, 242, 0.3);
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto; /* Centralizar */
}

.btn-generate:hover {
    background-color: #520dc2;
    transform: scale(1.05);
}

/* --- ADICIONAR AO FINAL DO ARQUIVO style.css --- */

/* --- ESTILOS DA TELA DE ÍNDICES (Tabelas Editáveis) --- */

.indices-control-panel {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    gap: 20px;
    align-items: flex-end;
    border-bottom: 3px solid var(--primary-color);
}

/* Tabela estilo "Excel" */
.table-editable {
    width: 100%;
    background-color: white;
    border-collapse: collapse;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.table-editable th {
    background-color: #333;
    color: white;
    padding: 15px;
    font-size: 0.85rem;
    text-align: center;
    border-right: 1px solid #444;
}

/* A primeira coluna (Pontuação) destaca-se */
.table-editable th:first-child, 
.table-editable td:first-child {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    width: 80px;
    text-align: center;
}

.table-editable td {
    border: 1px solid #eee;
    padding: 0; /* Padding zero para o input ocupar tudo */
    height: 45px;
}

/* O input dentro da célula */
.cell-input {
    width: 100%;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 1rem;
    color: #555;
    background-color: transparent;
    transition: background-color 0.2s;
}

.cell-input:focus {
    background-color: #fff8e1; /* Amarelo clarinho ao focar */
    outline: 2px solid #ffc107;
    font-weight: bold;
    color: black;
}

/* Destaque para linha Inapto (Notas baixas) */
.row-danger .cell-input {
    color: #dc3545;
}

/* --- ADICIONAR AO FINAL DO ARQUIVO style.css --- */

/* --- ESTILOS DA TELA NOVO TAF (Zona de Perigo) --- */

.danger-zone-card {
    background-color: #fff;
    border: 1px solid #ffcdd2;
    border-radius: 8px;
    padding: 30px;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.05);
    position: relative;
    overflow: hidden;
}

/* Faixa vermelha no topo */
.danger-zone-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: repeating-linear-gradient(
        45deg,
        #dc3545,
        #dc3545 10px,
        #b02a37 10px,
        #b02a37 20px
    );
}

.cycle-info-grid {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    align-items: center;
    justify-content: center;
}

.cycle-box {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    min-width: 200px;
    border: 2px solid #e9ecef;
}

.cycle-box.current {
    border-color: #666;
    background-color: #eee;
    color: #555;
}

.cycle-box.next {
    border-color: var(--success);
    background-color: #e8f5e9;
    color: var(--success);
    transform: scale(1.1); /* Destaque maior */
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.2);
}

.cycle-arrow {
    font-size: 2rem;
    color: #ccc;
}

.checklist-process {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.checklist-process ul {
    list-style: none;
    margin-top: 10px;
}

.checklist-process li {
    margin-bottom: 5px;
}

.checklist-process li i {
    margin-right: 8px;
}

/* Botão de Pânico */
.btn-danger-block {
    background-color: #dc3545;
    color: white;
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.btn-danger-block:hover {
    background-color: #b02a37;
}

.confirmation-check {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background-color: #fce8e6;
    border-radius: 4px;
    border: 1px solid #f1aeb5;
    color: #b02a37;
    font-weight: bold;
}

/* --- ADICIONAR AO FINAL DO ARQUIVO style.css --- */

/* --- ESTILOS DA TELA DE EXPORTAÇÃO --- */

.export-card {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 0 auto; /* Centralizado */
    text-align: center;
    border-top: 5px solid #217346; /* Verde Excel */
}

.export-icon {
    font-size: 4rem;
    color: #217346;
    margin-bottom: 20px;
}

.data-preview-box {
    background-color: #f8f9fa;
    border: 1px dashed #ccc;
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
    text-align: left;
    font-size: 0.85rem;
    color: #666;
}

.data-preview-box h4 {
    color: #333;
    margin-bottom: 10px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.data-tag {
    background-color: #e9ecef;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

/* Botão Excel */
.btn-excel {
    background-color: #217346; /* Verde Excel */
    color: white;
    font-size: 1.2rem;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(33, 115, 70, 0.3);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.btn-excel:hover {
    background-color: #1a5c38;
    transform: translateY(-2px);
}

/* --- ADICIONAR AO FINAL DO ARQUIVO style.css --- */

/* --- ESTILOS DA VERIFICAÇÃO EM LOTE --- */

.upload-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    text-align: center;
}

.result-box {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-top: 30px;
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.result-header {
    background-color: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.download-actions {
    display: flex;
    gap: 10px;
}

.btn-download-pdf {
    background-color: var(--primary-color); /* Vermelho */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-download-excel {
    background-color: #217346; /* Verde Excel */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}