
.bb-admin .bb-mcq-hero {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 246, 255, 0.95));
}

.bb-admin .bb-mcq-hero__title {
    color: var(--bb-gray-900);
    font-size: clamp(1.45rem, 2.15vw, 2.2rem);
    font-weight: 800;
    line-height: 1.15;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.bb-admin .bb-mcq-hero__subtitle {
    color: var(--bb-gray-600);
    font-size: 1rem;
    max-width: 48rem;
}

.bb-mcq-media-strip {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bb-mcq-media-card {
    background: var(--bb-surface);
    border: var(--bb-card-border);
    border-radius: var(--bb-radius-lg);
    box-shadow: var(--bb-shadow-sm);
    overflow: hidden;
    min-height: 160px;
}

.bb-mcq-media-card .carousel_add,
.bb-mcq-media-card .carousel-inner,
.bb-mcq-media-card .carousel-item {
    height: 100%;
    min-height: 160px;
}

.bb-mcq-media-card .carousel-item {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.bb-admin .bb-mcq-practice {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    overflow: hidden;
}

.bb-mcq-share > div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 20px;
    background: #f8fbff;
}

.bb-mcq-share .btn {
    border-radius: 999px;
    padding: 0.55rem 0.95rem;
    box-shadow: none;
}

.bb-share-toolbar {
    align-items: center;
    background: #f8fbff;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem;
}

.bb-share-toolbar__button {
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8);
    border-color: rgba(148, 163, 184, 0.6) !important;
    border-width: 1px;
    border-radius: 999px;
    display: inline-flex;
    gap: 0.5rem;
    justify-content: center;
    min-height: 44px;
    padding: 0.6rem 1rem;
}

.bb-share-toolbar__button i {
    font-size: 1rem;
}

@media (max-width: 576px) {
    .bb-share-toolbar__button {
        flex: 1 1 calc(50% - 0.75rem);
    }
}

.bb-mcq-status {
    display: grid;
    gap: 1rem;
}

.bb-mcq-status__note {
    border: 1px solid rgba(59, 130, 246, 0.14);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(255, 255, 255, 0.98));
    color: var(--bb-gray-700);
    padding: 1rem 1.25rem;
}

.bb-mcq-status__stats {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bb-mcq-stat-card {
    background: var(--bb-surface);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    padding: 1rem 1.1rem;
    box-shadow: var(--bb-shadow-sm);
}

.bb-mcq-stat-card__label {
    color: var(--bb-gray-500);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.bb-mcq-stat-card__value,
.bb-mcq-stat-card--timer #timer {
    color: var(--bb-gray-900);
    font-size: 1rem;
    font-weight: 700;
}

.bb-mcq-question-card {
    background: linear-gradient(135deg, #ffffff, #f8fbff);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 24px;
    box-shadow: var(--bb-shadow-sm);
}

.bb-mcq-question-card__body {
    padding: 1.5rem;
}

.bb-mcq-question-card__eyebrow {
    color: var(--bb-primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.bb-mcq-question-card__title {
    color: var(--bb-gray-900);
    display: block;
    font-size: clamp(1.2rem, 2vw, 1.7rem);
    font-weight: 800;
    line-height: 1.45;
    margin-bottom: 1rem;
}

.bb-mcq-question-card__explanation {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.12);
    border-radius: 16px;
    color: var(--bb-gray-700);
    margin-bottom: 1.2rem;
    padding: 0.9rem 1rem;
}

.bb-mcq-answer-list {
    gap: 0.8rem;
}

.bb-mcq-answer-list .list-group-item {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    margin-bottom: 0.8rem;
    padding: 0.95rem 1rem;
}

.bb-mcq-answer-item {
    align-items: flex-start;
    display: grid;
    gap: 0.65rem;
    grid-template-columns: auto 1fr;
    width: 100%;
}

.bb-mcq-answer-item .form-check-input {
    margin-top: 0.25rem;
}

.bb-mcq-answer-item .form-check-label {
    color: var(--bb-gray-800);
    font-weight: 600;
    line-height: 1.5;
}

.bb-mcq-answer-item p {
    grid-column: 2;
    margin: 0.15rem 0 0;
    padding: 0.5rem 0.75rem;
    white-space: normal;
}

.bb-mcq-list-shell {
    min-height: 1px;
}

.bb-mcq-list-title {
    color: var(--bb-gray-900);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
}

.bb-mcq-list-strip {
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.12);
    border-radius: 20px;
    padding: 1rem;
}

.bb-mcq-list-strip .scroll-item .btn {
    border-radius: 999px;
    min-width: 46px;
}

.bb-admin .bb-mcq-community {
    margin-top: 1rem;
}

.nav-btn {
    position: absolute;
    transform: translateY(-50%);
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--border-radius-full);
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-base);
}

