/* Estilos adicionales para resultados en tiempo real */
 
.adhoc-quiz-result-overlay {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}
 
.adhoc-quiz-result-overlay.active {
    opacity: 1;
}

.adhoc-quiz-result-modal {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.adhoc-quiz-result-overlay.active .adhoc-quiz-result-modal {
    transform: scale(1);
}

.adhoc-quiz-result-modal .result-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.adhoc-quiz-result-modal.passed .result-icon {
    color: #00a32a;
}

.adhoc-quiz-result-modal.failed .result-icon {
    color: #d63638;
}

.adhoc-quiz-result-modal h2 {
    margin: 0 0 16px 0;
    font-size: 32px;
}

.adhoc-quiz-result-modal .result-message {
    font-size: 18px;
    margin-bottom: 24px;
    color: #50575e;
}

.adhoc-quiz-result-modal .result-stats {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 24px;
}

.adhoc-quiz-result-modal .stat {
    text-align: center;
}

.adhoc-quiz-result-modal .stat-value {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #2271b1;
}

.adhoc-quiz-result-modal .stat-label {
    display: block;
    font-size: 14px;
    color: #50575e;
}

.adhoc-quiz-result-modal .redirect-message {
    color: #50575e;
    font-size: 14px;
    margin: 0;
}

/* Barra de progreso */
.adhoc-quiz-progress {
    margin-bottom: 24px;
    padding: 16px;
    background: #f6f7f7;
    border-radius: 8px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #dcdcde;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2271b1, #135e96);
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    margin: 0;
    font-size: 14px;
    color: #50575e;
}

/* Resaltar respuesta seleccionada */
.adhoc-answer-option.selected {
    border-color: #2271b1;
    background: #f0f6fc;
}

/* Pregunta sin responder */
.adhoc-quiz-question.unanswered-question {
    border-color: #d63638;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}
