/* ==========================================================================
   Project Mathers 2 - Tactile Philippine Math Workshop & Drafting Studio
   Aesthetic Tokens & Classroom Layout per frontend-design guidance
   ========================================================================== */

:root {
  --bg-canvas: #F8F7F3;
  --bg-grid: #E8E6DD;
  --panel-bg: #FFFFFF;
  --panel-border: #D1D5DB;
  
  --ink-primary: #0F172A;
  --ink-secondary: #475569;
  --ink-muted: #64748B;
  
  --deped-blue: #0038A8;
  --deped-blue-hover: #002B82;
  --deped-blue-light: #EFF6FF;
  
  --amber-gold: #D97706;
  --amber-light: #FEF3C7;
  --emerald-chalk: #16A34A;
  --emerald-light: #DCFCE7;
  --coral-red: #DC2626;
  --coral-light: #FEE2E2;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --font-scale: 1.0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-canvas);
  background-image: 
    linear-gradient(to right, var(--bg-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--bg-grid) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--ink-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header & Command Bar */
.top-nav {
  background: var(--panel-bg);
  border-bottom: 2px solid var(--panel-border);
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-link-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.brand-link-logo:hover {
  transform: scale(1.08) rotate(10deg);
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  filter: drop-shadow(0 2px 6px rgba(0, 56, 168, 0.3));
  transition: filter 0.2s ease;
}
.brand-link-logo:hover .brand-logo-img {
  filter: drop-shadow(0 4px 12px rgba(245, 158, 11, 0.5));
}

.brand-badge {
  background: var(--deped-blue);
  color: #FFFFFF;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.08em;
  box-shadow: 0 2px 6px rgba(0, 56, 168, 0.25);
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink-primary);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.brand-title-math {
  color: var(--deped-blue);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-title-ers {
  color: #D97706;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.brand-title-tag {
  font-size: 0.68rem;
  font-weight: 800;
  background: #0F172A;
  color: #F8FAFC;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.08em;
  border: 1px solid rgba(253, 184, 19, 0.5);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.brand-subtitle {
  font-size: 0.8rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.brand-link {
  color: var(--deped-blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: all 0.15s ease;
}
.brand-link:hover {
  color: var(--deped-blue-hover);
  text-shadow: 0 0 1px rgba(0, 56, 168, 0.2);
}

.controls-cluster {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.select-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #F1F5F9;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid #CBD5E1;
}

.select-group label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink-secondary);
}

.gen-toolbar-cluster {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: #EEF2FF;
  padding: 0.2rem 0.35rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid #C7D2FE;
}

.btn-gen {
  padding: 0.3rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.btn-ai-batch {
  background: linear-gradient(135deg, #7C3AED 0%, #6366F1 100%);
  color: #FFFFFF;
  border: 1px solid #6D28D9;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.25);
}
.btn-ai-batch:hover {
  background: linear-gradient(135deg, #6D28D9 0%, #4F46E5 100%);
  box-shadow: 0 4px 10px rgba(124, 58, 237, 0.4);
}
.btn-gen:hover {
  transform: translateY(-1px);
}

.custom-select {
  border: none;
  background: transparent;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-primary);
  outline: none;
  cursor: pointer;
  padding: 0.2rem;
  max-width: 320px;
  text-overflow: ellipsis;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--deped-blue);
  color: #FFFFFF;
}
.btn-primary:hover {
  background: var(--deped-blue-hover);
}

.btn-secondary {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: var(--ink-secondary);
}
.btn-secondary:hover {
  background: #F8FAFC;
  color: var(--ink-primary);
}

.btn-accent {
  background: var(--amber-gold);
  color: #FFFFFF;
}
.btn-accent:hover {
  background: #B45309;
}

/* Main Grid Layout */
.main-stage {
  flex: 1;
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .main-stage {
    grid-template-columns: 1fr;
  }
}

/* Roulette Left Stage */
.roulette-panel {
  background: var(--panel-bg);
  border: 2px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.wheel-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.section-badge {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--deped-blue);
  background: var(--deped-blue-light);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
}

.wheel-box {
  position: relative;
  width: 380px;
  height: 380px;
  margin: 0.5rem auto;
}

#wheelCanvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Mechanical Brass Pointer */
.wheel-pointer {
  position: absolute;
  top: 50%;
  right: -14px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-right: 28px solid #DC2626;
  filter: drop-shadow(-2px 0 3px rgba(0,0,0,0.3));
  z-index: 10;
}

.wheel-center-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: radial-gradient(circle, #FDE68A 0%, #D97706 80%);
  border: 3px solid #78350F;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  z-index: 5;
  pointer-events: none;
}

.spin-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}

.btn-spin {
  padding: 0.85rem 1.5rem;
  font-size: 1.15rem;
  font-weight: 800;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #0038A8 0%, #1D4ED8 100%);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 10px rgba(0, 56, 168, 0.35);
  justify-content: center;
}
.btn-spin:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 56, 168, 0.45);
}
.btn-spin:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.wheel-toggles {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--ink-secondary);
  background: #F8FAFC;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid #E2E8F0;
}

/* Picked Student Spotlight Banner */
.winner-banner {
  width: 100%;
  background: var(--amber-light);
  border: 2px solid var(--amber-gold);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  text-align: center;
  margin-top: 0.75rem;
  display: none;
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.winner-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #92400E;
}

.winner-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink-primary);
  margin: 0.2rem 0;
}

