/* Quiz Run View Styles (test/run) */

:root {
    --theme-primary: #2563eb;
    --theme-secondary: #1d4ed8;
    --theme-tertiary: #60a5fa;
}

/* Category Accent Classes */
.pageHeader.ccBg,
.ccBg {
    background-color: var(--theme-primary, #2563eb) !important;
    animation: none !important;
}

.ccBg2 {
    background-color: var(--theme-secondary, #1d4ed8) !important;
    animation: none !important;
}

.ccBgL {
    background-color: color-mix(in srgb, var(--theme-primary, #2563eb) 10%, transparent) !important;
}

.ccT {
    color: var(--theme-primary, #2563eb) !important;
    animation: none !important;
}

.ccT2 {
    color: var(--theme-secondary, #1d4ed8) !important;
    animation: none !important;
}

.ccT3 {
    color: var(--theme-tertiary, #60a5fa) !important;
    animation: none !important;
}

a {
    color: var(--theme-primary, #2563eb);
}

.ccB {
    border-color: var(--theme-primary, #2563eb);
}

/* Quiz Answers */
.quizAnswers .correctAnswer {
    border-color: color-mix(in srgb, var(--theme-primary, #2563eb) 20%, transparent);
}

@media (hover: hover) and (pointer: fine) {
    .quizAnswers .answer:hover {
        background-color: color-mix(in srgb, var(--theme-primary, #2563eb) 10%, transparent);
        border-color: color-mix(in srgb, var(--theme-primary, #2563eb) 25%, transparent);
    }
}

.quizAnswers .answer:active {
    background-color: color-mix(in srgb, var(--theme-primary, #2563eb) 10%, transparent);
    border-color: color-mix(in srgb, var(--theme-primary, #2563eb) 25%, transparent);
}

/* Difficult Mode & Timer Styles */
.diff-indicator-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(220, 38, 38, 0.12);
    color: #dc2626;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 9999px;
    border: 1px solid rgba(220, 38, 38, 0.25);
    vertical-align: middle;
}

.quiz-timer-box {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    color: #1e293b;
    padding: 4px 12px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid #cbd5e1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.quiz-timer-box.timer-urgent {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fca5a5;
    animation: timerPulse 0.8s infinite alternate;
}

@keyframes timerPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.06); }
}

.timer-progress-wrap {
    height: 4px;
    width: 100%;
    background: #e2e8f0;
    overflow: hidden;
    margin-bottom: 2px;
}

.timer-progress-bar {
    height: 100%;
    background: #ef4444;
    transition: width 1s linear;
}

.timeout-notification {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fee2e2;
    color: #991b1b;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 8px;
    margin: 10px 0 16px 0;
    border: 1px solid #fca5a5;
    font-size: 0.95rem;
}
