/* ============================================
   麻醉药理学 - UI Design (Light Blue & White, Medical Aesthetics)
   ============================================ */

:root {
  /* Medical aesthetic Light Blue & White color palette */
  --primary-50: #f0f7ff;
  --primary-100: #e0f0fe;
  --primary-200: #bae0fd;
  --primary-300: #7cc3fc;
  --primary-400: #36a5fa;
  --primary-500: #0d8cf1;
  /* Main Brand */
  --primary-600: #016fcb;
  --primary-700: #0259a4;
  --primary-800: #064c89;

  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.08);
  --success-border: rgba(16, 185, 129, 0.3);

  --error: #ef4444;
  --error-bg: rgba(239, 68, 68, 0.08);
  --error-border: rgba(239, 68, 68, 0.3);

  --warning: #f59e0b;

  /* Neutral colors for neat & clean look */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-sidebar: var(--primary-50);
  --bg-sidebar-hover: var(--primary-100);
  --bg-sidebar-active: var(--primary-200);

  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --border: #e2e8f0;
  --border-hover: #cbd5e1;

  /* Layout */
  --sidebar-width: 290px;
  --sidebar-collapsed-width: 0px;
  --topbar-height: 60px;
  --nav-height: 68px;

  /* Smooth Medical Animations (Ease-out-back or smooth cubic-bezier) */
  --transition-fast: 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows for depth */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(13, 140, 241, 0.06);
  --shadow-lg: 0 10px 25px rgba(13, 140, 241, 0.08);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.03), 0 1px 4px rgba(0, 0, 0, 0.02);
}

/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  font-family: 'Noto Sans SC', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  height: 100vh;
  overflow: hidden;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  font-size: inherit;
  outline: none;
}

/* Layout App */
#app {
  display: flex;
  height: 100vh;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.hidden {
  display: none !important;
}

.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-slow), width var(--transition-slow), min-width var(--transition-slow);
  z-index: 100;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.02);
  overflow: hidden;
}

.sidebar.collapsed {
  min-width: 0;
  width: 0;
  transform: translateX(-100%);
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-logo {
  color: var(--primary-500);
}

.sidebar-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--primary-700);
  white-space: nowrap;
}

.sidebar-toggle {
  margin-left: auto;
  padding: 6px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.sidebar-toggle:hover {
  background: var(--bg-sidebar-hover);
  color: var(--text-primary);
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-200) transparent;
  cursor: grab;
  /* For drag scrolling */
}

.sidebar-content:active {
  cursor: grabbing;
}

.sidebar-content::-webkit-scrollbar {
  width: 5px;
}

.sidebar-content::-webkit-scrollbar-thumb {
  background: var(--primary-200);
  border-radius: 5px;
}

.sidebar-section {
  padding: 0 16px;
  margin-bottom: 20px;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding: 0 4px;
  letter-spacing: 0.5px;
}

.section-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.section-label-row .section-label {
  margin-bottom: 0;
}

.clear-records-btn {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--error-bg);
  color: var(--error);
  transition: all var(--transition-fast);
}

.clear-records-btn:hover {
  background: rgba(239, 68, 68, 0.15);
}

/* Sidebar Buttons General styling */
.mode-buttons,
.source-buttons,
.subject-sub-list,
.subject-buttons {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mode-btn,
.source-btn,
.subject-btn,
.subject-select-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 14px;
  transition: all var(--transition-fast);
  white-space: nowrap;
  user-select: none;
}

.mode-btn:hover,
.source-btn:hover,
.subject-btn:hover,
.subject-select-btn:hover {
  background: var(--bg-sidebar-hover);
  color: var(--primary-600);
}

.mode-btn.active,
.source-btn.active,
.subject-btn.active,
.subject-select-btn.active {
  background: var(--bg-sidebar-active);
  color: var(--primary-700);
  font-weight: 600;
}

.mode-btn svg,
.source-btn svg {
  opacity: 0.8;
}

.mode-btn.active svg,
.source-btn.active svg {
  opacity: 1;
  color: var(--primary-600);
}

.source-count,
.subject-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--primary-50);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.active .source-count,
.active .subject-count {
  color: var(--primary-700);
  background: rgba(255, 255, 255, 0.6);
}

/* Accordion Unit Group */
.unit-group {
  margin-bottom: 2px;
}

.unit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  cursor: pointer;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition-fast);
  user-select: none;
  border: 1px solid transparent;
}

.unit-header:hover {
  background: var(--bg-sidebar-hover);
}

.unit-header.active-group {
  border-color: var(--primary-200);
  background: var(--bg-sidebar-hover);
  color: var(--primary-700);
}

