:root {
    --mcq-primary: #0f6bff;
    --mcq-ink: #0f172a;
    --mcq-muted: #5c6475;
    --mcq-soft: #f7f9fc;
    --mcq-accent: linear-gradient(135deg, #0f6bff, #5a8dff);
}

.mcq-shell {
    position: relative;
}

.mcq-header-card {
    background: radial-gradient(circle at 20% 20%, rgba(90, 141, 255, 0.15), transparent 30%), radial-gradient(circle at 80% 10%, rgba(15, 107, 255, 0.08), transparent 25%), #0f172a;
    color: #eef3ff;
    border: none;
    border-radius: 18px;
    overflow: hidden;
}

.mcq-header-card .eyebrow {
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.mcq-header-meta {
    color: rgba(238, 243, 255, 0.85);
}

.mcq-chip {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.mcq-chip.badge-pill {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
}

.mcq-timer {
    background: #fff;
    color: var(--mcq-ink);
    border-radius: 12px;
    padding: 0.65rem 0.9rem;
    box-shadow: 0 10px 30px rgba(15, 107, 255, 0.2);
    min-width: 150px;
}

.mcq-question-card {
    border: 1px solid #e9eef5;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.05);
}

.mcq-question-card .card-body {
    padding: 1.5rem;
}

.mcq-question-title {
    font-size: 1.05rem;
    color: var(--mcq-ink);
    line-height: 1.6;
}

.q-number {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    background: #f0f4ff;
    color: #0f3d91;
    box-shadow: inset 0 -6px 20px rgba(15, 107, 255, 0.07), 0 8px 25px rgba(15, 107, 255, 0.08);
}

.mcq-progress {
    font-weight: 700;
    color: var(--mcq-primary);
}

.mcq-tags {
    display: inline-flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.mcq-pill {
    background: #eef2ff;
    color: #4b5bc7;
    border-radius: 10px;
    padding: 0.25rem 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
}

/* OPTIONS - large rounded bars */
.option-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 12px;
    border: 1px solid #e9eef5;
    cursor: pointer;
    transition: background .12s, transform .06s, border-color .1s, box-shadow .1s;
    position: relative;
}
.option-card:hover {
    background: #eef3fb;
    border-color: #c9d7ff;
    transform: translateY(-1px);
}

.option-card.selected {
    background: #e8f1ff;
    border-color: #91b8ff;
    box-shadow: 0 10px 30px rgba(15, 107, 255, 0.12);
}

.option-label { font-weight: 600; color: #1b2335; }
.option-prefix {
    color: #4b5565;
    margin-right: 8px;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #e8ecf7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.option-card.selected .option-prefix {
    background: #0f6bff;
    color: #fff;
}

/* hide native radio but keep accessible */
.option-card input[type="radio"] {
    appearance: none; -webkit-appearance:none; width:0; height:0; margin:0; padding:0; position:absolute; opacity:0;
}

.mcq-action-bar {
    background: #fbfcff;
    border-top: 1px dashed #e4eaf5;
    border-radius: 0 0 14px 14px;
    padding: 1rem 1.5rem;
}

.mcq-action-bar .btn {
    border-radius: 10px;
    font-weight: 600;
}

.legend-dot { width:14px; height:14px; display:inline-block; border-radius:50%; vertical-align:middle; }
.legend-dot.marked { background:#222; }
.legend-dot.attempted { background:#0f6bff; }
.legend-dot.unattempted { background:#ff7043; }
.legend-dot.notvisited { background:#cbd5e1; }
.legend-dot.mark-attempt { background:#ffb84d; }

/* PALETTE grid (question circles) */
.palette-grid {
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    background:#fff;
    border:1px dashed #e6eaf0;
    padding:8px;
    border-radius: 12px;
}

/* question circles */
.q-circle {
    width:42px; height:42px; border-radius:12px;
    display:flex; align-items:center; justify-content:center;
    background:#f6f7fb; color:#333; font-weight:700; cursor:pointer;
    border: 1px solid #e8e8ee;
    transition: all .1s ease;
}
.q-circle.notvisited { background:#f6f7fb; color:#333; border-color:#e8e8ee; }
.q-circle.unattempted { background:#ffffff; color:#333; border-color:#e6e6e6; }
.q-circle.attempted { background:#0f6bff; color:#fff; }
.q-circle.marked { background:#222; color:#fff; }
.q-circle.review { background:#ffdca8; color:#222; border-color:#f0d6a0; }
.q-circle.current { box-shadow: 0 0 0 4px rgba(13,110,253,0.12); transform: translateY(-1px); }

.mcq-legend-card {
    border: 1px solid #e9eef5;
    border-radius: 14px;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.status-panel{
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.04);
}

.status-panel .counts {
    background: #f5f6f8;
    border-radius: 10px;
    margin: 8px;
    padding: 6px 8px;
    display: flex;
}
.status-panel .count {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: #475569;
    font-weight: 700;
    user-select: none;
}

.status-panel .dots {
    margin: 0 8px 10px 8px;
    padding-top: 6px;
}

.status-panel .dot-wrap {
    width: calc((100% - 8px) / 5);
    display:flex;
    align-items:center;
    justify-content:center;
}

.status-panel .dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display:inline-block;
    box-shadow: 0 1px 1px rgba(0,0,0,0.04);
}

.status-panel .dot-attempted-small { background: #0f6bff; }
.status-panel .dot-unattempted-small { background: #ff7043; }
.status-panel .dot-notvisited-small {
    background: #ffffff;
    border: 2px solid #ddd;
    width: 14px; height: 14px;
    box-sizing: border-box;
}

.status-panel .legend-star {
    color: #222;
    font-size: 14px;
    line-height: 1;
    display:inline-block;
}

.status-panel .star-outline {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(255,155,0,0.18);
    box-shadow: 0 1px 1px rgba(0,0,0,0.03);
}
.status-panel .star-outline .inner-star {
    font-size: 12px;
    color: #ff9b00;
    line-height: 1;
}

.mcq-side-actions .btn {
    border-radius: 10px;
    font-weight: 700;
}

.mcq-explainer {
    border-radius: 14px;
    border: 1px dashed #e4eaf5;
    background: #f8fafc;
}

.mcq-small-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
}

.mcq-instruction {
    background: #0f172a;
    color: #d8e2ff;
    border-radius: 14px;
}

.mcq-instruction li {
    margin-bottom: 0.4rem;
}
