:root {
    --verde-principal: #006b1f;
    --verde-escuro: #004d16;
    --azul-principal: #00347a;
    --azul-escuro: #001f4d;
    --amarelo-detalhe: #f2a900;
    --fundo: #f4f6f8;
    --texto: #24313f;
    --branco: #ffffff;
    --sombra: rgba(0, 0, 0, 0.08);
}

/* BASE GERAL */
html,
body {
    min-height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--fundo);
    color: var(--texto);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* TOPO */
.topo {
    background: linear-gradient(135deg, var(--verde-principal), var(--azul-principal));
    color: var(--branco);
    padding: 18px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 18px;
}

.logo {
    height: 78px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    background: var(--branco);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.logo-area h1 {
    font-size: 30px;
    line-height: 1.1;
    margin: 0;
    font-weight: 700;
}

.logo-area p {
    font-size: 15px;
    opacity: 0.95;
    margin: 5px 0 0 0;
}

/* MENU */
.menu {
    display: flex;
    align-items: center;
    gap: 22px;
}

.menu a {
    color: var(--branco);
    text-decoration: none;
    font-weight: 700;
    transition: 0.2s;
}

.menu a i {
    margin-right: 5px;
}

.menu a:hover {
    color: var(--amarelo-detalhe);
}

/* FAIXA AMARELA */
.faixa-info {
    background: var(--amarelo-detalhe);
    color: var(--azul-escuro);
    text-align: center;
    padding: 10px 8%;
    font-weight: 700;
}

.faixa-info i {
    margin-right: 6px;
}

/* BLOCO PRINCIPAL */
.hero {
    background: var(--branco);
    padding: 38px;
    border-radius: 18px;
    box-shadow: 0 8px 24px var(--sombra);
    text-align: center;
}

.hero h2 {
    font-size: 34px;
    color: var(--verde-principal);
    margin-bottom: 18px;
    font-weight: 700;
}

.hero p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 0;
}

/* CARDS BOOTSTRAP PERSONALIZADOS */
.card {
    border: none;
    border-top: 5px solid var(--amarelo-detalhe);
    border-radius: 18px;
    box-shadow: 0 8px 22px var(--sombra);
}

.card-body {
    padding: 30px;
}

.card h3 {
    color: var(--verde-principal);
    font-size: 24px;
    margin-bottom: 14px;
    font-weight: 700;
}

.card h3 i {
    color: var(--amarelo-detalhe);
    margin-right: 8px;
}

.card p {
    line-height: 1.6;
    margin-bottom: 24px;
}

/* BOTÕES PERSONALIZADOS */
.btn-verde {
    background: var(--verde-principal);
    color: var(--branco);
    padding: 13px 22px;
    border-radius: 10px;
    font-weight: 700;
    border: none;
}

.btn-verde i,
.btn-azul i {
    margin-right: 6px;
}

.btn-verde:hover {
    background: var(--verde-escuro);
    color: var(--branco);
}

.btn-azul {
    background: var(--azul-principal);
    color: var(--branco);
    padding: 13px 22px;
    border-radius: 10px;
    font-weight: 700;
    border: none;
}

.btn-azul:hover {
    background: var(--azul-escuro);
    color: var(--branco);
}

/* AVISOS */
.aviso {
    background: #f5fff6;
    border-left: 6px solid var(--amarelo-detalhe);
    padding: 24px;
    border-radius: 14px;
}

.aviso h3 {
    margin-bottom: 10px;
    color: var(--verde-principal);
    font-weight: 700;
}

.aviso h3 i {
    color: var(--azul-principal);
    margin-right: 8px;
}

.aviso p {
    margin-bottom: 0;
}

/* RODAPÉ */
.rodape {
    text-align: center;
    padding: 24px;
    background: var(--azul-principal);
    color: var(--branco);
    margin-top: auto;
}

.rodape p {
    margin: 0;
}

/* FORMULÁRIOS */
.formulario {
    background: var(--branco);
    padding: 34px;
    border-radius: 18px;
    box-shadow: 0 8px 24px var(--sombra);
}

.form-label {
    font-weight: 700;
    color: var(--verde-principal);
}

.form-control,
.form-select {
    border-radius: 10px;
    padding: 12px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--verde-principal);
    box-shadow: 0 0 0 3px rgba(0, 107, 31, 0.12);
}

.is-invalid {
    border-color: #c0392b !important;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12) !important;
}

/* WIZARD DA OUVIDORIA */
.etapa-formulario {
    display: none;
}

.etapa-formulario.etapa-ativa {
    display: block;
    animation: aparecerSuave 0.35s ease-in-out;
}