.nav-btn:hover {
    background-color: var(--color-gray-100);
}

.prev-btn {
    left: 10%;
}

.next-btn {
    right: 10%;
}


#timer {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-danger);
}

.list-group-item {
    cursor: pointer;
}

.emoji {
    font-size: 3rem;
    display: none;
    text-align: center;
    margin-bottom: 20px;
}

.emoji.show {
    display: block;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25%,
    75% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }
}

.shake {
    animation: shake var(--transition-slow);
}

.hidden {
    display: none;
}

.background-effect.correct {
    background: conic-gradient(from 0deg, #FFD700, #32CD32, #00BFFF, #FFD700);
    animation: fadeInOut 2s forwards;
}

.background-effect.incorrect {
    background: conic-gradient(from 0deg, #FF6347, #FFA500, #FFD700, #FF6347);
    animation: fadeInOut 2s forwards;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.horizontal-scroll {
    overflow-x: auto;
    white-space: nowrap;
}


.scroll-item {
     display: inline-block;
     margin-right: 10px;
     text-align: center;
 }

@media (max-width: 768px) {
    .item {
        width: 100vw;
    }

    .bb-mcq-media-strip,
    .bb-mcq-status__stats {
        grid-template-columns: 1fr;
    }

    .bb-mcq-question-card__body,
    .bb-admin .bb-mcq-practice,
    .bb-admin .bb-mcq-community {
        padding: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .item {
        width: 50vw;
    }
}

@media (min-width: 1200px) {
    .item {
        width: 30vw;
    }
}

.horizontal-scroll::-webkit-scrollbar {
    height: 8px;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
    background-color: #78b46a;
    border-radius: 4px;
}

.horizontal-scroll::-webkit-scrollbar-thumb:hover {
    background-color: #d09696;
}

.dual-scroll {
    overflow: auto;
    white-space: nowrap;
    max-height: 300px;
    -webkit-overflow-scrolling: touch;
}

.dual-scroll::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.dual-scroll::-webkit-scrollbar-thumb {
    background-color: #78b46a;
    border-radius: 4px;
}

.dual-scroll::-webkit-scrollbar-thumb:hover {
    background-color: #d09696;
}

/* ═══════════════════════════════════════════════════════════
   MCQ Editor — Redesigned Add / Edit Layout
   ═══════════════════════════════════════════════════════════ */

/* Settings panel — sticky on desktop */
.mcq-settings-panel {
    position: sticky;
    top: 1.5rem;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    scrollbar-width: thin;
}

@media (max-width: 991px) {
    .mcq-settings-panel { position: static; max-height: none; overflow-y: visible; }
}

/* Numbered section cards */
.mcq-section-card {
    background: var(--bb-surface, #fff);
    border: 1px solid var(--bb-gray-200, #e2e8f0);
    border-radius: 0.875rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.07);
    padding: 1.125rem 1.25rem;
    margin-bottom: 1rem;
}

.mcq-section-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--bb-gray-100, #f1f5f9);
}

.mcq-section-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    background: linear-gradient(135deg, #2f56ff, #7b2fff);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.mcq-section-header h6 {
    margin: 0;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #1e293b;
}

/* Cascade hierarchy: Medium → Subject → Lesson */
.mcq-cascade-item {
    padding-left: 1.25rem;
    border-left: 2px solid #e2e8f0;
    margin-left: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.25rem;
}

/* Toggle-style radio buttons */
.mcq-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.25rem;
}

.mcq-radio-group input.btn-check + label {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.15s;
}

/* Restore visible borders overridden by the project theme */
.mcq-radio-group input.btn-check + label.btn-outline-info {
    --bs-btn-border-color: rgba(13, 202, 240, 0.6);
    --bs-btn-hover-border-color: rgb(13, 202, 240);
    border-color: rgba(13, 202, 240, 0.6);
}

.mcq-radio-group input.btn-check + label.btn-outline-secondary {
    --bs-btn-border-color: rgba(108, 117, 125, 0.5);
    --bs-btn-hover-border-color: rgb(108, 117, 125);
    border-color: rgba(108, 117, 125, 0.5);
}

/* Content steps (right column) */
.mcq-step-card {
    background: var(--bb-surface, #fff);
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.07);
    padding: 1.125rem 1.25rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mcq-step-card:focus-within {
    border-color: rgba(47, 86, 255, 0.3);
    box-shadow: 0 0 0 3px rgba(47, 86, 255, 0.08), 0 1px 3px rgba(0,0,0,.07);
}

.mcq-step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.mcq-step-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #1e293b;
}

/* Answer letter badges A B C D E */
.mcq-answer-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.625rem;
    height: 1.625rem;
    background: #e2e8f0;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Content preview area (shows question/answer text after editing) */
.mcq-content-preview {
    background: #f8fafc;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    border-left: 3px solid #cbd5e1;
    margin-bottom: 0.75rem;
    min-height: 2.5rem;
    transition: border-color 0.2s, background 0.2s;
}

/* Color the preview based on TRUE / FALSE status */
.mcq-content-preview.bg-success {
    border-left-color: #059669 !important;
    background: rgba(5, 150, 105, 0.06) !important;
}
.mcq-content-preview.bg-warning {
    border-left-color: #d97706 !important;
    background: rgba(217, 119, 6, 0.06) !important;
}

.mcq-content-preview .mcq-explanation {
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 0.375rem;
    padding-top: 0.375rem;
    border-top: 1px dashed #e2e8f0;
}

/* Status pill shown inline with answer label */
.mcq-status-pill {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 100px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Bottom action bar */
.mcq-action-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 1rem 1.25rem;
    background: var(--bb-surface, #fff);
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.07);
    margin-top: 0.5rem;
}

.mcq-action-bar .btn {
    min-width: 7rem;
}

/* ── Metadata badges ──────────────────────────── */
.bb-mcq-meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.bb-meta-badge {
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.bb-meta-badge--medium  { background: rgba(59,130,246,0.1);  color: #1d4ed8; }
.bb-meta-badge--subject { background: rgba(16,185,129,0.1);  color: #065f46; }
.bb-meta-badge--lesson  { background: rgba(245,158,11,0.1);  color: #92400e; }
.bb-meta-badge--type    { background: rgba(139,92,246,0.1);  color: #4c1d95; }
.bb-meta-badge--level   { background: rgba(239,68,68,0.1);   color: #991b1b; }

/* ── Answer options — full-row clickable card ─── */
.bb-mcq-answer-row {
    padding: 0 !important;
    border: none !important;
    margin-bottom: 0.75rem;
}

.bb-mcq-answer-item {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    width: 100%;
}

.bb-answer-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.bb-answer-label {
    align-items: center;
    background: var(--bb-surface, #fff);
    border: 2px solid rgba(148,163,184,0.22);
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    gap: 0.85rem;
    padding: 0.9rem 1.1rem;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    width: 100%;
}

.bb-answer-label:hover {
    background: rgba(59,130,246,0.04);
    border-color: rgba(59,130,246,0.4);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.08);
}

.bb-answer-input:checked + .bb-answer-label {
    background: rgba(59,130,246,0.07);
    border-color: var(--bb-primary, #2563eb);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

.bb-answer-letter {
    align-items: center;
    background: rgba(59,130,246,0.1);
    border-radius: 8px;
    color: var(--bb-primary, #2563eb);
    display: flex;
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 800;
    height: 2rem;
    justify-content: center;
    letter-spacing: 0.04em;
    width: 2rem;
}

.bb-answer-input:checked + .bb-answer-label .bb-answer-letter {
    background: var(--bb-primary, #2563eb);
    color: #fff;
}

.bb-answer-text {
    color: var(--bb-gray-800, #1e293b);
    font-weight: 600;
    line-height: 1.5;
}

.bb-answer-explanation {
    margin: 0.4rem 0.5rem 0;
    padding: 0.5rem 0.75rem;
    white-space: normal;
}

/* Placeholder text before any content is added */
.mcq-placeholder {
    color: #94a3b8;
    font-size: 0.875rem;
    font-style: italic;
}