/* Reset e configurações gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Cards */
.card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    padding: 20px;
}

.card-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
}

.card-body {
    padding: 30px;
}

/* Formulários */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4f46e5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #4f46e5;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Botões */
.btn-primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
    background: #6b7280;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Warning box */
.warning-box {
    background: #fef3c7;
    border: 2px solid #f59e0b;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.warning-box i {
    color: #d97706;
    font-size: 1.2rem;
    margin-top: 3px;
}

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

/* Info cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.info-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card i {
    font-size: 2.5rem;
    color: #4f46e5;
    margin-bottom: 15px;
}

.info-card h3 {
    margin-bottom: 10px;
    color: #1f2937;
}

/* Página da Prova */
.prova-page {
    background: #f3f4f6;
}

.prova-header {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.timer-container {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
}

.status-monitor {
    display: flex;
    gap: 15px;
    align-items: center;
}

.status-item {
    background: #d1fae5;
    color: #065f46;
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.warning-count {
    background: #fef3c7;
    color: #92400e;
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.monitor-alert {
    background: #dc2626;
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

.prova-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
}

.prova-sidebar {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.prova-questoes {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.questao-navegacao .nav-buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s;
}

.nav-btn:hover {
    border-color: #4f46e5;
}

.nav-btn.active {
    background: #4f46e5;
    color: white;
    border-color: #4f46e5;
}

.nav-btn.answered {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.prova-stats {
    margin-top: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.stat {
    background: #f3f4f6;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #4f46e5;
}

.stat-label {
    font-size: 0.9rem;
    color: #6b7280;
}

.btn-submit {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    margin-top: 30px;
    transition: transform 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
}

/* Questões */
.questao-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.questao-item:last-child {
    border-bottom: none;
}

.questao-texto {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #1f2937;
    font-weight: 600;
}

.opcoes-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.opcao-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.opcao-item:hover {
    border-color: #4f46e5;
    background: #f5f3ff;
}

.opcao-item.selected {
    border-color: #4f46e5;
    background: #f5f3ff;
}

.opcao-letra {
    width: 36px;
    height: 36px;
    background: #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.opcao-item.selected .opcao-letra {
    background: #4f46e5;
    color: white;
}

.opcao-texto {
    flex: 1;
    padding-top: 2px;
}

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

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    overflow: hidden;
    animation: modalAppear 0.3s;
}

@keyframes modalAppear {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    padding: 20px;
    text-align: center;
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    padding: 20px;
    background: #f3f4f6;
    text-align: center;
}

.warning-countdown {
    text-align: center;
    font-size: 1.2rem;
    margin-top: 20px;
    padding: 10px;
    background: #fef3c7;
    border-radius: 8px;
}

.warning-countdown span {
    font-weight: bold;
    color: #dc2626;
    font-size: 1.5rem;
}

/* Footer */
.footer {
    text-align: center;
    color: white;
    margin-top: 40px;
    padding: 20px;
    opacity: 0.8;
}

/* Responsividade */
@media (max-width: 768px) {
    .prova-container {
        grid-template-columns: 1fr;
    }
    
    .prova-header {
        flex-direction: column;
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
}

/* Página de resultados */
.resultado-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-top: 20px;
}

.nota-final {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    border-radius: 15px;
    margin-bottom: 30px;
}

.nota-valor {
    font-size: 4rem;
    font-weight: bold;
    color: #4f46e5;
    margin: 20px 0;
}

.nota-label {
    font-size: 1.2rem;
    color: #6b7280;
}

.resultado-detalhes {
    margin-top: 30px;
}

.detalhe-item {
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 20px;
}

.detalhe-item.correto {
    border-color: #10b981;
    background: #f0fdf4;
}

.detalhe-item.incorreto {
    border-color: #dc2626;
    background: #fef2f2;
}

.detalhe-pergunta {
    font-weight: 600;
    margin-bottom: 10px;
}

.detalhe-resposta {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.resposta-label {
    font-weight: 600;
    min-width: 120px;
}

.resposta-correta {
    color: #10b981;
    font-weight: 600;
}

.resposta-incorreta {
    color: #dc2626;
    font-weight: 600;
}

.explicacao {
    margin-top: 15px;
    padding: 15px;
    background: #f3f4f6;
    border-radius: 8px;
    font-style: italic;
}

/* Estilos para a página de resultados */
.nota-final {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    border-radius: 15px;
    margin-bottom: 30px;
}

.nota-label {
    font-size: 1.2rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.nota-valor {
    font-size: 4rem;
    font-weight: bold;
    margin: 20px 0;
}

.nota-detalhes {
    color: #6b7280;
    line-height: 1.8;
}

.resultado-detalhes {
    margin-top: 40px;
}

.resultado-detalhes h3 {
    color: #4f46e5;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detalhe-item {
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.detalhe-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.detalhe-item.correto {
    border-color: #10b981;
    background: #f0fdf4;
}

.detalhe-item.incorreto {
    border-color: #dc2626;
    background: #fef2f2;
}

.detalhe-pergunta {
    font-weight: 600;
    margin-bottom: 15px;
    color: #1f2937;
    line-height: 1.5;
}

.detalhe-resposta {
    display: flex;
    gap: 15px;
    margin: 10px 0;
    align-items: center;
}

.resposta-label {
    font-weight: 600;
    min-width: 140px;
    color: #4b5563;
}

.resposta-correta {
    color: #10b981;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.resposta-incorreta {
    color: #dc2626;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.explicacao {
    margin-top: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
    font-style: italic;
    color: #4b5563;
}

.explicacao strong {
    color: #1f2937;
}

/* Responsividade */
@media (max-width: 768px) {
    .detalhe-resposta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .resposta-label {
        min-width: auto;
    }
    
    .nota-valor {
        font-size: 3rem;
    }
}

/* Estilos para botões na página de resultados */
.btn-voltar-inicio {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
}

.btn-voltar-inicio:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(79, 70, 229, 0.3);
    color: white;
}

.btn-imprimir {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
}

.btn-imprimir:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(16, 185, 129, 0.3);
}

.btn-tentar-novamente {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-tentar-novamente:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #4b5563, #374151);
}

.botoes-acao {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e5e7eb;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Estilos para impressão */
/* ===== ESTILOS DE IMPRESSÃO MELHORADOS ===== */
@media print {
    /* Esconder elementos desnecessários na impressão */
    .no-print,
    .sidebar,
    .content-tabs,
    .content-header,
    .modal-header,
    .modal-close,
    .btn,
    button:not(.no-print-btn),
    .prova-actions,
    .correcao-actions,
    .navegacao-container,
    .menu-questoes-rapido,
    .btn-finalizar-prova,
    .btn-finalizar-menu {
        display: none !important;
    }

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

    body {
        font-family: 'Times New Roman', Times, serif;
        font-size: 12pt;
        line-height: 1.4;
        padding: 0;
        margin: 0;
        color: #000;
        background: #fff;
    }

    .modal, .modal-content {
        position: static !important;
        display: block !important;
        background: none !important;
        box-shadow: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        overflow: visible !important;
    }

    .print-container {
        max-width: 100%;
        margin: 0 auto;
        padding: 0.5in;
    }

    /* Cabeçalho com logo */
    .print-header {
        text-align: center;
        margin-bottom: 30px;
        padding-bottom: 15px;
        border-bottom: 2px solid #000;
    }

    .print-header-logo {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
        flex-wrap: wrap;
    }

    .print-logo {
        width: 80px;
        height: auto;
    }

    .print-logo-right {
        width: 60px;
        height: auto;
    }

    .print-header-text {
        text-align: center;
        flex: 1;
    }

    .print-header-text h1 {
        font-size: 16pt;
        font-weight: bold;
        margin: 0;
    }

    .print-header-text h2 {
        font-size: 14pt;
        margin: 5px 0;
        font-weight: normal;
    }

    .print-header-text p {
        font-size: 10pt;
        margin: 0;
        color: #555;
    }

    .print-subheader {
        margin-top: 10px;
        font-size: 10pt;
        font-weight: bold;
    }

    /* Campos do caderno */
    .print-campos {
        margin: 20px 0;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .campo-linha {
        display: flex;
        align-items: baseline;
        gap: 10px;
        flex-wrap: wrap;
    }

    .campo-label {
        font-weight: bold;
        min-width: 70px;
    }

    .campo-underline {
        border-bottom: 1px dotted #000;
        flex: 1;
        min-width: 150px;
        height: 20px;
    }

    /* Instruções */
    .print-instrucoes {
        margin: 20px 0;
        padding: 12px;
        background: #f9f9f9;
        border-left: 3px solid #4f46e5;
        font-size: 9pt;
    }

    .print-instrucoes h4 {
        margin-bottom: 8px;
        font-size: 10pt;
    }

    .print-instrucoes ul {
        margin-left: 20px;
    }

    .print-instrucoes li {
        margin-bottom: 3px;
    }

    /* Informações da prova */
    .print-prova-info {
        margin: 20px 0;
        padding: 12px;
        border: 1px solid #ddd;
        background: #fafafa;
    }

    .print-prova-info h3 {
        margin: 0 0 10px 0;
        font-size: 12pt;
        text-align: center;
    }

    .print-info-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        font-size: 9pt;
    }

    .info-item {
        display: flex;
        gap: 5px;
    }

    .info-label {
        font-weight: bold;
        min-width: 70px;
    }

    /* Questões */
    .questao-print {
        margin-bottom: 25px;
        page-break-inside: avoid;
    }

    .questao-numero {
        font-weight: bold;
        margin-bottom: 8px;
        border-bottom: 1px solid #ccc;
        padding-bottom: 3px;
    }

    .questao-texto {
        margin-bottom: 12px;
        margin-left: 10px;
        line-height: 1.5;
    }

    .opcao-linha {
        margin: 6px 0 6px 20px;
        display: flex;
        align-items: flex-start;
    }

    .opcao-letra {
        min-width: 25px;
        font-weight: 500;
    }

    .opcao-texto {
        flex: 1;
    }

    .rascunho-area {
        margin-top: 10px;
        border-top: 1px dashed #ccc;
        padding-top: 5px;
    }

    .rascunho-area small {
        font-size: 8pt;
        color: #999;
    }

    .rascunho-linhas {
        min-height: 40px;
    }

    /* Rodapé */
    .print-footer {
        margin-top: 40px;
        text-align: center;
        font-size: 8pt;
        color: #666;
        border-top: 1px solid #ccc;
        padding-top: 10px;
    }
}


/* Estilos para as provas */
.prova-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.prova-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.status-ativa {
  background: #d1fae5 !important;
  color: #065f46 !important;
}

.status-inativa {
  background: #f3f4f6 !important;
  color: #6b7280 !important;
}

.status-concluida {
  background: #fef3c7 !important;
  color: #92400e !important;
}

.btn-ver-prova:hover {
  background: #4338ca !important;
}

.btn-visualizar-prova:hover {
  background: #059669 !important;
}

.btn-compartilhar-prova:hover {
  background: #7c3aed !important;
}

/* Estilos para Resultados Gerais */
.tab-interna {
    flex: 1;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    color: #6b7280;
    border: none;
    background: #f9fafb;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-interna.active {
    color: #4f46e5;
    border-bottom-color: #4f46e5;
    background: #f5f3ff;
}

.conteudo-resultados {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Cards de desempenho */
.desempenho-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border-left: 4px solid #4f46e5;
    transition: transform 0.3s;
}

.desempenho-card:hover {
    transform: translateY(-3px);
}

.progress-bar {
    height: 10px;
    background: #e5e7eb;
    border-radius: 5px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    border-radius: 5px;
}

.media-nota {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4f46e5;
}

/* Adicione este estilo no CSS */
.btn-ver-nota {
    background: #8b5cf6; /* Roxo para diferenciar */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.btn-ver-nota:hover {
    background: #7c3aed;
}


/* ===== ESTILOS PARA PROVA CORRIGIDA ===== */
.btn-prova-corrigida {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: white !important;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.btn-prova-corrigida:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3) !important;
}

.btn-prova-corrigida i {
    font-size: 0.85rem;
}

/* Modal da Prova Corrigida */
.modal-prova-corrigida .modal-content {
    max-width: 800px;
    max-height: 90vh;
}

.prova-corrigida-container {
    max-height: 70vh;
    overflow-y: auto;
    padding: 20px;
}

.resposta-item {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    background: #f9fafb;
    border-left: 4px solid #e5e7eb;
    transition: all 0.3s;
}

.resposta-item:hover {
    transform: translateX(5px);
}

.resposta-item.correta {
    border-left-color: #10b981;
    background: #f0fdf4;
}

.resposta-item.incorreta {
    border-left-color: #ef4444;
    background: #fef2f2;
}

.resposta-item .questao-numero {
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.resposta-item .questao-numero i {
    font-size: 0.9rem;
}

.resposta-item .pergunta {
    font-weight: 500;
    margin-bottom: 10px;
    color: #1f2937;
    line-height: 1.4;
}

.resposta-detalhes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .resposta-detalhes {
        grid-template-columns: 1fr;
    }
}

.resposta-info {
    padding: 10px;
    border-radius: 6px;
    background: white;
}

.resposta-info h5 {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 5px;
}

.resposta-texto {
    font-weight: 500;
    margin: 5px 0;
    padding: 8px;
    border-radius: 4px;
}

.resposta-texto.correta {
    background: #d1fae5;
    color: #065f46;
}

.resposta-texto.incorreta {
    background: #fee2e2;
    color: #7f1d1d;
}

.resposta-texto.aluno {
    background: #f3f4f6;
    color: #4b5563;
}

.explicacao {
    margin-top: 15px;
    padding: 12px;
    background: #f0f9ff;
    border-radius: 6px;
    border-left: 3px solid #3b82f6;
    font-size: 0.9rem;
    color: #1e40af;
}

.explicacao h6 {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    color: #1e40af;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Estatísticas da correção */
.correcao-stats {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Botões de ação da correção */
.correcao-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.btn-imprimir-correcao {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.btn-imprimir-correcao:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-enviar-correcao {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.btn-enviar-correcao:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Badges para status de correção */
.badge-correcao {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-corrigido {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
}

.badge-pendente {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
}

.badge-erro {
    background: rgba(239, 68, 68, 0.1);
    color: #7f1d1d;
}

/* Ajustes para responsividade */
@media (max-width: 768px) {
    .correcao-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .correcao-actions {
        flex-direction: column;
    }
    
    .correcao-actions button {
        width: 100%;
    }
}

/* Estilos para impressão da correção */
@media print {
    .modal-header,
    .correcao-actions,
    .modal-close {
        display: none !important;
    }
    
    .modal-content {
        box-shadow: none !important;
        border: none !important;
        max-height: none !important;
    }
    
    .prova-corrigida-container {
        max-height: none !important;
        overflow: visible !important;
    }
    
    .resposta-item {
        page-break-inside: avoid;
        border: 1px solid #ddd !important;
    }
}

/* ===== ESTILOS PARA CORREÇÃO DA PROVA ===== */
.correcao-container {
    margin-top: 30px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 15px;
    border: 2px solid #e2e8f0;
}

.correcao-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.correcao-header h3 {
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 10px;
}

.correcao-toggle {
    background: #4f46e5;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.correcao-toggle:hover {
    background: #4338ca;
    transform: translateY(-2px);
}

.correcao-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.correcao-content.show {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.questao-corrigida {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border-left: 4px solid #e5e7eb;
    transition: all 0.3s;
}

.questao-corrigida:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.questao-corrigida.correta {
    border-left-color: #10b981;
    background: #f0fdf4;
}

.questao-corrigida.incorreta {
    border-left-color: #ef4444;
    background: #fef2f2;
}

.questao-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.questao-numero {
    font-weight: 600;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 8px;
}

.questao-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-correta {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
}

.status-incorreta {
    background: rgba(239, 68, 68, 0.1);
    color: #7f1d1d;
}

.pergunta-corrigida {
    font-weight: 500;
    margin-bottom: 20px;
    color: #1f2937;
    line-height: 1.6;
}

.respostas-comparacao {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .respostas-comparacao {
        grid-template-columns: 1fr;
    }
}

.resposta-box {
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
}

.resposta-box.aluno {
    background: #f9fafb;
}

.resposta-box.correta {
    background: #f0fdf4;
    border-color: #10b981;
}

.resposta-box h4 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 8px;
}

.resposta-texto {
    padding: 12px;
    border-radius: 8px;
    margin: 10px 0;
    font-weight: 500;
}

.resposta-texto.aluno {
    background: #e5e7eb;
    color: #4b5563;
}

.resposta-texto.correta {
    background: #d1fae5;
    color: #065f46;
}

.resposta-letra {
    display: inline-block;
    width: 28px;
    height: 28px;
    background: #4f46e5;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    font-weight: bold;
    margin-right: 10px;
}

.explicacao-professor {
    margin-top: 20px;
    padding: 20px;
    background: #f0f9ff;
    border-radius: 10px;
    border-left: 4px solid #3b82f6;
}

.explicacao-professor h4 {
    color: #1e40af;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.explicacao-texto {
    color: #1e40af;
    line-height: 1.6;
    margin: 0;
}

/* Estatísticas da correção */
.correcao-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border-radius: 12px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Mensagem do professor */
.mensagem-professor {
    margin-top: 25px;
    padding: 20px;
    background: #fff3cd;
    border-radius: 10px;
    border-left: 4px solid #ffc107;
}

.mensagem-professor h4 {
    color: #856404;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mensagem-texto {
    color: #856404;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

/* Botão para visualizar toda a correção */
.btn-ver-correcao {
    background: #4f46e5;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    transition: all 0.3s;
}

.btn-ver-correcao:hover {
    background: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-ver-correcao i {
    transition: transform 0.3s;
}

.btn-ver-correcao.expanded i {
    transform: rotate(180deg);
}

/* Estilos para mensagens de erro detalhadas */
.debug-info {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    font-family: monospace;
    font-size: 0.85rem;
    color: #6b7280;
    word-wrap: break-word;
    max-height: 200px;
    overflow-y: auto;
}

.debug-toggle {
    background: none;
    border: none;
    color: #4f46e5;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
}

.debug-content {
    display: none;
    margin-top: 10px;
    padding: 10px;
    background: white;
    border-radius: 5px;
    border: 1px solid #d1d5db;
}

.debug-content.show {
    display: block;
}

/* Estilos para mensagens de erro */
.error-message {
    padding: 40px 20px;
}

.debug-info {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    font-family: monospace;
    font-size: 0.85rem;
    color: #6b7280;
    word-wrap: break-word;
}

.debug-content {
    background: white;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #d1d5db;
    font-size: 0.75rem;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 10px;
}

code {
    font-family: 'Courier New', monospace;
    background: #f3f4f6;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.9rem;
}

/* Botões responsivos */
@media (max-width: 768px) {
    .error-message .btn-secondary,
    .error-message a,
    .error-message button {
        width: 100%;
        justify-content: center;
    }
}

.prova-card.aguardando-correcao {
        border-left-color: #f59e0b !important;
        opacity: 0.9;
    }
    
    .prova-card.aguardando-correcao:hover {
        opacity: 1;
    }
    
    .status-aguardando {
        background: #fef3c7 !important;
        color: #92400e !important;
    }
    
    .btn-aguardando {
        background: #6b7280 !important;
        cursor: not-allowed !important;
        opacity: 0.7;
    }
    
    .prova-card.concluida.corrigida {
        border-left-color: #10b981 !important;
    }
    
    .status-corrigida {
        background: #d1fae5 !important;
        color: #065f46 !important;
    }

    /* Estilo para o campo de matrícula */
    .matricula-field {
        position: relative;
    }

    .matricula-field .form-control {
        font-family: 'Courier New', monospace;
        font-size: 1.1rem;
        letter-spacing: 1px;
    }

    .matricula-field .hint-text {
        color: #6b7280;
        font-size: 0.85rem;
        margin-top: 5px;
        display: block;
    }

    .required-badge {
        color: #ef4444;
        font-size: 0.9em;
        margin-left: 5px;
    }

    /* Feedback visual para matrícula */
    .matricula-field.required .form-control {
        border-color: #4f46e5;
        background-color: #f5f3ff;
    }

    /* Ícone de validação */
    .validation-icon {
        position: absolute;
        right: 15px;
        top: 42px;
        font-size: 1.2rem;
        display: none;
    }

    .validation-icon.valid {
        display: inline;
        color: #10b981;
    }

    .validation-icon.invalid {
        display: inline;
        color: #ef4444;
    }

    /* Estilo para os campos de professor/aluno */
    .role-fields {
        display: none;
        margin-top: 15px;
        padding: 15px;
        background: #f9fafb;
        border-radius: 8px;
        border: 2px solid #e5e7eb;
    }

    .role-fields.active {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    /* Estilo específico para campo de telefone */
.telefone-field {
    position: relative;
}

.telefone-field .form-control {
    padding-right: 40px;
}

.telefone-field .valid-icon {
    position: absolute;
    right: 15px;
    top: 42px;
    font-size: 1.2rem;
    display: none;
}

.telefone-field .valid-icon.valid {
    display: inline;
    color: #10b981;
}

.telefone-field .valid-icon.invalid {
    display: inline;
    color: #ef4444;
}


    /* ESTILOS PARA O CAMPO DE MATRÍCULA */
    .matricula-field {
        margin-bottom: 20px;
    }

    .matricula-field label {
        display: block;
        margin-bottom: 8px;
        color: #4b5563;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .matricula-field .hint-text {
        font-size: 0.85rem;
        color: #6b7280;
        font-style: italic;
        display: none;
    }

    .matricula-field.required .hint-text {
        display: inline;
    }

    .matricula-field .required-badge {
        color: #ef4444;
        font-size: 0.9em;
        margin-left: 2px;
    }

    .matricula-field .validation-icon {
        position: absolute;
        right: 15px;
        top: 42px;
        font-size: 1.2rem;
        display: none;
    }

    .matricula-field .validation-icon.valid {
        display: inline;
        color: #10b981;
    }

    .matricula-field .validation-icon.invalid {
        display: inline;
        color: #ef4444;
    }

    /* Garantir que o input de matrícula tenha a mesma aparência */
    #registerMatricula {
        width: 100%;
        padding: 12px 15px;
        border: 2px solid #e5e7eb;
        border-radius: 8px;
        font-size: 16px;
        transition: border-color 0.3s;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    #registerMatricula:focus {
        outline: none;
        border-color: #4f46e5;
    }

    /* Ajustar posicionamento do ícone de validação */
    .matricula-field {
        position: relative;
    }

    #matriculaIcon {
        position: absolute;
        right: 15px;
        top: 42px;
        font-size: 1.2rem;
        display: none;
    }

    #matriculaDescription {
        margin-top: 5px;
        font-size: 0.85rem;
        color: #6b7280;
        display: none;
    }

    .matricula-field.required #matriculaDescription {
        display: block;
    }

.recovery-tab.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
/* Adicione este estilo no seu CSS existente */
.status-cancelada {
    background: #fee2e2 !important;
    color: #dc2626 !important;
    font-weight: 600;
}

.prova-card.cancelada {
    border-left-color: #ef4444;
    background: #fef2f2;
}

/* Atualize também as outras classes de status se necessário */
.status-pendente {
    background: #fef3c7;
    color: #92400e;
}

.status-concluida {
    background: #f3f4f6;
    color: #374151;
}

/* ===== ESTILOS PARA PROVAS CANCELADAS ===== */
.aluno-card.cancelada {
    border-left: 6px solid #dc2626 !important;
    background: linear-gradient(135deg, #fef2f2, #fee2e2) !important;
}

.status-cancelada {
    background: linear-gradient(135deg, #dc2626, #991b1b) !important;
    color: white !important;
}

.cancelamento-info {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border-left: 4px solid #dc2626;
    border: 2px solid #fecaca;
}

.cancelamento-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #7f1d1d;
}

.cancelamento-header i {
    font-size: 1.2rem;
}

.cancelamento-detalhes {
    font-size: 0.9rem;
    color: #991b1b;
}

.cancelamento-detalhes-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 5px 0;
    border-bottom: 1px solid #fecaca;
}

.cancelamento-detalhes-item:last-child {
    border-bottom: none;
}

.cancelamento-estatisticas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 10px;
    padding: 10px;
    background: #fef2f2;
    border-radius: 8px;
}

.estatistica-item {
    text-align: center;
    padding: 8px;
    background: white;
    border-radius: 6px;
    border: 1px solid #fecaca;
}

.estatistica-valor {
    font-weight: bold;
    font-size: 1.2rem;
    color: #dc2626;
}

.estatistica-label {
    font-size: 0.8rem;
    color: #991b1b;
    margin-top: 3px;
}

/* ===== BADGE PARA CANCELAMENTO ===== */
.badge-cancelada {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: white;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem;
    margin-left: 10px;
}

/* ===== MODAL DE DETALHES DE CANCELAMENTO ===== */
.modal-cancelamento .modal-content {
    max-width: 800px;
}

.cancelamento-timeline {
    margin: 20px 0;
    padding-left: 20px;
    border-left: 3px solid #dc2626;
}

.timeline-item {
    margin-bottom: 20px;
    position: relative;
    padding-left: 10px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #dc2626;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #dc2626;
}

.timeline-item h4 {
    color: #7f1d1d;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-item p {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
}

/* ===== BOTÃO PARA VER DETALHES ===== */
.btn-ver-cancelamento {
    background: linear-gradient(135deg, #dc2626, #991b1b) !important;
    color: white !important;
    border: none !important;
}

.btn-ver-cancelamento:hover {
    background: linear-gradient(135deg, #991b1b, #7f1d1d) !important;
    transform: translateY(-2px) !important;
}

/* Adicione no estilo existente no aluno.html */

/* Estilo para logs de violação */
.log-violacao {
    background: linear-gradient(to right, #fee2e2, #fecaca) !important;
    border-left: 4px solid #dc2626 !important;
    border: 1px solid #fca5a5 !important;
}

/* Estilo para logs de prazo expirado */
.log-prazo {
    background: linear-gradient(to right, #fef3c7, #fde68a) !important;
    border-left: 4px solid #f59e0b !important;
    border: 1px solid #fcd34d !important;
}

/* Estilo para estatísticas do log */
.log-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.log-stat-item {
    background: rgba(255, 255, 255, 0.7);
    padding: 6px;
    border-radius: 4px;
    text-align: center;
    font-size: 0.8rem;
}

.log-stat-value {
    font-size: 1.2rem;
    font-weight: bold;
    display: block;
}

.log-stat-label {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Estilos para provas canceladas */
.prova-card[data-prova-cancelada="true"] {
    position: relative;
    opacity: 0.95;
}

.prova-card[data-prova-cancelada="true"]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 90%, rgba(239, 68, 68, 0.1) 95%, rgba(239, 68, 68, 0.2) 100%);
    pointer-events: none;
    border-radius: 12px;
}

.status-cancelada {
    background: #fee2e2 !important;
    color: #dc2626 !important;
    border: 1px solid #dc2626 !important;
}

.status-cancelada-violacao {
    background: #fee2e2 !important;
    color: #dc2626 !important;
    border: 1px solid #dc2626 !important;
    font-weight: bold !important;
    animation: pulse-cancelada 2s infinite;
}

.status-cancelada-prazo {
    background: #fef3c7 !important;
    color: #92400e !important;
    border: 1px solid #f59e0b !important;
}

@keyframes pulse-cancelada {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Badge de violação */
.violacao-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc2626;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Tooltip para estatísticas */
.estatisticas-tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.estatisticas-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #374151;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Seção de provas canceladas */
.cancelamento-header {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-left: 4px solid #dc2626;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.cancelamento-header h3 {
    color: #7f1d1d;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cancelamento-warning {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 12px;
    margin: 15px 0;
}

.cancelamento-warning p {
    color: #92400e;
    margin: 0;
    font-size: 0.9rem;
}

/* Modal de cancelamento */
.modal-cancelamento-content {
    border-top: 4px solid #dc2626;
}

.cancelamento-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.cancelamento-stat {
    background: rgba(255,255,255,0.9);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.cancelamento-stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #dc2626;
}

.cancelamento-stat-label {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 5px;
}

/* Modal de Cancelamento */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #6b7280;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Estilos específicos para o modal de cancelamento */
.cancelamento-violacao {
    border-left: 5px solid #dc2626;
}

.cancelamento-prazo {
    border-left: 5px solid #f59e0b;
}

.detalhes-cancelamento {
    margin-top: 25px;
}

.detalhes-item {
    margin-bottom: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.estatisticas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.estatistica-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.estatistica-valor {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.estatistica-label {
    font-size: 0.85rem;
    color: #6b7280;
}

.log-detalhado {
    background: #1f2937;
    color: #e5e7eb;
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.85rem;
    overflow-x: auto;
    max-height: 200px;
    overflow-y: auto;
}

.info-importante {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

/* Timeline de eventos */
.timeline {
    margin: 25px 0;
    padding-left: 20px;
    border-left: 3px solid #e5e7eb;
}

.timeline-item {
    margin-bottom: 20px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #6b7280;
}

.timeline-item.importante::before {
    background: #dc2626;
}

.timeline-hora {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 600;
}

.timeline-descricao {
    margin-top: 5px;
    color: #374151;
}

/* Cores Suaves para Cancelamentos */

/* Violação - Vermelho mais suave */
.cancelamento-violacao {
    border-left: 5px solid #e53e3e; /* Vermelho mais suave */
    background: linear-gradient(135deg, #fff5f5, #fed7d7); /* Gradiente suave */
}

/* Prazo - Laranja suave */
.cancelamento-prazo {
    border-left: 5px solid #ed8936; /* Laranja suave */
    background: linear-gradient(135deg, #fffaf0, #feebc8); /* Gradiente suave */
}

/* Badges mais suaves */
.status-cancelado {
    background: linear-gradient(135deg, #fff5f5, #fed7d7);
    color: #c53030; /* Vermelho mais escuro para contraste */
    border: 1px solid #fed7d7;
}

.nota-cancelada {
    background: linear-gradient(135deg, #fff5f5, #fed7d7);
    color: #c53030;
    border: 1px solid #fed7d7;
}

/* Modal header colors - MAIS SUAVE */
.modal-header.cancelamento-violacao {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border-bottom: 1px solid #fc8181;
}

.modal-header.cancelamento-prazo {
    background: linear-gradient(135deg, #fffaf0 0%, #feebc8 100%);
    border-bottom: 1px solid #fbd38d;
}

/* Adicione estes estilos no style do aluno.html */

.info-horario-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin: 15px 0;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.info-horario-item {
    text-align: center;
    padding: 8px;
}

.info-horario-label {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.info-horario-value {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
}

/* Estilos para status de horário */
.horario-disponivel {
    color: #10b981;
    font-weight: bold;
}

.horario-aguardando {
    color: #f59e0b;
    font-weight: bold;
}

.horario-encerrado {
    color: #ef4444;
    font-weight: bold;
}

/* Modal de horário */
.modal-horario-info {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border: 2px solid #bae6fd;
}

.modal-horario-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 15px;
}

.modal-horario-item {
    text-align: center;
}

.modal-horario-title {
    font-size: 0.9rem;
    color: #0369a1;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal-horario-value {
    font-size: 1.3rem;
    font-weight: bold;
}

/* No realizar-prova.html, adicione: */
.meta-item.horario {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.meta-item.horario i {
    color: #10b981;
}

/* Estados do timer */
.timer-normal {
    color: #065f46;
    font-weight: normal;
}

.timer-warning-low {
    color: #f59e0b;
    font-weight: bold;
}

.timer-warning-medium {
    color: #ea580c;
    font-weight: bold;
}

.timer-warning-high {
    color: #dc2626;
    font-weight: bold;
    animation: pulse 1s infinite;
}

/* Animações específicas do timer */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
/* ESTILOS PARA PAGINAÇÃO - UMA QUESTÃO POR PÁGINA */
.navegacao-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.navegacao-inferior {
    border-bottom: none;
    border-top: 1px solid #e5e7eb;
    margin-top: 20px;
}

.btn-navegacao {
    padding: 10px 20px;
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    min-width: 150px;
    justify-content: center;
}

.btn-navegacao:hover:not(:disabled) {
    background: #3730a3;
    transform: translateY(-2px);
}

.btn-navegacao:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    opacity: 0.7;
}

.contador-questao {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    background: white;
    padding: 8px 20px;
    border-radius: 20px;
    border: 2px solid #4f46e5;
    min-width: 150px;
    text-align: center;
}

.questao-atual-container {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
    background: white;
    margin: 15px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
}

/* Indicador de questão respondida */
.indicador-resposta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    font-size: 0.8rem;
    margin-left: 10px;
    flex-shrink: 0;
}

/* Menu rápido de navegação */
.menu-questoes-rapido {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 100;
    max-height: 70vh;
    overflow-y: auto;
    padding: 15px;
    width: 200px;
}

.menu-questoes-rapido h4 {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: #4f46e5;
    text-align: center;
}

.questoes-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.btn-questao-rapida {
    width: 30px;
    height: 30px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-questao-rapida:hover {
    border-color: #4f46e5;
    background: #f0f9ff;
}

.btn-questao-rapida.respondida {
    background: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}

.btn-questao-rapida.atual {
    background: #4f46e5;
    color: white;
    border-color: #4f46e5;
}

/* Estilo do botão Finalizar Prova */
.btn-finalizar-prova {
    padding: 12px 25px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-finalizar-prova:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-finalizar-prova:active {
    transform: translateY(0);
}

/* Botão de finalizar no menu rápido */
.btn-finalizar-menu {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 101;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-finalizar-menu:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
}


/* ===== ESTILOS PARA SEÇÃO DE ANEXOS ===== */
.secao-anexos-container {
    margin-top: 2rem;
    padding: 0;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    background: white;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.anexos-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1.5rem 2rem;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.anexos-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.anexos-title h3 {
    color: #4f46e5;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.anexos-title p {
    color: #6b7280;
    font-size: 0.95rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

.anexos-tabs {
    display: flex;
    background: #f8fafc;
    padding: 0.5rem;
    margin: 0 auto;
    border-radius: 12px;
    max-width: 600px;
    justify-content: center;
    gap: 0.5rem;
}

.anexo-tab {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border: none;
    background: transparent;
    color: #6b7280;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 140px;
    font-size: 0.9rem;
}

.anexo-tab:hover {
    background: #f1f5f9;
    color: #4f46e5;
}

.anexo-tab.active {
    background: white;
    color: #4f46e5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-weight: 600;
}

.tab-anexo-content {
    display: none;
    padding: 2rem;
    background: #f9fafb;
}

.tab-anexo-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.tab-content-inner {
    max-width: 800px;
    margin: 0 auto;
}

.tab-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.tab-header h4 {
    color: #4f46e5;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.1rem;
}

.tab-header p {
    color: #6b7280;
    font-size: 0.9rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.drop-zone {
    text-align: center;
    padding: 3rem 2rem;
    border: 3px dashed #cbd5e1;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto;
    max-width: 600px;
}

.drop-zone:hover {
    border-color: #4f46e5;
    background: #f0f9ff;
    transform: translateY(-2px);
}

.drop-zone i {
    font-size: 3rem;
    color: #9ca3af;
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.drop-zone:hover i {
    color: #4f46e5;
}

.drop-zone h4 {
    color: #4b5563;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.drop-zone p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.drop-zone .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
}

.upload-progress {
    margin-top: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    border-radius: 4px;
    transition: width 0.3s;
    width: 0%;
}

.char-count {
    color: #6b7280;
    display: block;
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.85rem;
}

.btn-add {
    display: block;
    margin: 1.5rem auto 0;
    max-width: 300px;
    width: 100%;
    padding: 0.875rem;
}

.anexos-lista-container {
    margin-top: 2rem;
    padding: 0 2rem 2rem;
}

.anexos-lista-header {
    text-align: center;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.anexos-lista-header h4 {
    color: #4f46e5;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
}

.anexos-count {
    background: #4f46e5;
    color: white;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

.anexos-lista {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    min-height: 120px;
}

.empty-anexos {
    text-align: center;
    padding: 3rem 1rem;
    color: #9ca3af;
}

.empty-anexos i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-anexos h4 {
    color: #6b7280;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.empty-anexos p {
    color: #9ca3af;
    font-size: 0.9rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.5;
}

.anexos-info {
    margin: 2rem auto;
    max-width: 800px;
    border-left-color: #8b5cf6;
    background: #f8fafc;
}

.anexos-info h4 {
    color: #4f46e5;
}

.anexos-info ul {
    margin-left: 1.25rem;
}

.anexos-info li {
    margin-bottom: 0.5rem;
    color: #4b5563;
    line-height: 1.5;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsividade */
@media (max-width: 768px) {
    .secao-anexos-container {
        margin-top: 1.5rem;
        border-radius: 12px;
    }
    
    .anexos-header {
        padding: 1.5rem 1rem;
    }
    
    .anexos-title h3 {
        font-size: 1.3rem;
    }
    
    .anexos-tabs {
        flex-direction: column;
        max-width: 100%;
        padding: 0.5rem;
    }
    
    .anexo-tab {
        min-width: auto;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .tab-anexo-content {
        padding: 1.5rem 1rem;
    }
    
    .drop-zone {
        padding: 2rem 1rem;
    }
    
    .drop-zone i {
        font-size: 2.5rem;
    }
    
    .drop-zone h4 {
        font-size: 1rem;
    }
    
    .anexos-lista-container {
        padding: 0 1rem 1.5rem;
    }
    
    .anexos-lista {
        padding: 1rem;
    }
    
    .anexos-info {
        margin: 1.5rem auto;
        padding: 1.5rem;
    }
}


/* Adicione ao seu CSS existente */
.file-preview {
    background: #f8f9fa;
    border: 2px solid #f59e0b;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    position: relative;
}

.file-preview::before {
    content: '⏳';
    position: absolute;
    top: -10px;
    right: -10px;
    background: #f59e0b;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Adicione ao CSS existente */
.anexos-tabs,
.anexo-tab,
.tab-anexo-content,
.tab-anexo-content * {
    pointer-events: auto !important;
}

/* Garantir que os botões de anexos não herdem comportamentos */
.anexo-tab {
    cursor: pointer;
    user-select: none;
}

/* Prevenir que o formulário de anexos seja afetado por outros eventos */
#secaoAnexos {
    isolation: isolate;
}

/* Estilos para botão de edição no preview */
.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.2), 0 4px 6px -2px rgba(245, 158, 11, 0.1);
}

.btn-warning::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn-warning:hover::after {
    left: 100%;
}

/* Ajuste responsivo para os botões do preview */
@media (max-width: 768px) {
    .preview-container .btn {
        width: 100% !important;
        margin-bottom: 10px !important;
    }
}

/* ===== ESTILOS PARA EDITOR AVANÇADO ===== */
.editor-ckeditor {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

.editor-ckeditor .ck-editor__editable {
    min-height: 150px;
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    border: none !important;
    background: #fafafa;
}

.editor-ckeditor .ck-editor__editable:focus {
    background: white;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.editor-ckeditor-opcao .ck-editor__editable {
    min-height: 80px;
    max-height: 200px;
    background: white;
    padding: 1rem;
    border: none !important;
}

.btn-navegacao-questao {
    transition: all 0.2s ease;
}

.btn-navegacao-questao:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.editor-questao-container {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Estilos para fórmulas matemáticas */
.math-container {
    background: #f8fafc;
    padding: 10px;
    border-radius: 6px;
    margin: 10px 0;
    border-left: 3px solid #8b5cf6;
    font-family: 'Cambria Math', 'Latin Modern Math', STIXGeneral, serif;
}

/* Estilos para imagens no editor */
.ck-editor__editable img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 10px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para tabelas no editor */
.ck-editor__editable table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.ck-editor__editable table td,
.ck-editor__editable table th {
    border: 1px solid #e5e7eb;
    padding: 8px 12px;
    text-align: left;
}

.ck-editor__editable table th {
    background: #f8fafc;
    font-weight: 600;
}

/* Responsividade do editor */
@media (max-width: 768px) {
    .editor-ckeditor .ck-editor__editable {
        min-height: 120px;
        max-height: 300px;
    }
    
    .ck-toolbar__items {
        flex-wrap: wrap;
    }
    
    .ck-toolbar__items > * {
        margin-bottom: 5px;
    }
}

/* Garantir que o badge de obrigatório só apareça quando necessário */
.required-badge {
    color: #ef4444;
    font-size: 0.9em;
    display: none; /* começa escondido */
}

/* Quando a matrícula for obrigatória, o JavaScript muda para display: inline */
#matriculaField.required .required-badge {
    display: inline;
}

/* ===== ESTILOS PARA PROVA ADAPTADA (3 ALTERNATIVAS) ===== */
.prova-adaptada-badge {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.prova-adaptada-badge i {
    font-size: 0.9rem;
}

/* Card da prova adaptada na listagem */
.prova-card-adaptada {
    border-left: 4px solid #2563eb !important;
    background: linear-gradient(to right, #f0f9ff, white);
}

.prova-card-adaptada .prova-titulo {
    color: #1e40af !important;
}

/* Badge de acessibilidade */
.acessibilidade-tag {
    background: rgba(37, 99, 235, 0.1);
    color: #1e40af;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

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

.turma-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
    width: 100%;
    box-sizing: border-box;
}

.turma-card:nth-child(1) { animation-delay: 0.1s; }
.turma-card:nth-child(2) { animation-delay: 0.2s; }
.turma-card:nth-child(3) { animation-delay: 0.3s; }
.turma-card:nth-child(4) { animation-delay: 0.4s; }
.turma-card:nth-child(5) { animation-delay: 0.5s; }
.turma-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.turma-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -10px rgba(139, 92, 246, 0.3) !important;
}

.badge-eixo {
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-eixo.natureza {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.badge-eixo.humanas {
    background: #ede9fe;
    color: #5b21b6;
    border: 1px solid #8b5cf6;
}

.badge-eixo.linguagens {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #f59e0b;
}

.badge-eixo.geral {
    background: #f3f4f6;
    color: #1f2937;
    border: 1px solid #9ca3af;
}

.turmas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    width: 100%;
}

@media (max-width: 768px) {
    .turmas-grid {
        grid-template-columns: 1fr;
    }
    
    .turma-card {
        animation: none !important;
    }
}

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

.result-tab {
    transition: all 0.2s ease;
}

.result-tab:hover {
    background: rgba(249, 115, 22, 0.1) !important;
    color: #f97316 !important;
    transform: translateY(-2px);
}

.result-tab.active {
    background: white !important;
    color: #f97316 !important;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.15) !important;
}

/* Cards de resultado */
.resultado-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #f97316;
    transition: all 0.3s ease;
}

.resultado-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(249, 115, 22, 0.2);
}

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

.filtro-select {
    transition: all 0.2s ease;
}

.filtro-select:focus {
    outline: none;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1) !important;
}

.prova-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.4s ease-out;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.prova-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

/* ===== CORES DOS EIXOS - DASHBOARD PROFESSOR ===== */
.eixo-natureza {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.eixo-humanas {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
}

.eixo-linguagens {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.eixo-desenvolvimento {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.eixo-gestao {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(236, 72, 153, 0.3);
}

.eixo-producao {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(20, 184, 166, 0.3);
}

.eixo-turismo {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
}

.eixo-ambiente {
    background: linear-gradient(135deg, #84cc16 0%, #65a30d 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(132, 204, 22, 0.3);
}

/* Fallback para qualquer outro eixo */
.eixo-generico {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
}

.notificacoes-container {
    position: relative;
    display: inline-block;
}

.notificacoes-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #6c757d;
    cursor: pointer;
    padding: 8px 12px;
    position: relative;
}

.notificacoes-btn:hover {
    color: #0d6efd;
}

.notificacoes-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #dc3545;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.notificacoes-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none;
    z-index: 1000;
}

.notificacoes-dropdown.show {
    display: block;
}

.notificacoes-header {
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notificacoes-header h3 {
    margin: 0;
    font-size: 16px;
}

.btn-marcar-todas {
    background: none;
    border: none;
    color: #0d6efd;
    font-size: 12px;
    cursor: pointer;
}

.notificacoes-lista {
    max-height: 400px;
    overflow-y: auto;
}

.notificacao-item {
    padding: 15px;
    border-bottom: 1px solid #f1f1f1;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    gap: 12px;
}

.notificacao-item:hover {
    background: #f8f9fa;
}

.notificacao-item.nao-lida {
    background: #e7f3ff;
}

.notificacao-icone {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.notificacao-conteudo {
    flex: 1;
}

.notificacao-titulo {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
}

.notificacao-mensagem {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 4px;
}

.notificacao-tempo {
    font-size: 11px;
    color: #adb5bd;
}

.notificacao-footer {
    padding: 10px 15px;
    border-top: 1px solid #dee2e6;
    text-align: center;
}

.notificacao-footer a {
    color: #0d6efd;
    text-decoration: none;
    font-size: 13px;
}

.notificacao-footer button:hover {
    color: #b91c1c !important;
    text-decoration: underline;
}

.notificacao-footer button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Estilo para quando o filtro de canceladas está ativo */
#filtroStatusProvas option[value="canceladas"] {
    background-color: #fee2e2;
    color: #dc2626;
    font-weight: 600;
}

#filtroStatusProvas:has(option[value="canceladas"]:checked) {
    border-left-color: #ef4444;
    background: linear-gradient(90deg, #fef2f2 0%, white 30%);
}

/* Hover nos selects */
#filtroEixoProvasConcluidas:hover,
#filtroPeriodoProvas:hover,
#filtroStatusProvas:hover {
    border-color: #4f46e5;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.1);
}

/* Estilo para o contador quando filtrando canceladas */
#filtroStatusProvas option[value="canceladas"]:checked ~ #contadorProvasFiltradas {
    background: #ef4444;
}

/* Indicador de questão respondida */
.indicador-resposta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    margin-left: 8px;
}

/* Botões do menu rápido */
.btn-questao-rapida {
    width: 40px;
    height: 40px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
}

.btn-questao-rapida.respondida {
    background: #10b981;
    color: white;
    border-color: #059669;
}

.btn-questao-rapida.respondida::after {
    content: '✓';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 16px;
    height: 16px;
    background: white;
    color: #10b981;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #10b981;
}

.btn-questao-rapida.atual {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.btn-questao-rapida:hover {
    transform: scale(1.1);
    border-color: #4f46e5;
}

/* Menu rápido */
.menu-questoes-rapido {
    position: fixed;
    top: 100px;
    right: 20px;
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    width: 280px;
    max-height: 400px;
    overflow-y: auto;
    border: 2px solid #e5e7eb;
}

.menu-questoes-rapido h4 {
    margin: 0 0 15px 0;
    color: #374151;
    font-size: 1rem;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.questoes-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

/* Modo Escuro */
body.dark-mode {
  background-color: #1a1a1a;
  color: #f0f0f0;
}

body.dark-mode .sidebar {
  background: linear-gradient(180deg, #2d2d2d 0%, #1a1a1a 100%);
  border-right: 1px solid #404040;
}

body.dark-mode .main-content {
  background-color: #1a1a1a;
}

body.dark-mode .card,
body.dark-mode .stat-card,
body.dark-mode .filters-card,
body.dark-mode .table-professional,
body.dark-mode .config-card,
body.dark-mode .modal-content {
  background-color: #2d2d2d;
  border-color: #404040;
  color: #f0f0f0;
}

body.dark-mode .form-control,
body.dark-mode .filter-select,
body.dark-mode .btn-filter {
  background-color: #3d3d3d;
  border-color: #505050;
  color: #f0f0f0;
}

body.dark-mode .table-header,
body.dark-mode .data-table th {
  background-color: #333333;
  color: #f0f0f0;
}

body.dark-mode .data-table td {
  border-bottom-color: #404040;
}

body.dark-mode .data-table tr:hover td {
  background-color: #3a3a3a;
}

/* Estilo especial para notificações de cancelamento */
.badge-tipo.cancelamento {
    background: #fee2e2;
    color: #dc2626;
}

.notificacao-turma-info {
    animation: fadeIn 0.3s ease;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.notificacao-turma-info span {
    background: white;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.notificacao-turma-info span:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* Melhorias adicionais para o modal */
.modal-content {
    border-radius: 16px !important;
    overflow: hidden;
}

.modal-header {
    background: white !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 18px 24px !important;
}

.modal-header h2 {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
}

.modal-body {
    padding: 24px !important;
    background: #ffffff;
}

.modal-footer {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    padding: 16px 24px !important;
}

.btn-save {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    border: none !important;
    padding: 10px 24px !important;
    font-weight: 500 !important;
    transition: all 0.3s !important;
}

.btn-save:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4) !important;
}

.btn-cancel {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
    padding: 10px 24px !important;
    font-weight: 500 !important;
}

.btn-cancel:hover {
    background: #e2e8f0 !important;
}

/* Scrollbar personalizada */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 8px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 8px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ===== MODAL DE INICIAR PROVA - ESTILOS PERSONALIZADOS ===== */

/* Container principal do modal */
.modal-prova-container {
    max-width: 650px !important;
    max-height: 90vh !important;
    overflow-y: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    animation: modalProvaEntrada 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Animação de entrada */
@keyframes modalProvaEntrada {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Header do modal */
.modal-prova-header {
    flex-shrink: 0 !important;
    padding: 20px 25px !important;
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border-bottom: none !important;
    border-radius: 20px 20px 0 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Efeito de brilho no header */
.modal-prova-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    opacity: 0;
    animation: brilhoHeader 3s infinite;
}

@keyframes brilhoHeader {
    0%, 100% { opacity: 0; transform: rotate(0deg); }
    50% { opacity: 1; transform: rotate(5deg); }
}

.modal-prova-header h3 {
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: white !important;
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.modal-prova-header h3 i {
    background: rgba(255,255,255,0.2) !important;
    padding: 10px !important;
    border-radius: 12px !important;
    font-size: 1.2rem !important;
}

/* Botão fechar */
.modal-prova-close {
    background: rgba(255,255,255,0.2) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    border-radius: 30px !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: white !important;
    font-size: 1.2rem !important;
    transition: all 0.3s !important;
}

.modal-prova-close:hover {
    background: rgba(255,255,255,0.3) !important;
    transform: rotate(90deg) !important;
}

/* Área de conteúdo (com scroll) */
.modal-prova-content {
    overflow-y: auto !important;
    padding: 25px !important;
    flex: 1 !important;
    background: #ffffff !important;
    scrollbar-width: thin !important;
    scrollbar-color: #10b981 #e2e8f0 !important;
}

/* Scrollbar personalizada */
.modal-prova-content::-webkit-scrollbar {
    width: 8px !important;
}

.modal-prova-content::-webkit-scrollbar-track {
    background: #f1f5f9 !important;
    border-radius: 8px !important;
}

.modal-prova-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border-radius: 8px !important;
    border: 2px solid #f1f5f9 !important;
}

.modal-prova-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
}

/* Card de informações */
.modal-prova-info-card {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9) !important;
    border-radius: 16px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1) !important;
}

.modal-prova-info-card h4 {
    color: #10b981 !important;
    margin: 0 0 15px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 1.1rem !important;
    border-bottom: 2px solid #e2e8f0 !important;
    padding-bottom: 10px !important;
}

/* Grid de informações */
.modal-prova-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
    margin: 15px 0 !important;
}

.modal-prova-grid-item {
    background: white !important;
    padding: 12px 15px !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.3s !important;
}

.modal-prova-grid-item:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.1) !important;
    border-color: #10b981 !important;
}

.modal-prova-grid-item .label {
    font-size: 0.75rem !important;
    color: #6b7280 !important;
    margin-bottom: 5px !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.modal-prova-grid-item .value {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
}

/* Badge de período */
.modal-prova-periodo-badge {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 40px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3) !important;
}

/* Lista de informações */
.modal-prova-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 15px 0 !important;
}

.modal-prova-list li {
    padding: 10px 0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: #4b5563 !important;
}

.modal-prova-list li i {
    color: #10b981 !important;
    width: 20px !important;
    font-size: 1rem !important;
}

.modal-prova-list li:last-child {
    border-bottom: none !important;
}

/* Alerta de data limite */
.modal-prova-alerta {
    background: #fef3c7 !important;
    border-left: 4px solid #f59e0b !important;
    padding: 15px !important;
    border-radius: 12px !important;
    margin: 15px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    animation: pulseAlerta 2s infinite !important;
}

@keyframes pulseAlerta {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
    50% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
}

.modal-prova-alerta i {
    font-size: 1.5rem !important;
    color: #f59e0b !important;
}

.modal-prova-alerta strong {
    color: #92400e !important;
}

/* Rodapé do modal */
.modal-prova-footer {
    flex-shrink: 0 !important;
    padding: 20px 25px !important;
    border-top: 2px solid #e2e8f0 !important;
    display: flex !important;
    gap: 12px !important;
    background: #f8fafc !important;
    border-radius: 0 0 20px 20px !important;
}

/* Botões do modal */
.modal-prova-btn-primary {
    flex: 1 !important;
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
    border: none !important;
    padding: 14px 20px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3) !important;
}

.modal-prova-btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4) !important;
}

.modal-prova-btn-secondary {
    flex: 1 !important;
    background: white !important;
    color: #4b5563 !important;
    border: 2px solid #e2e8f0 !important;
    padding: 14px 20px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
}

.modal-prova-btn-secondary:hover {
    border-color: #10b981 !important;
    color: #10b981 !important;
    background: #f0fdf4 !important;
    transform: translateY(-2px) !important;
}

/* Responsividade */
@media (max-width: 768px) {
    .modal-prova-grid {
        grid-template-columns: 1fr !important;
    }
    
    .modal-prova-container {
        width: 95% !important;
        margin: 0 10px !important;
    }
    
    .modal-prova-footer {
        flex-direction: column-reverse !important;
    }
    
    .modal-prova-btn-primary,
    .modal-prova-btn-secondary {
        width: 100% !important;
    }
}