/* =============================================================
 * tools.css — Shared styles cho các công cụ ôn tập (tools/)
 * Dùng chung: slide.html, flashcards.html, test.html, quiz-md.html
 * ============================================================= */

/* ─── STATUS OVERLAY ─────────────────────────────────────────── */

/**
 * Overlay toàn màn hình xuất hiện khi:
 *   - Chào người dùng / chọn file lần đầu
 *   - Báo lỗi đọc / parse file
 *
 * Sử dụng biến CSS --status-accent (đặt inline trên .status-overlay__panel)
 * để đổi màu chủ đạo theo ngữ cảnh (xanh = bình thường, đỏ = lỗi).
 */

.status-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.12), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(251, 146, 60, 0.12), transparent 24%),
    rgba(2, 6, 23, 0.76);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.status-overlay[hidden] {
  display: none;
}

.status-overlay__panel {
  width: min(760px, calc(100vw - 48px));
  border-radius: 36px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(8, 20, 36, 0.92);
  box-shadow: 0 24px 70px rgba(2, 8, 23, 0.5);
  padding: 40px;
  color: #e2e8f0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.status-overlay__tag {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid color-mix(in srgb, var(--status-accent, #7dd3fc) 60%, transparent);
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--status-accent, #7dd3fc);
  background: color-mix(in srgb, var(--status-accent, #7dd3fc) 14%, transparent);
}

.status-overlay__title {
  margin: 24px 0 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: #f8fafc;
}

.status-overlay__message {
  margin-top: 18px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #cbd5e1;
}

.status-overlay__action {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  border-radius: 9999px;
  border: 1px solid color-mix(in srgb, var(--status-accent, #7dd3fc) 50%, transparent);
  padding: 16px 24px;
  background: rgba(8, 145, 178, 0.12);
  color: #e0f2fe;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.status-overlay__action:hover {
  background: rgba(34, 211, 238, 0.2);
  transform: translateY(-1px);
}

.status-overlay__action:focus-visible {
  outline: 3px solid rgba(125, 211, 252, 0.45);
  outline-offset: 3px;
}

/* =============================================================
 * DARK APP THEME — dùng chung cho quiz-md.html, test.html,
 * flashcards.html; đồng bộ phong cách với slide.html
 * ============================================================= */

/* ─── PAGE BACKGROUND ─────────────────────────────────────────── */

/**
 * .app-page — nền tối cho trang quiz/flashcard/test.
 * Sao chép gradient + lưới từ slide.html để đồng bộ.
 */
.app-page {
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.14), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(251, 146, 60, 0.14), transparent 24%),
    linear-gradient(140deg, #04111f 0%, #071b2f 45%, #0d2032 100%);
  color: #e2e8f0;
}

/* Lưới nền mờ */
.app-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(125, 211, 252, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
}

/* Đảm bảo nội dung nằm trên lưới nền (loại trừ status-overlay vì nó dùng position:fixed) */
.app-page > *:not(.status-overlay) {
  position: relative;
  z-index: 1;
}

/* ─── SIDEBAR ─────────────────────────────────────────────────── */

.app-sidebar {
  background: rgba(4, 17, 31, 0.92);
  border-right: 1px solid rgba(148, 163, 184, 0.10);
  color: #cbd5e1;
  position: relative;
  z-index: 1;
}

.app-sidebar__header {
  background: rgba(4, 17, 31, 0.96);
  border-bottom: 1px solid rgba(148, 163, 184, 0.10);
}

.app-sidebar__header-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
}

.app-sidebar__header-count {
  font-size: 0.70rem;
  color: #475569;
  font-weight: 500;
}

.app-sidebar__legend {
  background: rgba(4, 17, 31, 0.80);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.app-sidebar__legend-text {
  font-size: 0.70rem;
  color: #475569;
}

/* Scrollbar trong sidebar */
.app-sidebar ::-webkit-scrollbar { width: 3px; }
.app-sidebar ::-webkit-scrollbar-track { background: transparent; }
.app-sidebar ::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.18);
  border-radius: 4px;
}

/* ─── MAIN CONTENT AREA ──────────────────────────────────────── */

.app-main {
  background: transparent;
  position: relative;
  z-index: 1;
}

.app-main::-webkit-scrollbar { width: 5px; }
.app-main::-webkit-scrollbar-track { background: transparent; }
.app-main::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.14);
  border-radius: 6px;
}

/* ─── GLASS CARD ─────────────────────────────────────────────── */

