/* =========================================================
   SKC DEFENCE ACADEMY - MODERN RESPONSIVE STYLESHEET
   Precision Tuning for: Mobile, Tablet, Laptop, and 75-inch Board
   ========================================================= */

:root {
  --primary: #0a192f;
  --primary-light: #172a46;
  --secondary: #0284c7;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --defence-green: #15803d;
  --danger: #ef4444;
  --success: #10b981;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 15px 30px rgba(10, 25, 47, 0.12);
  --radius: 12px;
  --font-base: 15px;
}

/* 75-inch Digital Board Classroom Mode */
body.digital-board-mode {
  --font-base: 20px;
  --radius: 18px;
  background-color: #f1f5f9;
}
body.digital-board-mode .btn,
body.digital-board-mode .home-btn-card {
  padding: 1.25rem 1.5rem;
  font-size: 1.15rem;
}
body.digital-board-mode h1 { font-size: 2.4rem; }
body.digital-board-mode h2 { font-size: 2rem; }
body.digital-board-mode h3 { font-size: 1.6rem; }

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--font-base);
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Responsive Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ======================== HEADER ======================== */
header.app-header {
  background: linear-gradient(135deg, #0a192f 0%, #112240 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
  border-bottom: 2px solid var(--accent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  gap: 0.75rem;
  flex-wrap: nowrap;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  padding: 2px;
  border: 2px solid var(--accent);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #fff;
  line-height: 1.2;
}

.brand-text p {
  font-size: 0.72rem;
  color: #cbd5e1;
  font-weight: 500;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #d97706 100%);
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-defence {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
  color: #fff;
}
.btn-defence:hover {
  background: #166534;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-board {
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  font-size: 0.78rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* User Badge */
.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
}

.user-avatar-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #0a192f;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  flex-shrink: 0;
}

.user-name-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.user-role-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  padding: 0.1rem 0.4rem;
  border-radius: 10px;
}

/* ======================== HERO BANNER ======================== */
.hero-banner {
  background: linear-gradient(rgba(10, 25, 47, 0.90), rgba(10, 25, 47, 0.96)), url('/uploads/banner.png') center/cover no-repeat;
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
  border-bottom: 3px solid var(--accent);
  border-radius: var(--radius);
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.hero-banner-inner {
  max-width: 840px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-block;
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 0.2rem 0.75rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.hero-banner h2 {
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.hero-banner p {
  font-size: 0.95rem;
  color: #e2e8f0;
  margin-bottom: 1.25rem;
  line-height: 1.45;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.hero-stat-pill {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}
.hero-stat-pill strong {
  display: block;
  font-size: 1.15rem;
  color: var(--accent);
  font-weight: 800;
}
.hero-stat-pill span {
  font-size: 0.7rem;
  color: #cbd5e1;
  text-transform: uppercase;
}

/* =========================================================
   10 DASHBOARD BUTTONS GRID
   Laptop View: Exactly 2 rows of 5 cards (10 buttons total)
   Tablet View: 3 or 4 columns
   Mobile View: Clean 2-column grid
   ========================================================= */

.dashboard-section {
  padding: 0.5rem 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.home-buttons-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.home-btn-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 1.1rem 0.85rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  user-select: none;
}

.home-btn-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(10, 25, 47, 0.1);
}

.home-btn-card.active {
  border-color: var(--accent);
  background: #fffbeb;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}

.card-icon-bubble {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0.65rem;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.home-btn-card:hover .card-icon-bubble {
  transform: scale(1.08);
}

.home-btn-card h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
  line-height: 1.25;
}

.home-btn-card p {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.btn-card-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  text-transform: uppercase;
}

/* Distinctive Icon Bubble Themes */
.bubble-courses { background: #e0f2fe; color: #0284c7; }
.bubble-freetest { background: #dcfce7; color: #16a34a; }
.bubble-selections { background: #fef3c7; color: #d97706; }
.bubble-paidtest { background: #fee2e2; color: #dc2626; }
.bubble-ebooks { background: #ede9fe; color: #7c3aed; }
.bubble-pyq { background: #ffedd5; color: #ea580c; }
.bubble-syllabus { background: #e0e7ff; color: #4f46e5; }
.bubble-social { background: #fce7f3; color: #db2777; }
.bubble-phase2 { background: #fef08a; color: #ca8a04; border: 1.5px solid #facc15; }
.bubble-ca { background: #ccfbf1; color: #0d9488; }

/* =========================================================
   OUR SELECTIONS SLIDESHOW CAROUSEL
   ========================================================= */

.slideshow-wrapper {
  background: linear-gradient(135deg, #0a192f 0%, #172a46 100%);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  color: #fff;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1.5px solid rgba(245, 158, 11, 0.4);
}

.slideshow-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.slideshow-header h3 {
  font-size: 1.2rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.slideshow-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.slide-arrow-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: all 0.2s;
}

.slide-arrow-btn:hover {
  background: var(--accent);
  color: #0a192f;
}

.slideshow-track-container {
  overflow: hidden;
  position: relative;
  border-radius: 10px;
}

.slideshow-track {
  display: flex;
  gap: 0.85rem;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.selection-slide-card {
  flex: 0 0 calc(25% - 0.65rem);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.selection-slide-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.12);
}

.selection-img-wrapper {
  width: 100%;
  height: 190px;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  margin-bottom: 0.6rem;
  position: relative;
}

.selection-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.selection-badge-corner {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--accent);
  color: #0a192f;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
}

.selection-slide-card h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.selection-slide-card .exam-pill {
  display: inline-block;
  background: rgba(2, 132, 199, 0.3);
  color: #38bdf8;
  font-size: 0.72rem;
  padding: 0.1rem 0.5rem;
  border-radius: 10px;
  margin-bottom: 0.25rem;
}

.selection-slide-card .roll-text {
  font-size: 0.72rem;
  color: #cbd5e1;
}

/* =========================================================
   VIEWS & CONTENT CARDS
   ========================================================= */

.view-section {
  display: none;
  animation: fadeIn 0.2s ease-in-out;
}

.view-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.view-header {
  background: #fff;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  box-shadow: var(--shadow);
}

.view-header h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.content-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

.content-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.content-card-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: #0f172a;
}

.content-card-body {
  padding: 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.content-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.content-card-body p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.85rem;
  flex: 1;
}

.card-meta-list {
  list-style: none;
  margin-bottom: 0.85rem;
}

.card-meta-list li {
  font-size: 0.8rem;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}

.card-pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.65rem;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}

.price-box {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.current-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

.original-price {
  font-size: 0.82rem;
  color: #94a3b8;
  text-decoration: line-through;
}

/* =========================================================
   TABS, PHASE-II & CBT
   ========================================================= */

.pts-category-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
}

.pts-tab-btn {
  background: #fff;
  border: 1.5px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-main);
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
}

.pts-tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.phase2-hero-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 5px solid var(--accent);
}

.phase2-hero-card h3 {
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.phase2-batches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.batch-box {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.batch-box.highlight {
  border-color: var(--accent);
  background: linear-gradient(to bottom, #fffbeb, #ffffff);
}

.batch-badge {
  display: inline-block;
  background: var(--accent);
  color: #0f172a;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.4rem;
  width: fit-content;
}

/* CBT & SRT Container */
.cbt-container {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.cbt-top-bar {
  background: var(--primary);
  color: #fff;
  padding: 0.85rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cbt-timer-box {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #fca5a5;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-weight: 700;
  font-family: monospace;
  font-size: 1.05rem;
}

.cbt-main-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  min-height: 440px;
}

.cbt-question-pane {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.cbt-question-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  line-height: 1.45;
}

.cbt-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.cbt-option-item {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  transition: all 0.15s;
  background: #fff;
}

.cbt-option-item:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.cbt-option-item.selected {
  border-color: var(--secondary);
  background: #f0f9ff;
  font-weight: 600;
}

.cbt-option-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cbt-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cbt-palette-sidebar {
  background: #f8fafc;
  border-left: 1px solid var(--border);
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.palette-status-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  font-size: 0.72rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.palette-bubbles-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.4rem;
  max-height: 280px;
  overflow-y: auto;
}

.palette-num-btn {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.palette-num-btn.answered { background: var(--success); color: #fff; border-color: var(--success); }
.palette-num-btn.not-answered { background: var(--danger); color: #fff; border-color: var(--danger); }
.palette-num-btn.review { background: #8b5cf6; color: #fff; border-color: #8b5cf6; }

/* Scorecard & Analytics */
.analytics-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  margin-bottom: 2rem;
}

.score-hero-banner {
  text-align: center;
  padding: 1.25rem;
  background: linear-gradient(135deg, #0a192f 0%, #1e3a8a 100%);
  color: #fff;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

.score-big-circle {
  width: 95px;
  height: 95px;
  border-radius: 50%;
  border: 3.5px solid var(--accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}

.score-big-circle strong {
  font-size: 1.85rem;
  line-height: 1;
  color: var(--accent);
}

.score-big-circle span {
  font-size: 0.7rem;
  color: #cbd5e1;
}

.analytics-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.kpi-tile {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  text-align: center;
}

.kpi-tile strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
}

.kpi-tile span {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.solution-accordion-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem;
  margin-bottom: 0.75rem;
  background: #fff;
}

.solution-accordion-item.correct { border-left: 4px solid var(--success); }
.solution-accordion-item.incorrect { border-left: 4px solid var(--danger); }
.solution-accordion-item.skipped { border-left: 4px solid #94a3b8; }

/* Admin Layout */
.admin-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.admin-sidebar {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1rem;
  box-shadow: var(--shadow);
  height: fit-content;
}

.admin-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-menu-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.15s;
}

.admin-menu-btn.active {
  background: var(--primary);
  color: #fff;
}

.admin-content-pane {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.custom-table-wrapper {
  overflow-x: auto;
  margin-top: 0.75rem;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

table.data-table th {
  background: #f8fafc;
  color: var(--primary);
  font-weight: 700;
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 2px solid var(--border);
}

table.data-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 47, 0.75);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.modal-backdrop.open {
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
  pointer-events: auto;
}

.modal-card {
  background: #ffffff;
  border-radius: 14px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  position: relative;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.modal-header {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
}

.modal-header h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
  line-height: 1.35;
  flex: 1;
  word-break: break-word;
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #64748b;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
}

.modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

/* Responsive GD Classes & Folders Layout */
.gd-card-media-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 1.15rem;
  align-items: flex-start;
}

.gd-card-thumb-container {
  position: relative;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0a192f;
}

.gd-card-thumb-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gd-card-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.gd-card-thumb-container:hover .gd-card-thumb-overlay {
  background: rgba(0, 0, 0, 0.15);
}

.gd-card-play-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ef4444;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 3px 10px rgba(239, 68, 68, 0.5);
  transition: transform 0.15s ease;
}

.gd-card-thumb-container:hover .gd-card-play-icon {
  transform: scale(1.08);
}

.gd-card-actions-row {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.75rem;
  flex-wrap: wrap;
}

.empty-folder-box {
  text-align: center;
  padding: 2.5rem 1rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1.5px dashed #cbd5e1;
}

@media (max-width: 680px) {
  .modal-backdrop {
    padding: 0.4rem;
  }
  .modal-card {
    width: 96% !important;
    max-height: 94vh !important;
    border-radius: 12px;
  }
  .modal-header {
    padding: 0.75rem 0.9rem;
  }
  .modal-header h3 {
    font-size: 0.92rem;
  }
  .modal-body {
    padding: 0.85rem;
  }
  .gd-card-media-layout {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }
  .gd-card-actions-row {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }
  .gd-card-actions-row .btn {
    width: 100%;
    justify-content: center;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
  }
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.55rem 0.8rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  background: #fff;
  color: var(--text-main);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary);
}

/* Watermark Overlay */
.watermark-canvas-container {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #525659;
  padding: 0.75rem;
  text-align: center;
}

.watermark-ribbon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-35deg);
  font-size: 1.5rem;
  font-weight: 900;
  color: rgba(239, 68, 68, 0.2);
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: 2px;
  z-index: 10;
}

/* Footer */
footer.app-footer {
  margin-top: auto;
  background: var(--primary);
  color: #94a3b8;
  padding: 2rem 0 1.25rem;
  border-top: 3px solid var(--accent);
  font-size: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.4rem;
}

.footer-col a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
}

/* =========================================================
   MEDIA QUERIES (TUNED FOR LAPTOP, TABLET & MOBILE)
   ========================================================= */

/* LAPTOP / DESKTOP (min-width: 1025px) */
@media (min-width: 1025px) {
  .container {
    max-width: 1240px;
    padding: 0 1.5rem;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .brand-text h1 {
    font-size: 1.22rem;
  }

  .brand-text p {
    display: block;
    font-size: 0.74rem;
  }

  .hero-banner {
    padding: 2.25rem 2rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
  }

  .hero-banner h2 {
    font-size: 2.1rem;
  }

  .hero-banner p {
    font-size: 1rem;
  }

  .hero-stats-row {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }

  /* Exactly 2 rows of 5 cards = 10 buttons total */
  .home-buttons-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.15rem;
  }

  .home-btn-card {
    padding: 1.25rem 1rem;
    min-height: 140px;
  }

  .home-btn-card h3 {
    font-size: 1rem;
  }

  .home-btn-card p {
    display: block;
    font-size: 0.78rem;
  }

  /* 4 selection cards per view on laptop */
  .selection-slide-card {
    flex: 0 0 calc(25% - 0.75rem);
  }

  .selection-img-wrapper {
    height: 220px;
  }

  /* Content items grid: 3 columns on laptop */
  .items-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  /* CBT Layout on laptop: 75% question area, 25% sticky palette sidebar */
  .cbt-main-grid {
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
  }

  /* Admin layout on laptop: 240px sidebar, 1fr content */
  .admin-layout {
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
  }
}

/* TABLET (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .container {
    padding: 0 1.25rem;
  }

  .home-buttons-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .selection-slide-card {
    flex: 0 0 calc(33.333% - 0.6rem); /* 3 cards per view */
  }

  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .items-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .cbt-main-grid {
    grid-template-columns: 1fr 280px;
    gap: 1rem;
  }
}

/* MOBILE PHONES (max-width: 767px) */
@media (max-width: 767px) {
  html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .container {
    padding: 0 0.65rem;
    width: 100%;
    max-width: 100%;
  }

  header.app-header {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .header-inner {
    padding: 0.45rem 0;
    gap: 0.4rem;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .brand-wrapper {
    min-width: 0;
    flex: 1 1 auto;
    gap: 0.45rem;
    overflow: hidden;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }

  .brand-text {
    min-width: 0;
    overflow: hidden;
  }

  .brand-text h1 {
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
  }

  .brand-text p {
    display: none !important; /* Hide subtitle on phones to prevent any overflow */
  }

  #digital-board-toggle-btn {
    display: none !important; /* Board mode is for classroom large screens */
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
  }

  .user-profile-badge {
    padding: 0.22rem 0.45rem;
    gap: 0.3rem;
  }

  .user-avatar-circle {
    width: 22px;
    height: 22px;
    font-size: 0.72rem;
  }

  .user-name-text {
    font-size: 0.78rem;
    max-width: 65px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .user-role-badge {
    display: none !important; /* Hide role pill on mobile to prevent overflow */
  }

  .btn-admin-nav {
    padding: 0.28rem 0.55rem;
    font-size: 0.75rem;
  }

  /* Hero Banner on Mobile */
  .hero-banner {
    padding: 1.25rem 0.75rem;
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
  }

  .hero-banner h2 {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
  }

  .hero-banner p {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }

  .hero-stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
  }

  .hero-stat-pill {
    padding: 0.4rem 0.3rem;
  }

  .hero-stat-pill strong {
    font-size: 1rem;
  }

  .hero-stat-pill span {
    font-size: 0.65rem;
  }

  /* 10 Dashboard Buttons on Mobile: Clean 2-column grid */
  .home-buttons-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .home-btn-card {
    padding: 0.85rem 0.45rem;
    min-height: 105px;
  }

  .card-icon-bubble {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    margin-bottom: 0.35rem;
  }

  .home-btn-card h3 {
    font-size: 0.85rem;
    line-height: 1.25;
    margin-bottom: 0;
  }

  .home-btn-card p {
    display: none; /* Hide verbose subtext on phone buttons for ultra-clean UI */
  }

  .btn-card-badge {
    font-size: 0.55rem;
    padding: 0.1rem 0.3rem;
    top: 4px;
    right: 4px;
  }

  /* Slideshow on Mobile: 2 compact cards */
  .slideshow-wrapper {
    padding: 1.25rem 0.75rem;
  }

  .selection-slide-card {
    flex: 0 0 calc(50% - 0.45rem);
    padding: 0.45rem;
  }

  .selection-img-wrapper {
    height: 155px;
  }

  .selection-slide-card h4 {
    font-size: 0.82rem;
  }

  .selection-slide-card .exam-pill {
    font-size: 0.65rem;
  }

  .selection-slide-card .roll-text {
    font-size: 0.65rem;
  }

  /* Items Grids on Mobile */
  .items-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  /* CBT on Mobile */
  .cbt-main-grid {
    grid-template-columns: 1fr;
  }

  .cbt-palette-sidebar {
    border-left: none;
    border-top: 1px solid var(--border);
    max-height: 280px;
  }

  .cbt-question-pane {
    padding: 1rem;
  }

  .cbt-footer {
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: stretch;
  }

  .cbt-footer .btn {
    flex: 1 1 calc(50% - 0.4rem);
    font-size: 0.82rem;
    padding: 0.5rem 0.5rem;
    text-align: center;
  }

  /* SRT Simulator on Mobile */
  .srt-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Admin Layout on Mobile */
  .admin-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Modals on Mobile */
  .modal-box {
    max-width: 95vw;
    margin: 1rem auto;
    padding: 1.25rem 0.85rem;
    max-height: 92vh;
    overflow-y: auto;
  }

  .qr-code-img {
    max-width: 170px;
  }

  /* Footer on Mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* EXTRA SMALL MOBILE (max-width: 420px) */
@media (max-width: 420px) {
  .brand-text h1 {
    font-size: 0.82rem;
  }

  .admin-btn-label {
    display: none; /* Show only 🛡️ icon on tiny phones */
  }

  .btn-admin-nav {
    padding: 0.3rem 0.45rem;
  }

  .user-name-text {
    max-width: 48px;
  }

  .selection-slide-card {
    flex: 0 0 calc(100% - 0.5rem);
  }

  .selection-img-wrapper {
    height: 180px;
  }
}

/* =========================================================
   UNIVERSAL FOLDER SYSTEM & TABS UI
   ========================================================= */
.folder-nav-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid #cbd5e1;
  margin-bottom: 1.15rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f8fafc;
}

.folder-nav-tabs::-webkit-scrollbar {
  height: 5px;
}
.folder-nav-tabs::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.folder-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  font-weight: 700;
  font-size: 0.88rem;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  position: relative;
  top: 2px;
}

.folder-tab-btn:hover {
  background: #e2e8f0;
  color: #0a192f;
  transform: translateY(-1px);
}

.folder-tab-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
  z-index: 2;
}

.folder-tab-badge {
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 800;
}

.folder-tab-btn.active .folder-tab-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.folder-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(90deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-left: 4px solid #0284c7;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.folder-breadcrumb .crumb-root {
  color: #0a192f;
  font-weight: 700;
}

.folder-breadcrumb .crumb-sep {
  color: #94a3b8;
  font-weight: bold;
}

.folder-breadcrumb .crumb-current {
  color: #0284c7;
  font-weight: 800;
}

.folder-breadcrumb .crumb-count {
  margin-left: auto;
  font-size: 0.75rem;
  background: #e0f2fe;
  color: #0369a1;
  padding: 0.2rem 0.65rem;
  border-radius: 12px;
  font-weight: 700;
}

.folder-item-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem;
  transition: transform 0.15s, box-shadow 0.15s;
}

.folder-item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border-color: #cbd5e1;
}

.empty-folder-box {
  text-align: center;
  padding: 3rem 1.5rem;
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  margin: 1.5rem 0;
}

@media (max-width: 768px) {
  .folder-nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.35rem;
  }
  .folder-tab-btn {
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
  }
  .folder-breadcrumb .crumb-count {
    margin-left: 0;
    width: 100%;
    margin-top: 0.25rem;
  }
}

/* PW-Style Architecture for Phase-II Classrooms */
.pw-search-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.5rem 0.85rem;
  margin-bottom: 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pw-search-box:focus-within {
  border-color: #0284c7;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}
.pw-search-box input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 0.9rem;
  color: #0f172a;
  outline: none;
  font-family: inherit;
}
.pw-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
}
.pw-pill-blue { background: #e0f2fe; color: #0369a1; }
.pw-pill-green { background: #dcfce7; color: #15803d; }
.pw-pill-amber { background: #fef3c7; color: #b45309; }
.pw-pill-purple { background: #f3e8ff; color: #6b21a8; }
.pw-pill-rose { background: #ffe4e6; color: #be123c; }

.pw-test-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.15rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.18s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.18s, border-color 0.18s;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.pw-test-card:hover {
  transform: translateY(-2px);
  border-color: #0284c7;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.12);
}
.pw-test-card .test-num-badge {
  background: linear-gradient(135deg, #0b2a5b 0%, #1e3a8a 100%);
  color: #ffffff;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-left: 3px solid #ff9933;
}
.pw-lecture-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.15rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.pw-lecture-card:hover {
  transform: translateY(-2px);
  border-color: #f59e0b;
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.12);
}
.pw-class-index-tag {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* PW DPP / Class Quiz Engine Styles */
.quiz-container {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.quiz-header-bar {
  background: linear-gradient(135deg, #0b2a5b 0%, #1e3a8a 100%);
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-bottom: 3px solid #ff9933;
}
.quiz-timer-pill {
  background: #ffffff;
  color: #0b2a5b;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.quiz-timer-pill.urgent {
  background: #ef4444;
  color: #ffffff;
  animation: pulseTimer 1s infinite;
}
@keyframes pulseTimer {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.05); }
}
.quiz-lang-selector {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 2px;
}
.quiz-lang-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  cursor: pointer;
}
.quiz-lang-btn.active {
  background: #ff9933;
  color: #0b2a5b;
}
.quiz-palette-strip {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0.65rem 1.15rem;
  background: #f1f5f9;
  border-bottom: 1px solid #cbd5e1;
  -webkit-overflow-scrolling: touch;
}
.quiz-q-num-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.quiz-q-num-btn.active {
  border-color: #0284c7;
  background: #e0f2fe;
  color: #0369a1;
  box-shadow: 0 0 0 2px #0284c7;
}
.quiz-q-num-btn.answered {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}
.quiz-card-body {
  padding: 1.25rem 1.35rem;
}
.quiz-situation-box {
  background: #f8fafc;
  border-left: 4px solid #0284c7;
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.quiz-option-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1.15rem;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.quiz-option-item:hover {
  border-color: #0284c7;
  background: #f0f9ff;
  transform: translateY(-1px);
}
.quiz-option-item.selected {
  border-color: #0284c7;
  background: #e0f2fe;
  box-shadow: 0 0 0 1px #0284c7;
}
.quiz-option-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #1e293b;
  font-weight: 800;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.quiz-option-item.selected .quiz-option-badge {
  background: #0284c7;
  color: #ffffff;
}
.quiz-actions-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-top: 1.5px solid #e2e8f0;
  flex-wrap: wrap;
}



