.text-bg-orange {
    color: #fff !important;
    background-color: RGBA(253, 126, 20,var(--bs-bg-opacity,1))!important;
}

.text-bg-dark-green {
    color: #fff !important;
    background-color: RGBA(0, 100, 0,var(--bs-bg-opacity,1))!important;
}

.bg-orange {
    background-color: #fd7e14 !important;
}

.bg-dark-green {
    background-color: #006400 !important;
}

.status-dot {
    display: inline-block;
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Exam screen */
.exam-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #dee2e6;
    font-size: 0.875rem;
}

.timer {
    font-weight: 700;
    color: #0d6efd;
    font-variant-numeric: tabular-nums;
    font-size: 1.1rem;
}

.question-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.question-nav-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background: #fff;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    text-align: center;
    transition: background-color 0.15s, border-color 0.15s;
}

.question-nav-item:hover {
    background-color: #e9ecef;
}

.question-nav-item.answered {
    background-color: #198754;
    color: #fff;
    border-color: #198754;
}

.question-nav-item.current {
    border: 2px solid #0d6efd;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}

.question-nav-item.answered.current {
    background-color: #198754;
    color: #fff;
    border-color: #fff;
    box-shadow: 0 0 0 2px #198754;
}

/* Stimulus group cluster — a thin dashed bracket around sub-questions that
   share one stimulus passage. Visually communicates "these go together"
   without losing the per-sub-cell click target. The sub-cells (.question-
   nav-sub) shrink slightly to keep the cluster from outsizing singletons. */
.question-nav-group {
    display: inline-flex;
    gap: 0.2rem;
    padding: 0.2rem;
    border: 1px dashed #adb5bd;
    border-radius: 0.5rem;
    background: #f8f9fa;
}

.question-nav-item.question-nav-sub {
    width: 2.75rem;
    font-size: 0.9rem;
}

/* Save-state indicator next to "Answers: N / M".
   Three visual states driven by class toggling:
     (default)    — invisible (no answer, no save in flight)
     .is-saved    — green ✓ (Answer row exists)
     .is-syncing  — amber ✓ (Datastar @post in flight, set via data-indicator)
   .is-syncing wins by source order so re-saving an already-answered question
   visibly transitions green → amber → green. Opacity transition keeps the
   layout stable (no flicker, no width jumps). */
.answer-saved-indicator {
    opacity: 0;
    color: #198754;
    transition: opacity 0.15s, color 0.15s;
}
.answer-saved-indicator.is-saved {
    opacity: 1;
    color: #198754;
}
.answer-saved-indicator.is-syncing {
    opacity: 1;
    color: #fd7e14;
}

/* Stimulus region — pinned across navigation when sub-questions share
   a stimulus_group. Daniil's video review (24:30): the shared passage
   must stay on screen while the participant scrolls the sub-question. */
#stimulus-region {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
}

#stimulus-region .olx-stimulus {
    max-height: 40vh;
    overflow-y: auto;
}