.app-card {
  background: rgba(8, 20, 36, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 20px;
  padding: 36px 40px;
  color: #e2e8f0;
  box-shadow: 0 24px 70px rgba(2, 8, 23, 0.40);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ─── PROGRESS BAR ───────────────────────────────────────────── */

.app-progress-track {
  background: rgba(148, 163, 184, 0.12);
  border-radius: 9999px;
  height: 6px;
  overflow: hidden;
}

.app-progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #0ea5e9, #22d3ee);
  transition: width 300ms ease;
}

.app-progress-text {
  color: #64748b;
  font-size: 1.05rem;
  font-weight: 600;
}

/* ─── TITLE & QUESTION ───────────────────────────────────────── */

.app-quiz-title {
  color: #7dd3fc;
  font-size: 1.1rem;
  font-weight: 700;
}

.app-question {
  color: #f1f5f9;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.6;
  white-space: pre-line;
}

/* ─── HINT BOX ───────────────────────────────────────────────── */

.app-hint {
  border-left: 4px solid #f59e0b;
  background: rgba(120, 53, 15, 0.22);
  padding: 14px 18px;
  border-radius: 0 12px 12px 0;
  color: #fde68a;
  font-size: 1rem;
  line-height: 1.7;
  white-space: pre-line;
}

.app-hint-btn {
  color: #38bdf8;
  font-size: 0.95rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 120ms;
}

.app-hint-btn:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

/* ─── LOADING ────────────────────────────────────────────────── */

.app-loading {
  color: #475569;
  font-size: 1.4rem;
  text-align: center;
}

/* ─── RESULT SCREEN ──────────────────────────────────────────── */

.app-result {
  background: rgba(8, 20, 36, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
  color: #e2e8f0;
  box-shadow: 0 24px 70px rgba(2, 8, 23, 0.40);
}

.app-result__title {
  font-size: 2rem;
  font-weight: 800;
  color: #f1f5f9;
}

.app-result__score {
  color: #94a3b8;
  font-size: 1.25rem;
}

.app-result__detail {
  color: #475569;
  font-size: 0.95rem;
}

/* ─── BADGES ─────────────────────────────────────────────────── */

.app-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
}

.app-badge--type {
  background: rgba(168, 85, 247, 0.16);
  color: #c4b5fd;
  border: 1px solid rgba(168, 85, 247, 0.26);
}

.app-badge--group {
  background: rgba(15, 23, 42, 0.70);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.app-badge--easy {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.26);
}

.app-badge--medium {
  background: rgba(245, 158, 11, 0.16);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.26);
}

.app-badge--hard {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.26);
}

/* ─── BUTTONS ────────────────────────────────────────────────── */

.app-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 9999px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, #0ea5e9, #22d3ee);
  color: #04111f;
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.26);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.app-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(34, 211, 238, 0.38);
}

.app-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.60);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.22);
  transition: background 150ms, border-color 150ms, color 150ms;
}

.app-btn-outline:hover {
  background: rgba(34, 211, 238, 0.10);
  border-color: rgba(34, 211, 238, 0.28);
  color: #e2e8f0;
}

.app-btn-outline:disabled {
  opacity: 0.30;
  cursor: not-allowed;
}

.app-btn-indigo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(99, 102, 241, 0.22);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.30);
  transition: background 150ms;
}

.app-btn-indigo:hover {
  background: rgba(99, 102, 241, 0.36);
}

.app-btn-amber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(217, 119, 6, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.24);
  transition: background 150ms;
}

.app-btn-amber:hover {
  background: rgba(217, 119, 6, 0.34);
}

/* Nút nhỏ đổi file (📂) trong tiêu đề card */
.app-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.60);
  color: #475569;
  border: 1px solid rgba(148, 163, 184, 0.16);
  cursor: pointer;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: background 150ms, color 150ms;
}

.app-btn-icon:hover {
  background: rgba(34, 211, 238, 0.12);
  color: #22d3ee;
  border-color: rgba(34, 211, 238, 0.28);
}

/* ─── DONE MESSAGE (flashcards) ──────────────────────────────── */

.app-done-msg {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.26);
  color: #6ee7b7;
  padding: 14px 24px;
  border-radius: 12px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
}

/* =============================================================
 * QUIZ NAVIGATION LIST — class được tạo bởi quiz-core.js
 * ============================================================= */

.q-nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-bottom: 4px;
}

.q-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 150ms;
}