/* Right Stage - Question Arena */
.arena-panel {
  background: var(--panel-bg);
  border: 2px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Arena Header & Competency Badge */
.arena-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 0.75rem;
}

.competency-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.comp-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: #E0E7FF;
  color: #3730A3;
  width: fit-content;
}

.diff-easy {
  background: #D1FAE5 !important;
  color: #065F46 !important;
}
.diff-medium {
  background: #E0E7FF !important;
  color: #3730A3 !important;
}
.diff-hard {
  background: #FFE4E6 !important;
  color: #9F1239 !important;
}

.comp-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.timer-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink-primary);
}
.timer-box.warning {
  color: var(--coral-red);
  background: var(--coral-light);
  border-color: var(--coral-red);
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Question Statement & SVG Display */
.question-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.question-text {
  font-size: calc(1.25rem * var(--font-scale));
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink-primary);
}

.visual-canvas {
  background: #FAF9F5;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 0.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* SVG Math Visuals Typography inside visuals.js */
.math-svg {
  width: 100%;
  max-width: 460px;
  max-height: 240px;
  display: block;
  margin: 0 auto;
}
.svg-title { font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 700; fill: #1E293B; }
.svg-label { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 12px; font-weight: 600; fill: #1E293B; }
.svg-label-accent { font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 700; fill: #DC2626; }
.svg-label-sub { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 11px; fill: #64748B; }
.svg-tick { font-family: 'Space Grotesk', sans-serif; font-size: 11px; font-weight: 600; fill: #475569; }
.svg-badge { font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 700; fill: #1E3A8A; }
.svg-pt-label { font-family: 'Space Grotesk', sans-serif; font-size: 11px; font-weight: 700; fill: #92400E; }
.svg-data { font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 600; fill: #1E293B; }
.svg-data-accent { font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 800; fill: #DC2626; }
.svg-chip-text { font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 800; fill: #1E293B; }

/* Audio & BGM Popover */
.audio-controls-cluster {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  position: relative;
}

.bgm-popover {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  width: 290px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.18), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  z-index: 1500;
  padding: 0.85rem;
  animation: popoverFadeIn 0.18s ease-out;
}

@keyframes popoverFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.bgm-popover-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid #E2E8F0;
  margin-bottom: 0.6rem;
  color: var(--ink-primary);
}

.bgm-close-sm {
  background: none;
  border: none;
  cursor: pointer;
  color: #64748B;
  font-size: 0.9rem;
  font-weight: bold;
  padding: 0.1rem 0.3rem;
}
.bgm-close-sm:hover {
  color: #0F172A;
}

.bgm-popover-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bgm-control-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pulse-bgm-cta {
  animation: pulseScore 1.5s infinite ease-in-out;
  font-weight: 700;
  border: 1.5px solid #F59E0B !important;
}

/* Options Grid */
.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 768px) {
  .options-grid {
    grid-template-columns: 1fr;
  }
}

.option-btn {
  background: #FFFFFF;
  border: 2px solid #CBD5E1;
  border-radius: var(--radius-md);
  padding: calc(0.85rem * var(--font-scale)) calc(1rem * var(--font-scale));
  font-size: calc(1.05rem * var(--font-scale));
  font-weight: 600;
  text-align: left;
  color: var(--ink-primary);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.option-btn:hover:not(:disabled) {
  border-color: var(--deped-blue);
  background: var(--deped-blue-light);
}

.option-btn.selected-correct {
  background: var(--emerald-light) !important;
  border-color: var(--emerald-chalk) !important;
  color: #14532D !important;
}

.option-btn.selected-wrong {
  background: var(--coral-light) !important;
  border-color: var(--coral-red) !important;
  color: #7F1D1D !important;
}

.option-btn.eliminated-5050 {
  opacity: 0.25;
  text-decoration: line-through;
  pointer-events: none;
  background: #F1F5F9;
}

/* Lifeline Deck */
.lifelines-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #F8FAFC;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid #E2E8F0;
  flex-wrap: wrap;
}

.lifeline-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.btn-lifeline {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-lifeline:hover:not(:disabled) {
  background: var(--amber-light);
  border-color: var(--amber-gold);
  color: #92400E;
}
.btn-lifeline:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Solution Reveal Drawer */
.solution-drawer {
  background: #F1F5F9;
  border-left: 4px solid var(--deped-blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.85rem 1.25rem;
  display: none;
}

.solution-drawer.show {
  display: block;
}

.solution-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--deped-blue);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.solution-step {
  font-size: 0.95rem;
  color: var(--ink-primary);
  margin-bottom: 0.3rem;
  line-height: 1.4;
}

/* Hint Card Drawer */
.hint-drawer {
  background: var(--amber-light);
  border: 1px solid var(--amber-gold);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: none;
}
.hint-drawer.show {
  display: block;
}

.hint-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.hint-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: #92400E;
  text-transform: uppercase;
}

.lang-toggle {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: #FFFFFF;
  border: 1px solid #D97706;
  color: #92400E;
  cursor: pointer;
}

.hint-content {
  font-size: 0.95rem;
  color: #78350F;
  line-height: 1.4;
}

/* Scoring & Next Action Bar */
.action-dock {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #E2E8F0;
  flex-wrap: wrap;
}

.score-buttons {
  display: flex;
  gap: 0.5rem;
}

.btn-correct {
  background: var(--emerald-chalk);
  color: #FFFFFF;
}
.btn-correct:hover {
  background: #15803D;
}

.btn-wrong {
  background: var(--coral-red);
  color: #FFFFFF;
}
.btn-wrong:hover {
  background: #B91C1C;
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #E2E8F0;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.roster-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm);
  padding: 0.5rem;
}

.roster-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.6rem;
  background: #F8FAFC;
  border-radius: 4px;
  font-size: 0.85rem;
}
.roster-item.absent {
  opacity: 0.5;
  text-decoration: line-through;
}

textarea.roster-input {
  width: 100%;
  height: 100px;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  font-family: inherit;
  font-size: 0.85rem;
}

/* ==========================================================================
   Congratulations Celebration Modal & Confetti
   ========================================================================== */
.congrats-overlay {
  z-index: 2000;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
}

.confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 2001;
}

.congrats-card {
  z-index: 2002;
  max-width: 540px;
  width: 92%;
  text-align: center;
  border: 3px solid #F59E0B;
  box-shadow: 0 25px 60px -12px rgba(245, 158, 11, 0.45), 0 0 50px rgba(245, 158, 11, 0.25);
  animation: congratsPopIn 0.42s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: visible;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFBEB 100%);
  padding: 2.2rem 1.8rem;
  border-radius: var(--radius-lg);
}

.congrats-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  background: #F1F5F9;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 1rem;
  cursor: pointer;
  color: #64748B;
  font-weight: 700;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.congrats-close-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
  transform: scale(1.1);
}

.congrats-trophy-wrap {
  margin-top: -6px;
  margin-bottom: 0.4rem;
}

.congrats-trophy {
  font-size: 4rem;
  line-height: 1;
  animation: trophyBounce 1.6s infinite ease-in-out;
  display: inline-block;
  filter: drop-shadow(0 4px 10px rgba(245, 158, 11, 0.3));
}

.congrats-sparkles {
  font-size: 1.25rem;
  letter-spacing: 0.4rem;
  margin-top: 0.25rem;
}

.congrats-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  color: #B45309;
  text-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
  margin: 0.2rem 0;
  letter-spacing: -0.02em;
}

.congrats-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 1.2rem;
}

.congrats-spotlight {
  background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 100%);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 0.9rem 1.2rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.spotlight-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #FDE047;
  text-transform: uppercase;
}

.spotlight-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  margin: 0.25rem 0;
  letter-spacing: -0.01em;
}