.etapa-formulario h3 {
    color: var(--verde-principal);
    font-weight: 700;
    margin-bottom: 8px;
}

.barra-ssd {
    background: linear-gradient(135deg, var(--verde-principal), var(--azul-principal));
    font-weight: 700;
}

.progress {
    height: 28px;
    border-radius: 20px;
    background: #e1e7eb;
    overflow: hidden;
}

/* CHECKBOXES DOS SETORES */
.grade-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 12px;
    margin-bottom: 24px;
}

.opcao-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5fff6;
    border: 1px solid #d6e8da;
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.opcao-checkbox:hover {
    border-color: var(--verde-principal);
    background: #ecfff0;
}

.opcao-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--verde-principal);
}

/* MENSAGENS */
.mensagem-info {
    background: #fff8dc;
    border-left: 6px solid var(--amarelo-detalhe);
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.sucesso {
    background: #e8f7ee;
    border-left: 6px solid #219653;
    padding: 22px;
    border-radius: 14px;
    margin-top: 24px;
}

.sucesso h2 {
    color: #219653;
    font-weight: 700;
    margin-bottom: 16px;
}

.erro {
    background: #fdecea;
    border-left: 6px solid #c0392b;
    padding: 18px;
    border-radius: 14px;
    margin-top: 18px;
}

/* ADMIN */
.tabela-admin {
    width: 100%;
    border-collapse: collapse;
    background: var(--branco);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 22px var(--sombra);
}

.tabela-admin th,
.tabela-admin td {
    padding: 14px;
    border-bottom: 1px solid #e1e7eb;
    text-align: left;
}

.tabela-admin th {
    background: var(--verde-principal);
    color: var(--branco);
}

.status {
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}

.status.recebida {
    background: #e8f7ee;
    color: var(--verde-principal);
}

.status.analise {
    background: #fff3cd;
    color: #8a6500;
}

.status.concluida {
    background: #e8f2f5;
    color: var(--azul-principal);
}

/* UTILITÁRIOS */
.oculto {
    display: none !important;
}

.aparecer-suave {
    animation: aparecerSuave 0.4s ease-in-out;
}

@keyframes aparecerSuave {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .topo {
        flex-direction: column;
        text-align: center;
        gap: 18px;
    }

    .logo-area {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        height: auto;
        max-width: 170px;
    }

    .logo-area h1 {
        font-size: 25px;
    }

    .menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }

    .hero {
        padding: 28px;
    }

    .hero h2 {
        font-size: 28px;
    }

    .formulario {
        padding: 24px;
    }

    .progress {
        height: 32px;
    }
}

/* WIZARD DO CURRÍCULO */
.etapa-curriculo {
    display: none;
}

.etapa-curriculo.etapa-ativa {
    display: block;
    animation: aparecerSuave 0.35s ease-in-out;
}

.etapa-curriculo h3 {
    color: var(--verde-principal);
    font-weight: 700;
    margin-bottom: 8px;
}
/* LISTA DE VAGAS */
.lista-vagas {
    padding-left: 20px;
    margin-bottom: 0;
}

.lista-vagas li {
    margin-bottom: 8px;
}

/* SUBMENU DO TOPO - CORRIGIDO */
.submenu {
    position: relative;
    padding: 10px 0;
}

.submenu-botao {
    color: var(--branco);
    text-decoration: none;
    font-weight: 700;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.submenu-botao:hover {
    color: var(--amarelo-detalhe);
}

.submenu-conteudo {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 260px;
    background: var(--branco);
    border-radius: 12px;
    box-shadow: 0 8px 24px var(--sombra);
    padding: 10px;
    z-index: 9999;
}

.submenu-conteudo::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 12px;
}

.submenu-conteudo a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--texto);
    padding: 10px 12px;
    border-radius: 8px;
    margin: 0;
    text-decoration: none;
    white-space: nowrap;
}

.submenu-conteudo a:hover {
    background: #f5fff6;
    color: var(--verde-principal);
}

.submenu:hover .submenu-conteudo {
    display: block;
}

.vaga-aberta {
    animation: piscarVaga 1.2s infinite;
}

/* =========================================================
   ADMIN - DASHBOARD / MANIFESTAÇÕES / PRIORIDADES
========================================================= */

.status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}

.status.recebida {
    background: #198754;
}

.status.em-analise {
    background: #f2a900;
    color: #24313f;
}

.status.respondida {
    background: #0d6efd;
}

.status.concluida {
    background: #00347a;
}

.status.arquivada {
    background: #6c757d;
}

.prioridade {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    background: #f4f6f8;
    border: 1px solid #ddd;
}

.prioridade.baixa {
    color: #198754;
}