.q-nav-btn:hover {
  background: rgba(34, 211, 238, 0.08);
}

.q-nav-btn--current {
  background: rgba(34, 211, 238, 0.10);
  border-color: rgba(56, 189, 248, 0.34);
}

.q-nav-badge {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
}

.q-nav-badge--unanswered { background: rgba(100, 116, 139, 0.32); color: #94a3b8; }
.q-nav-badge--correct    { background: #16a34a; color: #fff; }
.q-nav-badge--wrong1     { background: #ca8a04; color: #fff; }
.q-nav-badge--wrong2     { background: #ea580c; color: #fff; }
.q-nav-badge--wrong3     { background: #dc2626; color: #fff; }
.q-nav-badge--current    { box-shadow: 0 0 0 2px #38bdf8, 0 0 0 4px rgba(56, 189, 248, 0.18); }
/* Trạng thái dành riêng cho flashcard */
.q-nav-badge--fc-unseen  { background: rgba(100, 116, 139, 0.32); color: #94a3b8; }
.q-nav-badge--fc-seen    { background: rgba(30, 58, 95, 0.90); color: #64748b; border: 1px solid #334155; }
.q-nav-badge--fc-flipped { background: #4f46e5; color: #fff; }

.q-nav-group-hdr {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.70rem;
  font-weight: 700;
  color: #38bdf8;
  padding: 4px 4px 2px;
}

.q-nav-group-line {
  flex: 1;
  display: block;
  height: 1px;
  background: rgba(56, 189, 248, 0.18);
  margin-left: 4px;
  border: none;
}

/* =============================================================
 * QUIZ OPTIONS — class được tạo bởi quiz-core.js
 * ============================================================= */

.q-opt {
  width: 100%;
  text-align: left;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.75);
  color: #cbd5e1;
  cursor: pointer;
  transition: background 150ms, border-color 150ms, transform 100ms;
}

.q-opt:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.10);
  border-color: rgba(56, 189, 248, 0.28);
  color: #e2e8f0;
  transform: translateX(2px);
}

.q-opt--correct {
  border-width: 2px;
  border-color: #34d399;
  background: rgba(16, 185, 129, 0.16);
  color: #d1fae5;
  font-weight: 600;
}

.q-opt--wrong {
  border-width: 2px;
  border-color: #f87171;
  background: rgba(239, 68, 68, 0.14);
  color: #fecaca;
  font-weight: 600;
}

.q-opt--muted {
  border-color: rgba(148, 163, 184, 0.08);
  color: #334155;
  opacity: 0.60;
}

/* Rationale (phần giải thích sau đáp án) trong test.html */
.q-opt-rationale--correct {
  margin-top: 2px;
  padding: 12px 20px;
  background: rgba(16, 185, 129, 0.13);
  color: #d1fae5;
  border-radius: 0 0 12px 12px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.q-opt-rationale--wrong {
  margin-top: 2px;
  padding: 12px 20px;
  background: rgba(239, 68, 68, 0.11);
  color: #fecaca;
  border-radius: 0 0 12px 12px;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* =============================================================
 * YES-NO OPTIONS — class được tạo bởi quiz-core.js
 * ============================================================= */

.q-yn-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
}

.q-yn-row--none    { border: 1px solid rgba(148, 163, 184, 0.14); background: rgba(15, 23, 42, 0.70); }
.q-yn-row--correct { border: 2px solid #34d399; background: rgba(16, 185, 129, 0.13); }
.q-yn-row--wrong   { border: 2px solid #f87171; background: rgba(239, 68, 68, 0.11); }

.q-yn-label {
  font-weight: 700;
  font-size: 1.1rem;
  min-width: 2rem;
  padding-top: 3px;
}

.q-yn-label--none    { color: #64748b; }
.q-yn-label--correct { color: #34d399; }
.q-yn-label--wrong   { color: #f87171; }

.q-yn-text {
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.6;
}

.q-yn-text--none    { color: #cbd5e1; }
.q-yn-text--correct { color: #d1fae5; font-weight: 600; }
.q-yn-text--wrong   { color: #fecaca; font-weight: 600; }

.q-yn-btns {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding-top: 3px;
}

.q-yn-btn {
  padding: 6px 13px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 2px solid;
  cursor: pointer;
  transition: background 120ms, border-color 120ms;
}

.q-yn-btn--normal          { border-color: rgba(148, 163, 184, 0.22); background: rgba(15, 23, 42, 0.60); color: #94a3b8; }
.q-yn-btn--normal:hover    { border-color: rgba(56, 189, 248, 0.38); background: rgba(56, 189, 248, 0.10); color: #e2e8f0; }
.q-yn-btn--sel-correct     { border-color: #34d399; background: rgba(16, 185, 129, 0.16); color: #d1fae5; }
.q-yn-btn--sel-wrong       { border-color: #f87171; background: rgba(239, 68, 68, 0.14); color: #fecaca; }
.q-yn-btn--muted           { border-color: rgba(148, 163, 184, 0.10); background: transparent; color: #334155; opacity: 0.50; }

/* =============================================================
 * FLASHCARD FLIP ANIMATION — chuyển từ inline style của
 * flashcards.html ra đây để dùng chung
 * ============================================================= */

.card-container {
  perspective: 1200px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.card-inner.flipped {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 16px;
}

.card-back {
  transform: rotateY(180deg);
}

/* =============================================================
 * FLASHCARD FACES — visual styles
 * ============================================================= */

.app-flashcard-front {
  background: rgba(8, 20, 36, 0.90);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 24px 60px rgba(2, 8, 23, 0.40);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.app-flashcard-back {
  background: linear-gradient(135deg, rgba(12, 38, 64, 0.96), rgba(10, 46, 72, 0.96));
  border: 1px solid rgba(34, 211, 238, 0.20);
  box-shadow: 0 24px 60px rgba(2, 8, 23, 0.40);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.app-flashcard-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.app-flashcard-front .app-flashcard-label { color: #334155; }
.app-flashcard-back  .app-flashcard-label { color: #22d3ee; }

.app-flashcard-text {
  text-align: center;
  font-size: 1.3rem;
  line-height: 1.7;
  font-weight: 500;
}

.app-flashcard-front .app-flashcard-text { color: #f1f5f9; }
.app-flashcard-back  .app-flashcard-text { color: #e2e8f0; font-weight: 700; }

/* =============================================================
 * FLASHCARD NAV ITEMS — class được tạo bởi flashcards.html JS
 * ============================================================= */

.app-fc-nav-item {
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: #475569;
  transition: background 150ms, color 150ms;
}

.app-fc-nav-item:hover { background: rgba(34, 211, 238, 0.07); color: #94a3b8; }

.app-fc-nav-item--current {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.26);
  color: #a5b4fc;
  font-weight: 600;
}

.app-fc-nav-item--flipped { color: #6366f1; background: rgba(99, 102, 241, 0.08); }
.app-fc-nav-item--seen    { color: #64748b; background: rgba(15, 23, 42, 0.30); }

.app-fc-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 9999px;
}

.app-fc-dot--flipped { background: #6366f1; }
.app-fc-dot--seen    { background: #1e3a5f; border: 1px solid #334155; }
.app-fc-dot--unseen  { background: #1e293b; border: 1px solid #1e3a5f; }

/* =============================================================
 * SIDEBAR NAV CONTROLS — tạo bởi sidebar-nav.js
 * ============================================================= */

/* Thanh chứa các nút toggle, chừn ngay trước #question-list / #nav-list */
.sidebar-nav-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px 8px 5px;
  background: rgba(4, 17, 31, 0.80);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.sidebar-nav-ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(148, 163, 184, 0.07);
  border: 1px solid rgba(148, 163, 184, 0.12);
  color: #475569;
  font-size: 0.67rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 120ms, color 120ms, border-color 120ms;
}

.sidebar-nav-ctrl-btn:hover {
  background: rgba(56, 189, 248, 0.10);
  border-color: rgba(56, 189, 248, 0.24);
  color: #7dd3fc;
}

/* Trạng thái active (full mode đang bật, nhóm đang ẩn) */
.sidebar-nav-ctrl-btn--active {
  background: rgba(56, 189, 248, 0.10);
  border-color: rgba(56, 189, 248, 0.28);
  color: #38bdf8;
}

/* =============================================================
 * QUIZ NAV FULL MODE — item hiện số + nội dung ngắn
 * ============================================================= */

/* Button chiếm toàn bộ chiều rộng với text */
.q-nav-btn--full {
  width: 100%;
  justify-content: flex-start;
  gap: 8px;
  padding: 5px 6px;
}

/* Phần text ngắn bên cạnh badge */
.q-nav-item-text {
  font-size: 0.72rem;
  color: #64748b;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.q-nav-btn--current .q-nav-item-text {
  color: #94a3b8;
}