.spotlight-section {
  font-size: 0.85rem;
  color: #BFDBFE;
  font-weight: 600;
}

.congrats-diff-banner {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.diff-easy-banner {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.diff-medium-banner {
  background: #EFF6FF;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
}

.diff-hard-banner {
  background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
  color: #991B1B;
  border: 1.5px solid #F87171;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
  animation: pulseScore 1.8s infinite ease-in-out;
}

.congrats-score-badge {
  background: #FEF3C7;
  border: 2px dashed #F59E0B;
  border-radius: var(--radius-md);
  padding: 0.8rem 1.2rem;
  margin-bottom: 1.1rem;
  animation: pulseScore 2s infinite ease-in-out;
}

.badge-plus {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.3rem;
  font-weight: 900;
  color: #D97706;
  line-height: 1;
}

.badge-text {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #92400E;
  margin-top: 0.2rem;
}

.badge-total {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1E3A8A;
  margin-top: 0.35rem;
}

.congrats-snippet {
  font-size: 0.95rem;
  color: #334155;
  background: #F1F5F9;
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.9rem;
  margin-bottom: 1.4rem;
  text-align: center;
}

.btn-congrats-action {
  width: 100%;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  padding: 0.95rem 1.4rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-congrats-action:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.5);
}
.btn-congrats-action:active {
  transform: translateY(1px);
}

.key-hint {
  font-size: 0.85rem;
  opacity: 0.9;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.15);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

@keyframes congratsPopIn {
  0% { transform: scale(0.65) translateY(35px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes trophyBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(4deg); }
}

@keyframes pulseScore {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* ==========================================================================
   Classroom Game Dialog Modal (Replaces browser alert)
   ========================================================================== */
.game-dialog-overlay {
  z-index: 2100;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
}

.game-dialog-card {
  z-index: 2101;
  max-width: 480px;
  width: 90%;
  text-align: center;
  border: 2.5px solid #CBD5E1;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.35);
  animation: congratsPopIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  background: #FFFFFF;
  padding: 2rem 1.6rem;
  border-radius: var(--radius-lg);
}

.game-dialog-icon-wrap {
  margin-top: -4px;
  margin-bottom: 0.5rem;
}

.game-dialog-icon {
  font-size: 3.2rem;
  line-height: 1;
  display: inline-block;
  animation: trophyBounce 2s infinite ease-in-out;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.15));
}

.game-dialog-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #F1F5F9;
  color: #475569;
  margin-bottom: 0.4rem;
}

