:root {
    --ink: #172033;
    --brand: #0f766e;
    --brand-2: #2563eb;
    --soft: #eef7f5;
    --line: #dbe5e3;
}

body {
    background: #f7faf9;
    color: var(--ink);
}

.app-nav {
    background: linear-gradient(90deg, #0f766e, #1d4ed8);
}

.hero {
    background:
        linear-gradient(120deg, rgba(15, 118, 110, .95), rgba(37, 99, 235, .88)),
        url('https://images.unsplash.com/photo-1524995997946-a1c2e315a42f?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    color: #fff;
    border-radius: 8px;
    padding: clamp(2rem, 6vw, 5rem);
}

.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 40px rgba(23, 32, 51, .06);
}

.metric {
    border-left: 4px solid var(--brand);
}

.question-card {
    border: 1px solid var(--line);
    border-radius: 8px;
}

.quiz-taking-page main {
    padding-top: 8.5rem !important;
}

.quiz-sticky-bar {
    background: rgba(255, 255, 255, .98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(23, 32, 51, .12);
    left: 0;
    margin: 0 !important;
    padding: .75rem max(1rem, calc((100vw - 1140px) / 2));
    position: fixed;
    right: 0;
    top: 0;
    z-index: 2000;
}

.quiz-timer-panel {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: .75rem;
    padding: .5rem;
}

.quiz-timer-label {
    color: #506174;
    font-weight: 600;
    padding-left: .35rem;
}

.quiz-timer-value {
    background: #dc2626 !important;
    border-radius: 6px;
    color: #fff !important;
    display: inline-block;
    min-width: 6.5rem;
    padding: .35rem .7rem;
    text-align: center;
}

@media (max-width: 575.98px) {
    .quiz-taking-page main {
        padding-top: 11.5rem !important;
    }

    .quiz-sticky-bar {
        align-items: stretch !important;
        gap: .65rem !important;
        padding: .7rem .85rem;
    }

    .quiz-sticky-bar > div:first-child,
    .quiz-timer-panel {
        width: 100%;
    }

    .quiz-timer-panel {
        justify-content: space-between;
    }

    .quiz-timer-value {
        min-width: 7rem;
    }
}

.timer {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
}

.table thead th {
    color: #506174;
    font-size: .82rem;
    text-transform: uppercase;
}

.choice-label {
    display: block;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: .8rem .9rem;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.choice-label:hover,
.form-check-input:checked + .choice-label {
    border-color: var(--brand);
    background: var(--soft);
}
