/* --- ESTILOS GERAIS --- */
:root {
    --cor-primaria: #005f73;
    --cor-secundaria: #00a896;
    --cor-fundo: #f4f4f9;
    --cor-texto: #333;
    --cor-borda: #ddd;
    --sombra-caixa: 0 2px 5px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
    flex-grow: 1;
}

h1,
h2 {
    color: var(--cor-primaria);
    margin-bottom: 0.5rem;
}


/* --- HEADER --- */
header.main-header {
    width: 100%;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #004d61 0%, #007a8a 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
}

.header-logo {
    height: 120px;
    margin: 0;
}

.header-text {
    text-align: left;
}

.header-text p {
    margin: 0.2rem 0;
    font-size: 0.95rem;
    color: #e0f2f7;
    line-height: 1.4;
}


/* --- WIDGET DE LOGIN (NETLIFY IDENTITY) --- */
.admin-page [data-netlify-identity-menu] {
    margin-left: auto;
    font-size: 0.9rem;
    color: #e0f2f7;
    background: rgba(0, 0, 0, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-page .netlify-identity-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.admin-page .netlify-identity-user {
    font-weight: bold;
    color: #ffffff;
}

.admin-page .netlify-identity-login,
.admin-page .netlify-identity-logout {
    color: #ffffff;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    transition: background-color 0.2s, color 0.2s;
    font-weight: bold;
    display: inline-block;
}

.admin-page .netlify-identity-login:hover,
.admin-page .netlify-identity-logout:hover {
    background-color: #ffffff;
    color: var(--cor-primaria);
}

.netlify-identity-signup {
    display: none !important;
}


/* --- SEÇÃO DE INFO DO TRABALHO (EVALUATION.HTML) --- */
.work-info {
    max-width: 900px;
    margin: 2rem auto 2rem auto;
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--sombra-caixa);
    text-align: center;
}

.work-info h2 {
    font-size: 1.2rem;
    color: #666;
}

.work-info h3 {
    font-size: 1.5rem;
    color: var(--cor-primaria);
}

.program-info {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #555;
}

.program-info span {
    display: inline-block;
    margin: 5px 5px 0 5px;
    padding: 3px 8px;
    background-color: var(--cor-fundo);
    border: 1px solid var(--cor-borda);
    border-radius: 10px;
}


/* --- CAIXAS DE AVISO E DESTAQUES --- */
.notice-warning {
    border-color: #faebcc;
    background-color: #fcf8e3;
    color: #8a6d3b;
}

.notice-danger {
    border-color: #ebccd1;
    background-color: #f2dede;
    color: #a94442;
}

.notice-info {
    border-color: #bce8f1;
    background-color: #d9edf7;
    color: #31708f;
}

.notice-box {
    display: none;
    padding: 20px;
    margin-top: -10px;
    margin-bottom: 20px;
    border: 1px solid;
    border-radius: 8px;
    transition: all 0.3s;
    line-height: 1.7;
}

.notice-box[style*="display: block"] {
    display: block !important;
}

.notice-box ul {
    margin-top: 10px;
    padding-left: 20px;
}

.notice-box li {
    margin-bottom: 8px;
}

.self-evaluation-row {
    background-color: #fcf8e3 !important;
}

.self-eval-badge {
    display: inline-block;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: bold;
    color: #8a6d3b;
    background-color: #faebcc;
    border-radius: 5px;
    margin-left: 5px;
}


/* --- FORMULÁRIO DE AVALIAÇÃO (EVALUATION.HTML) --- */
form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--cor-borda);
    box-shadow: var(--sombra-caixa);
}

fieldset {
    border: 1px solid var(--cor-borda);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
}

fieldset.disabled {
    opacity: 0.4;
    pointer-events: none;
    /* Impede cliques e interações */
}

legend {
    padding: 0 0.5rem;
    font-weight: bold;
    color: var(--cor-primaria);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group .description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-style: italic;
}

input[type="text"],
input[type="number"],
textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 5px;
    border: 1px solid var(--cor-borda);
    font-size: 1rem;
    font-family: inherit;
    background-color: #fdfdfd;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus {
    border-color: var(--cor-secundaria);
    box-shadow: 0 0 5px rgba(0, 168, 150, 0.5);
    outline: none;
}