.game-dialog-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0.2rem 0 0.6rem 0;
  letter-spacing: -0.01em;
}

.game-dialog-message {
  font-size: 1rem;
  line-height: 1.5;
  color: #334155;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.3rem;
  text-align: center;
  white-space: pre-line;
}

.btn-dialog-action {
  width: 100%;
  background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 100%);
  color: #FFFFFF;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-dialog-action:hover {
  background: linear-gradient(135deg, #1E40AF 0%, #2563EB 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30, 58, 138, 0.4);
}
.btn-dialog-action:active {
  transform: translateY(1px);
}

/* Theme variants */
.game-dialog-card.dialog-success {
  border-color: #F59E0B;
  box-shadow: 0 20px 40px -10px rgba(245, 158, 11, 0.35);
}
.game-dialog-card.dialog-success .game-dialog-badge {
  background: #FEF3C7;
  color: #B45309;
}
.game-dialog-card.dialog-success .btn-dialog-action {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.game-dialog-card.dialog-lifeline {
  border-color: #3B82F6;
  box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.35);
}
.game-dialog-card.dialog-lifeline .game-dialog-badge {
  background: #EFF6FF;
  color: #1D4ED8;
}

.game-dialog-card.dialog-timer {
  border-color: #EF4444;
  box-shadow: 0 20px 40px -10px rgba(239, 68, 68, 0.35);
}
.game-dialog-card.dialog-timer .game-dialog-badge {
  background: #FEE2E2;
  color: #B91C1C;
}
.game-dialog-card.dialog-timer .btn-dialog-action {
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.35);
}