.unit-header svg {
  transition: transform var(--transition-fast);
  color: var(--text-muted);
}

.unit-group.expanded .unit-header svg {
  transform: rotate(180deg);
  color: var(--primary-600);
}

.unit-sub-list {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding-left: 16px;
  margin-top: 4px;
  border-left: 2px solid var(--primary-50);
  margin-left: 12px;
}

.unit-group.expanded .unit-sub-list {
  display: flex;
  animation: slideDown 0.2s ease-out;
}


/* Directory Grid */
.question-directory {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  padding: 4px;
}

.qdir-btn {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  border-radius: 6px;
  color: var(--text-secondary);
  background: var(--primary-50);
  transition: all var(--transition-fast);
  position: relative;
}

.qdir-btn:hover {
  background: var(--primary-200);
  color: var(--primary-800);
}

.qdir-btn.active {
  background: var(--primary-500);
  color: white;
  font-weight: bold;
  transform: scale(1.1);
  z-index: 2;
  box-shadow: var(--shadow-md);
}

.qdir-btn.correct {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.qdir-btn.wrong {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid var(--error-border);
}

.qdir-btn.favorited::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 2px;
  width: 6px;
  height: 6px;
  background-color: var(--warning);
  border-radius: 50%;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--bg-sidebar);
}

.progress-info {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.progress-bar {
  height: 6px;
  background: var(--primary-50);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-400), var(--primary-600));
  border-radius: var(--radius-full);
  transition: width 0.4s ease-out;
}

/* Floating Menu Button */
.floating-sidebar-btn {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 150;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  color: var(--primary-600);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-fast);
  border: 1px solid var(--border);
}

.floating-sidebar-btn:hover {
  transform: scale(1.05);
}

.floating-sidebar-btn.visible {
  display: flex;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(2px);
  z-index: 99;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

/* ============= Main Content ============= */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Welcome Screen */
.welcome-screen {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.welcome-card {
  text-align: center;
  max-width: 500px;
  padding: 40px;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  animation: slideUpFade 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.welcome-icon {
  color: var(--primary-400);
  margin-bottom: 24px;
  animation: float 3s ease-in-out infinite;
}

.welcome-card h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-800);
  margin-bottom: 12px;
}

.welcome-card p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 24px;
}

.welcome-tips {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  background: var(--primary-50);
  padding: 20px;
  border-radius: var(--radius-md);
}

.tip {
  font-size: 14px;
  color: var(--primary-700);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

kbd {
  padding: 4px 8px;
  font-size: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  color: var(--text-secondary);
  font-family: inherit;
  font-weight: 600;
}

.continue-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-500);
  color: white;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.continue-btn:hover {
  background: var(--primary-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Question Screen */
.question-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-primary);
}

.question-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: var(--topbar-height);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
  flex-shrink: 0;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  /* Add min-width rule to allow layout shrinkage properly */
}

.topbar-left {
  flex: 1;
  /* allow taking up left space */
}

.mobile-menu-btn {
  display: none;
  padding: 8px;
  color: var(--text-secondary);
  margin-left: -8px;
  flex-shrink: 0;
}

.current-subject {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 50px;
}

.current-mode-badge {
  flex-shrink: 0;
  /* Prevent flex box collapsing this element when screen too small */
  font-size: 12px;
  padding: 4px 12px;
  background: var(--primary-100);
  color: var(--primary-700);
  border-radius: var(--radius-full);
  font-weight: 600;
}

.question-counter {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 600;
  background: var(--primary-50);
  padding: 4px 12px;
  border-radius: 20px;
}

.favorite-btn {
  padding: 8px;
  color: var(--text-muted);
  border-radius: 50%;
  transition: all var(--transition-fast);
  background: transparent;
}

.favorite-btn:hover {
  background: transparent;
  color: var(--warning);
  transform: scale(1.1);
}

.favorite-btn.active {
  color: var(--warning);
  background: transparent;
}

.favorite-btn.active svg {
  fill: var(--warning);
}

/* Question Area */
.question-card-wrapper {
  flex: 1;
  overflow-y: auto;
  padding: 32px 24px;
  display: flex;
  justify-content: center;
}

