/* Layout Global */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #007bff, #6610f2);
    color: #333;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.content {
    width: 100%;
    max-width: 700px;
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    margin: 20px;
    text-align: center;
}

.info-section {
    margin-bottom: 20px;
}

.info-section img {
    max-width: 120px;
    margin-bottom: 20px;
}

.info-section h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
}

.info-section ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px;
    text-align: left;
}

.info-section ul li {
    font-size: 1rem;
    color: #555;
    margin-bottom: 5px;
}

.info-section p {
    font-size: 1rem;
    color: #777;
}

.form-container {
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-step {
    display: none;
    text-align: left;
}

.form-step.active {
    display: block;
}

h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    font-size: 1rem;
    color: #555;
    display: block;
    margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.options label {
    font-size: 1rem;
    color: #555;
    cursor: pointer;
}

.form-actions {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #6610f2);
    color: #fff;
    padding: 12px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    flex: 1;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6610f2, #007bff);
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
    padding: 12px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    flex: 1;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #5a6268;
}

footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #ffffff;
    width: 100%;
    position: fixed;
    bottom: 10px;
    left: 0;
}

/* Modal Estilos */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #555;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #000;
}

.encerrada-container {
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    margin: 20px auto;
}

.encerrada-container h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #ff0000;
}

.encerrada-container p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #555;
}

.encerrada-container .btn-primary {
    background: linear-gradient(135deg, #007bff, #6610f2);
    color: #fff;
    padding: 12px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.encerrada-container .btn-primary:hover {
    background: linear-gradient(135deg, #6610f2, #007bff);
}

/* Estilo específico para o painel */
.content.painel {
    max-width: 1200px;
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}

.painel h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
}

.painel p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
}

.table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 10px 15px;
    text-align: left;
    border: 1px solid #ddd;
}

.table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #333;
}

.table tbody tr:nth-child(even) {
    background: #f4f4f4;
}

.table tbody tr:hover {
    background: #e9e9e9;
}

.painel .btn-primary {
    margin: 20px 0;
    display: inline-block;
}

.painel {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

header h1 {
    font-size: 2rem;
    color: #333;
}

header p {
    font-size: 1.2rem;
    color: #555;
    margin-top: 10px;
    font-weight: bold;
}

.filters {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    gap: 20px;
}

.filters label {
    font-size: 1rem;
    color: #333;
}

.filters select {
    padding: 8px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.charts {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 20px;
}

.chart-container {
    flex: 1;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.search-container {
    margin: 20px 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.search-container label {
    font-size: 1rem;
    color: #333;
    font-weight: bold;
}

.search-container input {
    width: 300px;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-container input:focus {
    border-color: #007bff;
    box-shadow: 0px 0px 5px rgba(0, 123, 255, 0.5);
}

.video-container {
    position: relative;
    overflow: hidden;
}

.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

iframe {
    width: 100%;
    height: 200px;
    border: none;
}

.fas.fa-lock {
    font-size: 50px;
}

.text-white {
    color: #ffffff;
}

/* Container da tabela: evita estourar na tela menor */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

/* Tabela mais controlada */
.table.table-inscricoes {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;          /* Fundamental para controlar largura */
    font-size: 0.9rem;            /* Levemente menor ajuda a caber mais */
}

.table.table-inscricoes th,
.table.table-inscricoes td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    white-space: normal;          /* Permite quebra de linha */
    word-wrap: break-word;
}

/* Larguras base por coluna (ajuste se quiser) */
.table.table-inscricoes th:nth-child(1),
.table.table-inscricoes td:nth-child(1) {
    width: 90px;                  /* Número de inscrição */
}

.table.table-inscricoes th:nth-child(2),
.table.table-inscricoes td:nth-child(2) {
    width: 180px;                 /* Nome */
}

.table.table-inscricoes th:nth-child(3),
.table.table-inscricoes td:nth-child(3) {
    width: 220px;                 /* E-mail */
    word-break: break-all;        /* Quebra e-mail no meio se for grande */
}

.table.table-inscricoes th:nth-child(4),
.table.table-inscricoes td:nth-child(4) {
    width: 180px;                 /* Curso Pretendido */
}

.table.table-inscricoes th:nth-child(5),
.table.table-inscricoes td:nth-child(5) {
    width: 110px;                 /* Cota */
}

.table.table-inscricoes th:nth-child(6),
.table.table-inscricoes td:nth-child(6) {
    width: 190px;                 /* Colégio */
}

.table.table-inscricoes th:nth-child(7),
.table.table-inscricoes td:nth-child(7) {
    width: 130px;                 /* Rede Social */
}

.table.table-inscricoes th:nth-child(8),
.table.table-inscricoes td:nth-child(8) {
    width: 170px;                 /* Modalidade */
}

.table.table-inscricoes th:nth-child(9),
.table.table-inscricoes td:nth-child(9) {
    width: 130px;                 /* Data */
}

/* Para telas bem pequenas, reduzir fonte e padding */
@media (max-width: 768px) {
    .table.table-inscricoes {
        font-size: 0.8rem;
    }

    .table.table-inscricoes th,
    .table.table-inscricoes td {
        padding: 6px 8px;
    }
}

.view-switch {
    margin: 15px 0 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-toggle {
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid #0068b1;
    text-decoration: none;
    font-size: 0.9rem;
    background: #fff;
    color: #0068b1;
    transition: 0.2s ease;
}

.btn-toggle:hover {
    background: #e6f0fa;
}

.btn-toggle.active {
    background: #0068b1;
    color: #fff;
}