.choice-group {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.choice-group input[type="radio"] {
    display: none;
}

.choice-group label {
    padding: 10px 20px;
    border: 2px solid var(--cor-borda);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s;
}

.choice-group input[type="radio"]:checked+label {
    background-color: var(--cor-primaria);
    color: white;
    border-color: var(--cor-primaria);
}

.rating-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.rating-group input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.rating-group label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border: 2px solid var(--cor-borda);
    border-radius: 50%;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.rating-group label:hover {
    background-color: #eafcfb;
    border-color: var(--cor-secundaria);
}

.rating-group input[type="radio"]:checked+label {
    background-color: var(--cor-primaria);
    color: white;
    border-color: var(--cor-primaria);
    transform: scale(1.1);
}

button[type="submit"] {
    display: block;
    width: 100%;
    padding: 0.8rem;
    border: none;
    background-color: var(--cor-primaria);
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #003e4d;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 400px;
}

.modal-content h2 {
    margin-top: 0;
}

#close-modal {
    margin-top: 20px;
    padding: 10px 30px;
    background-color: var(--cor-secundaria);
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}


/* --- PÁGINA INICIAL (INDEX.HTML) --- */
#campus-selector-container {
    margin-bottom: 2rem;
}

#campus-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
}

.campus-button {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--cor-primaria);
    background-color: white;
    border: 2px solid var(--cor-primaria);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s;
}

.campus-button:hover {
    background-color: #eafcfb;
}

.campus-button.active {
    background-color: var(--cor-primaria);
    color: white;
}

/* --- ESTILOS PARA O CARD DE TÍTULO (INDEX.HTML) --- */

#campus-selector-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--sombra-caixa);
    text-align: center;
    margin-bottom: 2rem;
    border-top: 5px solid var(--cor-primaria);
    /* Detalhe de design */
}

#campus-selector-container h1 {
    font-size: 2.2rem;
    margin-bottom: 0.25rem;
}

#campus-selector-container .subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-top: 0;
    margin-bottom: 2rem;
}

#campus-selector-container h3 {
    font-size: 1rem;
    color: var(--cor-texto);
    font-weight: bold;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sessao-collapsible {
    background-color: white;
    border: 1px solid var(--cor-borda);
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: var(--sombra-caixa);
    transition: margin-bottom 0.2s;
}

.sessao-collapsible[open] {
    margin-bottom: 1.5rem;
}

.sessao-collapsible summary {
    padding: 1.5rem;
    cursor: pointer;
    outline: none;
    list-style: none;
    position: relative;
}

.sessao-collapsible summary::after {
    content: '▼';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s;
    color: var(--cor-primaria);
}

.sessao-collapsible[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
}

.sessao-collapsible ul {
    list-style: none;
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin-top: -1rem;
}

.sessao-collapsible li a {
    display: block;
    padding: 1rem;
    margin-top: 0.5rem;
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid var(--cor-borda);
    transition: background-color 0.3s, transform 0.2s;
}

.sessao-collapsible li a:hover {
    background-color: var(--cor-secundaria);
    color: white;
    transform: translateY(-2px);
    border-color: var(--cor-primaria);
}

.sessao-collapsible li a small {
    color: #666;
}

.sessao-collapsible li a:hover small {
    color: #eee;
}

.program-info-list {
    color: #555;
    font-style: italic;
}


/* --- PÁGINA DE ADMIN (ADMIN.HTML) --- */
.admin-page main {
    max-width: 1400px;
}

.section-title {
    margin-top: 4rem;
    border-top: 1px solid #ddd;
    padding-top: 2rem;
}

.campus-group {
    background-color: white;
    border: 1px solid var(--cor-borda);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: var(--sombra-caixa);
}

.campus-group[open]>summary {
    border-bottom: 1px solid var(--cor-borda);
}

.campus-group>summary {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1.5rem;
    cursor: pointer;
    list-style: none;
}

.campus-group>summary h2 {
    margin: 0;
    color: var(--cor-texto);
    font-size: 1.2rem;
    font-weight: bold;
}