.question-card {
  width: 100%;
  max-width: 760px;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-card);
  margin: auto 0;
  height: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.8);
  animation: fadeScaleIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.question-text {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 32px;
  font-weight: 600;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 2px solid var(--primary-50);
  background: var(--primary-50);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.option-item:hover {
  border-color: var(--primary-200);
  background: var(--primary-100);
  transform: translateY(-1px);
}

.option-item.selected {
  border-color: var(--primary-500);
  background: #f0f7ff;
  box-shadow: var(--shadow-sm);
}

.option-item.correct {
  border-color: var(--success);
  background: var(--success-bg);
}

.option-item.wrong {
  border-color: var(--error);
  background: var(--error-bg);
}

.option-item.disabled {
  pointer-events: none;
}

.option-letter {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--border);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.option-item.selected .option-letter {
  background: var(--primary-500);
  border-color: var(--primary-500);
  color: white;
}

.option-item.correct .option-letter {
  background: var(--success);
  border-color: var(--success);
  color: white;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.option-item.wrong .option-letter {
  background: var(--error);
  border-color: var(--error);
  color: white;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
}

.option-text {
  flex: 1;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  padding-top: 3px;
}

/* Answer Section */
.answer-section {
  margin-top: 32px;
  animation: slideDown 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  background: var(--primary-50);
  padding: 24px;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--primary-500);
}

.answer-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-600);
  margin-bottom: 12px;
}

.correct-answer {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-800);
  margin-bottom: 16px;
}

.answer-analysis {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.answer-analysis:empty::after {
  content: '暂无解析';
  color: var(--text-muted);
  font-style: italic;
}

/* Navigation Bottom Bar */
.question-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: var(--nav-height);
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  flex-shrink: 0;
  padding: 0 24px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
}

.nav-btn:hover:not(:disabled) {
  background: var(--bg-sidebar-hover);
  color: var(--primary-600);
  border-color: var(--primary-200);
}

.nav-btn.primary {
  background: var(--primary-500);
  color: white;
  border-color: var(--primary-500);
  min-width: 140px;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.nav-btn.primary:hover:not(:disabled) {
  background: var(--primary-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Exam Prep */
.exam-prep-screen,
.exam-results {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.exam-prep-card,
.results-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  padding: 48px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-card);
  animation: slideUpFade 0.5s ease-out;
}

.exam-prep-icon {
  color: var(--primary-500);
  margin-bottom: 24px;
}

.exam-prep-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-800);
  margin-bottom: 12px;
}

.exam-prep-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.exam-prep-info {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
}

.prep-info-item {
  background: var(--primary-50);
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  min-width: 120px;
}

.prep-info-value {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-600);
  line-height: 1;
  margin-bottom: 8px;
}

.prep-info-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.exam-draw-btn {
  background: var(--primary-500);
  color: white;
  padding: 16px 32px;
  border-radius: var(--radius-full);
  font-size: 18px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.exam-draw-btn:hover {
  background: var(--primary-600);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Exam Results */
.results-header h2 {
  font-size: 24px;
  color: var(--primary-800);
  margin-bottom: 32px;
  font-weight: 700;
}

.score-circle {
  width: 180px;
  height: 180px;
  position: relative;
  margin: 0 auto 32px;
}

.score-circle svg {
  width: 100%;
  height: 100%;
  transform: rotateX(180deg);
}

.score-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.score-number {
  font-size: 56px;
  font-weight: 800;
  color: var(--primary-600);
  line-height: 1;
}

.score-label {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 600;
  margin-left: 4px;
}

.results-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.detail-item {
  padding: 16px 8px;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
}

.detail-value {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}

.detail-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.text-success {
  color: var(--success);
}

.text-error {
  color: var(--error);
}

.text-primary {
  color: var(--primary-500);
}

.results-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.result-btn {
  padding: 14px 24px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: white;
  transition: all var(--transition-fast);
}

.result-btn:hover {
  background: var(--bg-sidebar-hover);
  color: var(--primary-600);
  border-color: var(--primary-200);
}

.result-btn.primary {
  background: var(--primary-500);
  color: white;
  border-color: var(--primary-500);
  box-shadow: var(--shadow-sm);
}

.result-btn.primary:hover {
  background: var(--primary-600);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Toast */
.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translate(-50%, -20px);
  background: #1e293b;
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Animations */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeScaleIn {
  from {
    opacity: 0;
    transform: scale(0.98) translateY(10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* Responsive */
@media (max-width: 860px) {
  .sidebar {
    position: fixed;
    inset: 0;
    right: auto;
    transform: translateX(-100%);
    z-index: 200;
    border-right: none;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-menu-btn {
    display: flex;
  }

  .floating-sidebar-btn {
    display: none !important;
  }

  .question-card {
    padding: 24px;
  }

  .question-text {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .option-item {
    padding: 12px 16px;
  }

  .nav-btn span {
    display: none;
  }

  .nav-btn.primary span {
    display: inline;
  }

  .nav-btn.primary {
    min-width: auto;
  }
}