.prioridade.media {
    color: #f2a900;
}

.prioridade.alta {
    color: #fd7e14;
}

.prioridade.critica {
    color: #dc3545;
}

.tabela-admin {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.tabela-admin th {
    background: #00347a;
    color: #fff;
    padding: 12px;
    text-align: left;
    font-size: 0.95rem;
}

.tabela-admin td {
    padding: 12px;
    border-bottom: 1px solid #e5e5e5;
    vertical-align: middle;
}

.tabela-admin tbody tr:hover {
    background: #f4f6f8;
}

.erro {
    background: #f8d7da;
    color: #842029;
    border-left: 5px solid #dc3545;
    padding: 15px;
    border-radius: 10px;
}

.sucesso {
    background: #d1e7dd;
    color: #0f5132;
    border-left: 5px solid #198754;
    padding: 15px;
    border-radius: 10px;
}

.mensagem-info {
    background: #e7f1ff;
    color: #084298;
    border-left: 5px solid #0d6efd;
    padding: 15px;
    border-radius: 10px;
}

.formulario {
    background: #fff;
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.formulario h3,
.card h3 {
    color: #00347a;
    font-weight: 700;
}

.btn-outline-secondary {
    border-radius: 999px;
    font-weight: 600;
}

.display-5,
.display-4 {
    font-weight: 800;
}

.card {
    border: none;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.card-body {
    padding: 25px;
}

/* Responsivo da tabela admin */
@media (max-width: 768px) {
    .tabela-admin th,
    .tabela-admin td {
        padding: 10px;
        font-size: 0.85rem;
    }

    .status,
    .prioridade {
        font-size: 0.75rem;
        padding: 5px 9px;
    }

    .formulario {
        padding: 18px;
    }
}
/* =========================================================
   ADMIN - ARQUIVADAS
========================================================= */

.status.arquivada {
    background: #6c757d;
    color: #fff;
}

.prioridade.baixa {
    color: #198754;
}

.prioridade.media {
    color: #f2a900;
}

.prioridade.alta {
    color: #fd7e14;
}

.prioridade.critica {
    color: #dc3545;
}

.bi-archive-fill {
    color: #6c757d;
}

/* =========================================================
   ADMIN - VAGAS
========================================================= */

.vaga-card {
    cursor: pointer;
    border: 1px solid #e5e5e5;
    transition: 0.2s ease-in-out;
}

.vaga-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.badge-vaga-aberta {
    display: inline-block;
    color: #198754;
    font-weight: 700;
    animation: piscarVaga 1.2s infinite;
}

.badge-vaga-fechada {
    display: inline-block;
    color: #6c757d;
    font-weight: 700;
}

@keyframes piscarVaga {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }

    100% {
        opacity: 1;
    }
}
/* =========================================================
   ADMIN - CURRÍCULOS
   curriculos.php / visualizar-curriculo.php
========================================================= */

.status.recebido {
    background: #198754;
    color: #ffffff;
}

.status.em-analise {
    background: #f2a900;
    color: #24313f;
}

.status.entrevista {
    background: #0d6efd;
    color: #ffffff;
}

.status.aprovado {
    background: #006b1f;
    color: #ffffff;
}

.status.reprovado {
    background: #dc3545;
    color: #ffffff;
}

.bi-file-earmark-person-fill,
.bi-person-badge-fill,
.bi-file-earmark-pdf-fill {
    color: var(--amarelo-detalhe);
}

.mensagem-info .btn-verde {
    margin-top: 8px;
}

@media (max-width: 768px) {
    .tabela-admin {
        min-width: 900px;
    }
}
/* =========================================================
   ADMIN - RELATÓRIOS
========================================================= */

.relatorio-card {
    background: #f4f6f8;
    border-left: 5px solid var(--azul-principal);
    border-radius: 14px;
    padding: 16px;
    min-height: 95px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.relatorio-card span {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--texto);
}

.relatorio-card strong {
    font-size: 2rem;
    color: var(--azul-principal);
    line-height: 1;
}

.relatorio-card.critica {
    border-left-color: #dc3545;
}

.relatorio-card.critica strong {
    color: #dc3545;
}

@media print {
    body {
        background: #ffffff;
        color: #000000;
    }

    .topo,
    .faixa-info,
    .rodape,
    .area-nao-imprimir {
        display: none !important;
    }

    main {
        padding: 0 !important;
    }

    .container {
        max-width: 100% !important;
        width: 100% !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #cccccc !important;
        page-break-inside: avoid;
    }

    .tabela-admin {
        box-shadow: none !important;
        font-size: 12px;
    }

    .tabela-admin th {
        background: #eeeeee !important;
        color: #000000 !important;
    }

    .status,
    .prioridade {
        border: 1px solid #999999;
        color: #000000 !important;
        background: #ffffff !important;
    }
}

/* =========================================================
   ADMIN - AUDITORIA
========================================================= */

.bi-shield-check {
    color: var(--amarelo-detalhe);
}

.tabela-admin td {
    max-width: 260px;
    word-break: break-word;
}

/* BOTÕES DO PAINEL ADMIN */
.btn-painel-admin {
    min-height: 50px;
    border-radius: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-painel-admin i {
    margin-right: 0;
}

.card-body.d-flex.flex-column {
    height: 100%;
}

.card-body.d-flex.flex-column .btn {
    margin-top: auto;
}
/* =========================================================
   CORREÇÕES - DENÚNCIAS / FILTROS / STATUS
========================================================= */

/* Botão limpar com mesmo padrão visual dos outros botões */
.btn-outline-secondary {
    padding: 13px 22px;
    border-radius: 10px;
    font-weight: 700;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #6c757d;
    border: 1px solid #6c757d;
    background: #ffffff;
}

.btn-outline-secondary:hover {
    background: #6c757d;
    color: #ffffff;
}

/* Correção definitiva das cores dos status */
.status.recebida {
    background: #198754;
    color: #ffffff !important;
}

.status.em-analise,
.status.analise {
    background: #f2a900;
    color: #24313f !important;
}

.status.respondida {
    background: #0d6efd;
    color: #ffffff !important;
}

.status.concluida {
    background: #00347a;
    color: #ffffff !important;
}

.status.arquivada {
    background: #6c757d;
    color: #ffffff !important;
}

/* Melhor alinhamento dos botões do filtro */
.card .btn {
    vertical-align: middle;
}

.card form .btn {
    min-height: 50px;
}
/* =========================================================
   CORREÇÃO FINAL - TABELA DE MANIFESTAÇÕES
========================================================= */

.tabela-admin td {
    max-width: none !important;
    word-break: normal !important;
    white-space: normal;
}

.tabela-admin th,
.tabela-admin td {
    vertical-align: middle;
}

.tabela-admin td:first-child {
    min-width: 150px;
    white-space: normal;
}

.tabela-admin td:nth-child(6),
.tabela-admin td:nth-child(7) {
    white-space: nowrap;
}

.status {
    min-width: 86px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.status.concluida {
    background: #00347a;
    color: #ffffff !important;
    min-width: 92px;
}

.prioridade {
    min-width: 86px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    line-height: 1.2;
}

.tabela-admin .btn-sm {
    min-width: 130px;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
/* BOTÃO ARQUIVADAS */
.btn-arquivadas {
    color: #ffffff !important;
    padding: 13px 22px;
    border-radius: 10px;
    font-weight: 700;
}

.btn-arquivadas i {
    color: #ffffff !important;
    margin-right: 6px;
}

.btn-arquivadas:hover {
    color: #ffffff !important;
}

/* BOTÃO ARQUIVADAS - CORREÇÃO DEFINITIVA */
.btn.btn-secondary.btn-arquivadas {
    background: #6c757d !important;
    color: #ffffff !important;
    padding: 13px 22px;
    border-radius: 10px;
    font-weight: 700;
    border: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn.btn-secondary.btn-arquivadas i,
.btn.btn-secondary.btn-arquivadas .bi {
    color: #ffffff !important;
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-size: 1rem;
}

.btn.btn-secondary.btn-arquivadas:hover {
    background: #5c636a !important;
    color: #ffffff !important;
}

/* =========================================================
   ADMIN - BOTÕES DA TELA ADMINISTRADORES
========================================================= */

.tabela-administradores .acoes-admin {
    display: flex !important;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.tabela-administradores .acoes-admin form {
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
}

.tabela-administradores .coluna-acoes-admin {
    min-width: 230px;
    white-space: nowrap;
}

.tabela-administradores .acoes-admin .btn.btn-admin-acao {
    min-width: 88px !important;
    width: 88px !important;
    min-height: 36px !important;
    height: 36px !important;
    max-height: 36px !important;
    padding: 4px 8px !important;
    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 600;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px;
    white-space: nowrap;
}

.tabela-administradores .acoes-admin .btn.btn-admin-acao i {
    margin: 0 !important;
    font-size: 13px !important;
}

@media (max-width: 768px) {
    .tabela-administradores .acoes-admin {
        flex-direction: column;
        align-items: stretch;
    }

    .tabela-administradores .acoes-admin .btn.btn-admin-acao {
        width: 100% !important;
    }
}