.campus-group>summary::after {
    content: '▼';
    font-size: 1.2rem;
    color: var(--cor-primaria);
    margin-left: auto;
    padding-left: 1rem;
    transition: transform 0.2s ease-in-out;
    transform: rotate(0deg);
}

.campus-group[open]>summary::after {
    transform: rotate(180deg);
}

.area-group {
    padding: 0 1.5rem;
}

.area-group:first-of-type {
    padding-top: 1.5rem;
}

.area-group:last-of-type {
    padding-bottom: 1.5rem;
}


.area-group h3 {
    color: var(--cor-secundaria);
    margin-bottom: 1rem;
    margin-top: 3rem;
}

.area-group h4 {
    font-size: 1.2rem;
    color: var(--cor-texto);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--cor-secundaria);
    padding-left: 1rem;
}

.status-absent {
    color: #888;
    font-style: italic;
}

/* --- ESTILOS DE TABELA PARA ADMIN (DESKTOP E MOBILE) --- */

/* Estilos para Desktop (Layout de Tabela Padrão) */
.table-container {
    width: 100%;
    overflow-x: auto;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.results-table th,
.results-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--cor-borda);
    text-align: left;
    vertical-align: middle;
}

.results-table thead th {
    background-color: var(--cor-primaria);
    color: white;
    font-size: 1rem;
    position: sticky;
    top: 0;
    z-index: 1;
}

.results-table tbody tr:nth-child(even) {
    background-color: var(--cor-fundo);
}

.results-table tbody tr:hover {
    background-color: #eafcfb;
}

/* Estilos para Mobile (Transforma a tabela em "Cards") */
@media screen and (max-width: 768px) {
    .results-table thead {
        /* Esconde o cabeçalho original no mobile */
        display: none;
    }

    .results-table tr {
        /* Transforma cada linha em um "card" */
        display: block;
        margin-bottom: 1.5rem;
        border: 1px solid var(--cor-borda);
        border-radius: 8px;
        padding: 1rem;
        box-shadow: var(--sombra-caixa);
        background-color: #fff;
        /* Garante fundo branco para os cards */
    }

    .results-table tbody tr:nth-child(even) {
        background-color: #fff;
        /* Remove a cor de fundo alternada no mobile */
    }

    .results-table td {
        /* Empilha as células verticalmente */
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #f0f0f0;
        padding: 0.75rem 0;
        text-align: right;
    }

    .results-table td:last-child {
        border-bottom: none;
    }

    /* Cria o rótulo da coluna usando o atributo data-label */
    .results-table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: var(--cor-primaria);
        text-align: left;
        padding-right: 1rem;
    }

    /* Tratamento especial para a primeira célula (título do card) */
    .results-table td:first-child {
        display: block;
        text-align: left;
        font-size: 1.1rem;
        font-weight: bold;
        color: var(--cor-primaria);
        padding: 0 0 0.75rem 0;
        border-bottom: 1px solid var(--cor-borda);
        margin-bottom: 0.75rem;
    }

    .results-table td:first-child::before {
        display: none;
        /* Esconde o rótulo da primeira célula (ex: "Posição:") */
    }
}

/* --- BOTÕES DE AÇÃO E RODAPÉ --- */
#download-excel-btn {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 2rem auto 2.5rem auto;
    padding: 12px 20px;
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    background-color: #2a9d8f;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--sombra-caixa);
}

#download-excel-btn:hover {
    background-color: #264653;
    transform: translateY(-2px);
}

#download-excel-btn i {
    margin-right: 8px;
}

#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--cor-secundaria);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
}

#scrollTopBtn:hover {
    background-color: var(--cor-primaria);
}

.main-footer {
    padding: 2rem;
    margin-top: 3rem;
    text-align: center;
    background-color: #ffffff;
    border-top: 1px solid var(--cor-borda);
}

.main-footer p {
    font-weight: bold;
    color: var(--cor-texto);
    margin-bottom: 1rem;
}

.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.partner-logos img {
    height: 40px;
    width: auto;
    max-width: 30%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
}

.partner-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}


/* --- DESIGN RESPONSIVO --- */
@media screen and (max-width: 992px) {
    main {
        padding: 2rem 1rem;
    }
}