/* ==========================================================================
   Topic Staging Panel (Safeguard on Filter Change)
   ========================================================================== */
.staging-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2.5rem 1rem;
  width: 100%;
}

.staging-card {
  max-width: 620px;
  width: 100%;
  background: #FFFFFF;
  border: 2px dashed #94A3B8;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
  animation: congratsPopIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.staging-hero-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.85rem;
}

.staging-hero-logo {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  filter: drop-shadow(0 8px 24px rgba(0, 56, 168, 0.3)) drop-shadow(0 2px 8px rgba(245, 158, 11, 0.35));
  animation: stagingLogoFloat 3s ease-in-out infinite;
}

@keyframes stagingLogoFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-5px) scale(1.03);
  }
}

.staging-icon {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.staging-pill {
  display: inline-block;
  background: #EEF2FF;
  color: #3730A3;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #C7D2FE;
  margin-bottom: 0.85rem;
}

.staging-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.staging-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #475569;
  margin: 0 auto 1.8rem auto;
  max-width: 500px;
}

.staging-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-staging-bank {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.3);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-staging-bank:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.4);
}

.btn-staging-gen {
  background: linear-gradient(135deg, #4F46E5 0%, #4338CA 100%);
  color: #FFFFFF;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.3);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-staging-gen:hover {
  background: linear-gradient(135deg, #4338CA 0%, #3730A3 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.4);
}

.btn-staging-single {
  background: #FFFBEB;
  color: #B45309;
  border: 1.5px solid #FCD34D;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.btn-staging-single:hover {
  background: #FEF3C7;
  color: #92400E;
  transform: translateY(-1px);
}

.staging-sub-hint {
  font-size: 0.8rem;
  opacity: 0.9;
  font-weight: 600;
}

.btn-staging-ai {
  background: linear-gradient(135deg, #7C3AED 0%, #6366F1 100%);
  color: #FFFFFF;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-staging-ai:hover {
  background: linear-gradient(135deg, #6D28D9 0%, #4F46E5 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.45);
}

@keyframes aiSpinner {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.ai-spinner {
  display: inline-block;
  width: 44px;
  height: 44px;
  border: 4px solid #E2E8F0;
  border-top: 4px solid #7C3AED;
  border-radius: 50%;
  animation: aiSpinner 0.8s linear infinite;
  margin: 0.75rem auto 0.25rem auto;
}

/* ==========================================================================
   Question Bank Viewer Modal
   ========================================================================== */
.bank-modal-card {
  max-width: 960px;
  width: 95%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.bank-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1.5px solid #E2E8F0;
  flex-wrap: wrap;
}

.bank-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.65rem;
  flex: 1;
  min-width: 240px;
}

.bank-search-input {
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 0.85rem;
  width: 100%;
  color: var(--ink-primary);
}

.bank-question-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem 0.25rem;
}

.bank-item-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.bank-item-card:hover {
  border-color: #94A3B8;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.bank-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.source-pill-ai {
  background: linear-gradient(135deg, #7C3AED 0%, #6366F1 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.source-pill-base {
  background: #0284C7;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.bank-item-question {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.45;
}

.bank-item-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-top: 0.25rem;
}
@media (max-width: 640px) {
  .bank-item-options {
    grid-template-columns: 1fr;
  }
}

.bank-item-opt {
  font-size: 0.85rem;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #334155;
}
.bank-item-opt.opt-correct {
  background: #ECFDF5;
  border-color: #10B981;
  color: #065F46;
  font-weight: 700;
}

.bank-jump-btn {
  background: #EEF2FF;
  color: #4F46E5;
  border: 1.5px solid #C7D2FE;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}
.bank-jump-btn:hover {
  background: #4F46E5;
  color: #FFFFFF;
  border-color: #4F46E5;
  transform: translateY(-1px);
}

.bank-flag-btn {
  background: #FFF1F2;
  color: #E11D48;
  border: 1.5px solid #FECDD3;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}
.bank-flag-btn:hover {
  background: #E11D48;
  color: #FFFFFF;
  border-color: #E11D48;
  transform: translateY(-1px);
}

/* Anti-Cheat Shuffle Button */
.btn-shuffle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-shuffle.active {
  background: #7E22CE;
  color: #FFFFFF;
  border: 1.5px solid #6B21A8;
  box-shadow: 0 0 10px rgba(126, 34, 206, 0.35);
}
.btn-shuffle.active:hover {
  background: #6B21A8;
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(126, 34, 206, 0.5);
}
.btn-shuffle.inactive {
  background: #F1F5F9;
  color: #64748B;
  border: 1.5px solid #CBD5E1;
  box-shadow: none;
}
.btn-shuffle.inactive:hover {
  background: #E2E8F0;
  color: #334155;
  transform: translateY(-1px);
}

/* Teacher Google Authentication Cluster */
.teacher-auth-cluster {
  display: flex;
  align-items: center;
}

#googleSignInBtnContainer {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}
#googleSignInBtnContainer iframe {
  color-scheme: light;
}

.btn-google {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #FFFFFF;
  color: #374151;
  border: 1.5px solid #D1D5DB;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.15s ease;
}
.btn-google:hover {
  background: #F9FAFB;
  border-color: #9CA3AF;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.teacher-profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #EFF6FF;
  border: 1.5px solid #BFDBFE;
  padding: 0.2rem 0.5rem 0.2rem 0.25rem;
  border-radius: 9999px;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.12);
}

.teacher-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #3B82F6;
  background: #DBEAFE;
}

.teacher-info {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.teacher-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  color: #1E3A8A;
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.teacher-cloud-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: #2563EB;
}

.btn-signout {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.1rem 0.25rem;
  border-radius: 50%;
  transition: all 0.15s ease;
}
.btn-signout:hover {
  color: #EF4444;
  background: #FEE2E2;
}

.teacher-auth-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
}

.auth-spinner {
  width: 13px;
  height: 13px;
  border: 2px solid #94A3B8;
  border-top-color: #2563EB;
  border-radius: 50%;
  animation: spinAuth 0.7s linear infinite;
}

@keyframes spinAuth {
  to { transform: rotate(360deg); }
}

/* Modal Teacher Status Banner */
.modal-teacher-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  padding: 0.5rem 1.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748B;
}

.modal-teacher-status.synced {
  background: #EFF6FF;
  border-bottom-color: #BFDBFE;
  color: #1E40AF;
}

.modal-teacher-status .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94A3B8;
}

.modal-teacher-status.synced .status-dot {
  background: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Delete AI Questions Button in Bank Modal */
.btn-delete-bank {
  background: #FFF1F2;
  color: #BE123C;
  border: 1.5px solid #FECDD3;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-delete-bank:hover {
  background: #FEE2E2;
  border-color: #F87171;
  color: #9F1239;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(225, 29, 72, 0.15);
}

.btn-delete-bank:active {
  transform: translateY(0);
}

.btn-delete-bank:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  background: #F1F5F9;
  border-color: #E2E8F0;
  color: #94A3B8;
}
