/* =====================================================================
   Quiz System (Phase 12) - only what the shared CMS styles
   (cms/cms.css: cards, meta, buttons, status badges, form controls)
   and sadhana/sadhana.css (.vc-sadhana-item-row - reused as-is for the
   admin question editor rows) do not already cover.
   ===================================================================== */

.vc-quiz-manage {
    margin-bottom: 10px;
}

.vc-quiz-progress {
    margin: 0 4px 14px;
}

.vc-quiz-question {
    padding: 12px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.vc-quiz-question-text {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    overflow-wrap: anywhere;
}

.vc-quiz-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
    font: inherit;
    cursor: pointer;
    overflow-wrap: anywhere;
}

.vc-quiz-option:disabled {
    cursor: default;
}

.vc-quiz-option.is-chosen {
    border-color: rgba(255, 255, 255, 0.35);
}

.vc-quiz-option.is-correct {
    border-color: rgba(76, 175, 80, 0.8);
    background: rgba(76, 175, 80, 0.16);
}

.vc-quiz-option.is-wrong {
    border-color: rgba(244, 67, 54, 0.8);
    background: rgba(244, 67, 54, 0.14);
}

.vc-quiz-result {
    margin: 6px 0 10px;
    font-weight: 700;
    font-size: 13px;
}

.vc-quiz-result.is-correct {
    color: #81c784;
}

.vc-quiz-result.is-wrong {
    color: #e57373;
}

.vc-quiz-question-row textarea {
    margin-bottom: 8px;
}

/* ---- light theme ---- */

:root[data-theme="light"] .vc-quiz-question,
:root[data-theme="light"] .vc-quiz-option {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
}

:root[data-theme="light"] .vc-quiz-option.is-correct {
    background: rgba(76, 175, 80, 0.18);
}

:root[data-theme="light"] .vc-quiz-option.is-wrong {
    background: rgba(244, 67, 54, 0.16);
}