@media screen and (max-width: 768px) {

    /* Header Responsivo */
    header.main-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .header-content {
        flex-direction: column;
        gap: 0rem;
    }

    .header-text {
        text-align: center;
    }

    .header-logo {
        height: 100px;
    }

    .header-text p {
        margin: 0;
        font-size: 0.8rem;
    }

    /* Netlify Menu Responsivo */
    .admin-page [data-netlify-identity-menu] {
        margin-left: 0;
        margin-top: 1rem;
        width: 90%;
        max-width: 300px;
    }

    .admin-page .netlify-identity-menu {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
        width: 100%;
    }

    .admin-page .netlify-identity-logout {
        box-sizing: border-box;
        width: 100%;
        text-align: center;
    }

    /* Outros ajustes responsivos */
    form {
        padding: 1rem;
    }

    #campus-selector {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .campus-button {
        font-size: 1rem;
        padding: 12px;
        text-align: center;
    }
}

/* --- NOVOS ESTILOS PARA ADMIN E UX --- */

/* SPINNER DE CARREGAMENTO */
.loader-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem;
    min-height: 200px;
}

.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid var(--cor-primaria);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1.5s linear infinite;
    margin-bottom: 1rem;
}

.loader-container p {
    font-weight: bold;
    color: var(--cor-primaria);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* CONTROLES DE ADMIN (BUSCA) */
.admin-controls {
    margin-bottom: 1.5rem;
}

#searchInput {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1.1rem;
    border: 2px solid var(--cor-borda);
    border-radius: 8px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#searchInput:focus {
    border-color: var(--cor-secundaria);
    box-shadow: 0 0 8px rgba(0, 168, 150, 0.3);
    outline: none;
}

/* ORDENAÇÃO DE TABELAS */
.results-table thead th.sortable {
    cursor: pointer;
    position: relative;
    user-select: none;
}

.results-table thead th.sortable:hover {
    background-color: #003e4d;
}

.results-table thead th.sortable::after {
    content: '\2195';
    /* CORRIGIDO: Removido um \ */
    opacity: 0.4;
    position: absolute;
    right: 15px;
}

.results-table thead th.sort-asc::after {
    content: '\2191';
    /* CORRIGIDO: Removido um \ */
    opacity: 1;
}

.results-table thead th.sort-desc::after {
    content: '\2193';
    /* CORRIGIDO: Removido um \ */
    opacity: 1;
}

/* === INÍCIO: NOVOS ESTILOS PARA PAGINA DE CERTIFICADOS === */

/* Estilo para o <main> da página de certificados */
main.certificado-main {
    text-align: center;
    padding-top: 3rem;
}

/* Container da busca */
.search-container {
    width: 100%;
    /* Ocupa todo o espaço lateral disponível */
    max-width: 100%;
    /* Remove o limite antigo de 600px */
    margin: 2rem auto;
    padding: 2rem;
    /* Mais espaço interno */
    background-color: #fff;
    border-radius: 8px;
    box-shadow: var(--sombra-caixa);
    box-sizing: border-box;
    /* Garante que o padding não estoure a largura */
}

/* Regra para o <label> que estava inline */
.search-container label[for="participant-name-input"] {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    text-align: left;
}

#participant-name-input {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1.1rem;
    border: 2px solid var(--cor-borda);
    border-radius: 8px;
    margin-bottom: 1rem;
}

#search-all-btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    background-color: var(--cor-primaria);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

#search-all-btn:hover {
    background-color: #003e4d;
    transform: translateY(-2px);
}

#search-all-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#search-all-btn i {
    margin-right: 8px;
}

/* Regra para o container de status que estava inline */
#status-container {
    min-height: 50px;
    /* Garante que a div não "pule" quando o spinner aparecer */
}

/* Regra para o .loader-container da página de certificados */
/* Garante que está escondido por padrão */
#loading-container {
    display: none;
}

#results-container {
    text-align: left;
}

.result-item {
    padding: 1rem 1.5rem;
    border: 2px solid var(--cor-borda);
    border-radius: 8px;
    margin-bottom: 1rem;

    /* FLEXBOX: O segredo do alinhamento */
    display: flex;
    justify-content: space-between;
    /* Texto na esquerda, botão na direita */
    align-items: center;
    /* Centraliza verticalmente */
    gap: 20px;
    /* Força espaço MÍNIMO de 20px entre texto e botão */
}

.result-item p {
    margin: 0;
    font-weight: bold;
    font-size: 1.1rem;
    text-align: left;
    color: #333;
    line-height: 1.4;
}

.result-item.not-found {
    background-color: #f9f9f9;
    border-color: #eee;
}

.result-item.not-found p {
    color: #888;
    font-style: italic;
}

.download-btn {
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    background-color: #006b2c;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;

    /* BLINDAGEM DO BOTÃO: Impede que ele deforme */
    white-space: nowrap;
    /* O texto nunca vai quebrar linha */
    flex-shrink: 0;
    /* O botão nunca vai encolher, mesmo se o nome for gigante */
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.download-btn:hover {
    background-color: #004d1f;
}

/* Mensagens de erro/não encontrado */
#general-error-message,
#not-found-message {
    display: none;
    margin-top: 1.5rem;
    font-weight: bold;
}

#general-error-message {
    color: #a94442;
}

#not-found-message {
    color: #8a6d3b;
}

/* --- ESTILOS DO AUTOCOMPLETE --- */
#suggestions-container {
    position: relative;
}

#suggestions-list {
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    max-height: 200px;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid var(--cor-borda);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
    margin: 0;
    padding: 0;
    list-style: none;
}

#suggestions-list li {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1rem;
    border-bottom: 1px solid #eee;
}

#suggestions-list li:last-child {
    border-bottom: none;
}

#suggestions-list li:hover {
    background-color: #f0f0f0;
}

/* --- AJUSTES PARA TELAS PEQUENAS --- */
@media (max-width: 480px) {
    .result-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.8rem;
    }

    .result-item p {
        margin-bottom: 0.8rem;
        width: 100%;
        text-align: center;
    }

    .download-btn {
        width: 100%;
        text-align: center;
        padding: 12px 10px;
        font-size: 1rem;
    }

    .result-item.not-found p {
        text-align: center;
        margin-bottom: 0;
    }
}

/* === FIM: NOVOS ESTILOS PARA PAGINA DE CERTIFICADOS === */

/* --- Área da Comissão Organizadora --- */

.section-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 40px auto;
    width: 80%;
    /* Não ocupa a largura toda pra ficar mais elegante */
}

.committee-section {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
    padding: 0 20px;
}

.committee-card {
    background-color: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    /* Sombra suave */
    text-align: center;
    transition: transform 0.2s ease;
}

.committee-card:hover {
    transform: translateY(-2px);
    /* Leve movimento ao passar o mouse */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #003366;
    /* Azul CEFET */
}

.card-header i {
    font-size: 1.5rem;
}

.committee-card h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.card-description {
    color: #666;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* --- Grupo de Inputs (Select + Botão) --- */
.input-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: stretch;
    /* Garante mesma altura */
}

/* Estilização do Select */
.select-wrapper {
    position: relative;
    flex: 1;
    /* Ocupa o espaço disponível */
    max-width: 300px;
}

.select-wrapper select {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #f9f9f9;
    appearance: none;
    /* Remove seta padrão feia do navegador */
    -webkit-appearance: none;
    cursor: pointer;
    color: #333;
    transition: border-color 0.3s;
}

.select-wrapper select:focus {
    outline: none;
    border-color: #0056b3;
    background-color: #fff;
}

/* Ícone customizado sobre o select */
.select-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
    /* Permite clicar no select através do ícone */
    font-size: 0.8rem;
}

/* Estilização do Botão */
.btn-primary {
    padding: 0 25px;
    font-size: 1rem;
    font-weight: 500;
    background-color: #0056b3;
    /* Azul mais vivo */
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background-color: #004494;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:disabled {
    background-color: #a0a0a0;
    cursor: not-allowed;
}

/* Mensagem de Status */
.status-msg {
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    min-height: 20px;
    /* Evita pulo de layout */
}

/* --- Responsividade (Celular) --- */
@media (max-width: 600px) {
    .input-group {
        flex-direction: column;
        /* Um embaixo do outro */
    }

    .select-wrapper,
    .select-wrapper select {
        max-width: 100%;
    }

    .btn-primary {
        width: 100%;
        padding: 12px;
        justify-content: center;
    }
}