/* ==========================================================================
   VerbList Pro - Applied CORE_Template Design System & Aesthetics
   Andymcdreamy.com | Corporate Training & Digital Solutions
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;1,6..72,400&family=JetBrains+Mono:wght@400;500&family=Outfit:wght@400;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* CORE_Template Color Palette - Dark Theme (Default) */
  --bg-primary: #0b0f19;
  --bg-secondary: #151d2a;
  --bg-tertiary: #1e293b;
  --bg-card: rgba(30, 41, 59, 0.85);
  --bg-card-hover: rgba(30, 41, 59, 1);
  --glass-border: #334155;
  --glass-border-glow: rgba(38, 166, 154, 0.35);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --accent-primary: #26a69a; /* CORE Teal Accent */
  --accent-secondary: #4db6ac;
  --accent-cyan: #22d3ee;
  --accent-emerald: #4ade80;
  --accent-amber: #fbbf24;
  --accent-rose: #fb7185;

  --gradient-primary: linear-gradient(135deg, #008B91 0%, #26a69a 50%, #06b6d4 100%);
  --gradient-glow: radial-gradient(circle, rgba(38, 166, 154, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
  --gradient-cyan: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --gradient-emerald: linear-gradient(135deg, #10b981 0%, #059669 100%);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-neon: 0 0 20px rgba(38, 166, 154, 0.3);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --sidebar-width: 280px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --font-body: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-code: 'JetBrains Mono', monospace;
}

[data-theme="light"] {
  /* CORE_Template Light Theme Overrides */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --glass-border: #cbd5e1;
  --glass-border-glow: rgba(0, 139, 145, 0.3);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;

  --accent-primary: #008B91;
  --accent-secondary: #006e73;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.12);
  --shadow-neon: 0 0 15px rgba(0, 139, 145, 0.2);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

/* App Container Layout */
#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Top Navigation Bar */
.top-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 72px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
}

.logo-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(38, 166, 154, 0.15);
  color: var(--accent-primary);
  border: 1px solid var(--glass-border);
}

/* Search and Actions Bar */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  max-width: 650px;
  margin: 0 24px;
}

.search-box {
  position: relative;
  width: 100%;
}

.search-box input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 44px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  font-size: 14px;
  outline: none;
  transition: var(--transition-fast);
}

.search-box input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(38, 166, 154, 0.15);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
  pointer-events: none;
}

.clear-search-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  display: none;
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: var(--transition-fast);
  position: relative;
}

.btn-icon:hover {
  background: var(--bg-secondary);
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
}

.btn-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-rose);
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.btn-header-cta {
  height: 42px;
  padding: 0 18px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: white;
  border: none;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-neon);
  transition: var(--transition-fast);
}

.btn-header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(38, 166, 154, 0.5);
}

.select-control {
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  border-radius: var(--radius-md);
  padding: 0 10px;
  outline: none;
  cursor: pointer;
}

/* Main Content Wrapper */
.main-wrapper {
  display: flex;
  flex: 1;
}

/* Sidebar Navigation */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--glass-border);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 90;
  transition: var(--transition-normal);
}

.sidebar-header {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 8px;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(38, 166, 154, 0.25));
}

.sidebar-title-group {
  display: flex;
  flex-direction: column;
}

.sidebar-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.sidebar-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
  line-height: 1.35;
}

/* Sidebar Interactive Controls Block */
.sidebar-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  padding-bottom: 16px;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  margin-top: 8px;
  margin-bottom: 8px;
}

.sidebar-controls .search-box input {
  height: 40px;
  font-size: 13px;
  padding: 0 14px 0 38px;
}

.sidebar-controls .search-icon {
  left: 12px;
  font-size: 14px;
}

.sidebar-voice-select {
  width: 100%;
  height: 38px;
  font-size: 12px;
  border-radius: var(--radius-md);
}

.sidebar-ctas {
  display: flex;
  gap: 8px;
}

.sidebar-ctas .btn-header-cta {
  flex: 1;
  justify-content: center;
  height: 38px;
  padding: 0 10px;
  font-size: 13px;
  border-radius: var(--radius-md);
}

.btn-sidebar-fav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
}

.btn-sidebar-fav:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.btn-sidebar-fav .btn-badge {
  position: static;
  background: var(--accent-rose);
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.sidebar-group-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-dim);
  letter-spacing: 1.2px;
  margin-bottom: 10px;
  padding-left: 4px;
  text-transform: uppercase;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 13.5px;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.nav-item a:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.nav-item.active a {
  color: #ffffff;
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 4px 14px rgba(38, 166, 154, 0.35);
}

/* Sidebar Footer Action Buttons */
.sidebar-footer {
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.theme-toggle-btn, .print-btn, .cv-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cv-btn {
  background-color: rgba(38, 166, 154, 0.15);
  color: var(--accent-primary);
  border-color: rgba(38, 166, 154, 0.4);
  font-weight: 700;
}

.theme-toggle-btn:hover, .print-btn:hover, .cv-btn:hover {
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

.nav-icon {
  font-size: 16px;
}

.sidebar-backdrop {
  display: none;
}

/* Main Dynamic Content Container */
.content-container {
  flex: 1;
  padding: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Section Hero */
.section-hero {
  margin-bottom: 32px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
}

.section-hero h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.section-hero p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 800px;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: var(--transition-fast);
}

.card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.card-title {
  font-size: 20px;
}

.example-box {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--bg-tertiary);
  border-left: 3px solid var(--accent-primary);
  border-radius: var(--radius-sm);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Tables */
.table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.custom-table th {
  padding: 16px 20px;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 1px solid var(--glass-border);
}

.custom-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--glass-border);
}

.custom-table tr:hover {
  background: var(--bg-card-hover);
}

/* Action Buttons & Badges */
.action-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.action-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.action-btn.active-star {
  color: #f59e0b;
  border-color: #f59e0b;
}

.btn-secondary {
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--accent-primary);
}

.verb-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  background: rgba(38, 166, 154, 0.12);
  color: var(--accent-primary);
  border: 1px solid rgba(38, 166, 154, 0.25);
  transition: var(--transition-fast);
}

.verb-badge.v2,
.verb-badge.v3 {
  background: rgba(38, 166, 154, 0.12);
  color: var(--accent-primary);
  border: 1px solid rgba(38, 166, 154, 0.25);
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(38, 166, 154, 0.15);
  color: var(--accent-primary);
  border: 1px solid var(--glass-border);
}
.tag.cyan { background: rgba(6, 182, 212, 0.15); color: var(--accent-cyan); }
.tag.emerald { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }

/* Filter Toolbar */
.filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 20px;
}

.alphabet-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.letter-btn {
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--glass-border);
  background: var(--bg-tertiary);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.letter-btn.active {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

/* OSASCOMP Widget */
.osascomp-widget {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.osascomp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.osascomp-item {
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
}

.osascomp-letter {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-primary);
}

.osascomp-name {
  font-size: 12px;
  font-weight: 700;
  margin: 2px 0;
}

.osascomp-desc {
  font-size: 11px;
  color: var(--text-muted);
}

.order-builder-box {
  background: var(--bg-tertiary);
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--accent-primary);
  margin-top: 12px;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.close-modal-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
}

/* Flashcard 3D */
.flashcard-wrapper {
  perspective: 1000px;
  height: 220px;
  margin: 24px 0;
  cursor: pointer;
}

.flashcard-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.flashcard-wrapper.flipped .flashcard-inner {
  transform: rotateY(180deg);
}

.flashcard-front, .flashcard-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius-md);
  border: 2px solid var(--accent-primary);
  background: var(--bg-tertiary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

.flashcard-back {
  transform: rotateY(180deg);
  background: rgba(38, 166, 154, 0.15);
}

.flashcard-word {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-primary);
}

.flashcard-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}

.flashcard-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Quiz Option Buttons */
.quiz-option {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  margin-bottom: 10px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.quiz-option:hover {
  border-color: var(--accent-primary);
  background: var(--bg-card);
}

.quiz-option.correct {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
}

.quiz-option.incorrect {
  background: rgba(244, 63, 94, 0.2);
  border-color: var(--accent-rose);
  color: var(--accent-rose);
}

/* Footer */
footer {
  padding: 24px;
  text-align: center;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 13px;
  background: var(--bg-secondary);
}

/* Mobile Bottom Navigation Bar */
/* ==========================================================================
   Mobile Header, Carousel Menu & Responsive Drawer (CORE_Template Style)
   ========================================================================== */

.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--glass-border);
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.mobile-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
  font-family: var(--font-heading);
}

.mobile-brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(38, 166, 154, 0.25));
}

.mobile-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-search-box {
  width: 130px;
}

.mobile-search-box input {
  height: 36px;
  font-size: 13px;
  padding: 0 24px 0 32px;
}

.mobile-search-box .search-icon {
  left: 10px;
  font-size: 13px;
}

.mobile-search-box .clear-search-btn {
  right: 8px;
  font-size: 12px;
}

@media (min-width: 480px) {
  .mobile-search-box {
    width: 200px;
  }
}

.mobile-toggle-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.mobile-toggle-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* Mobile Carousel Navigation Menu */
.mobile-carousel-wrapper {
  display: none;
  position: sticky;
  top: 60px;
  z-index: 900;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--glass-border);
  padding: 8px 12px;
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.carousel-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.carousel-nav::-webkit-scrollbar {
  display: none;
}

.pill-item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background-color: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.pill-item:hover {
  color: var(--text-main);
  border-color: var(--glass-border-glow);
}

.pill-item.active {
  background-color: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: 0 2px 8px rgba(38, 166, 154, 0.4);
}

/* Drawer Close Button */
.drawer-close-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color var(--transition-fast);
}

.drawer-close-btn:hover {
  color: var(--text-main);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .mobile-header,
  .mobile-carousel-wrapper {
    display: flex;
  }

  .drawer-close-btn {
    display: block;
  }

  .main-wrapper {
    margin-left: 0;
    padding-top: 60px;
  }

  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    height: 100vh;
    transform: translateX(-100%);
    z-index: 1100;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    transition: transform var(--transition-normal);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1050;
    backdrop-filter: blur(4px);
  }

  .sidebar-backdrop.active {
    display: block;
  }

  .content-container {
    margin-left: 0;
    padding: 20px 16px 60px 16px;
  }

  .table-responsive {
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 16px 0;
  }

  .filter-pills {
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .filter-pills::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 768px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .verb-grid,
  .grammar-grid {
    grid-template-columns: 1fr;
  }

  .verb-card,
  .grammar-card {
    padding: 16px;
  }

  .verb-header {
    flex-wrap: wrap;
    gap: 8px;
  }

  .audio-btn {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 480px) {
  .mobile-brand span {
    font-size: 0.85rem;
  }

  .content-container {
    padding: 14px 12px 50px 12px;
  }

  .search-box {
    padding: 8px 12px;
  }

  .modal-card {
    width: 95%;
    padding: 16px;
  }
}

/* ==========================================================================
   Dashboard Introduction Reorganization Styles (Lighter Teal Theme)
   ========================================================================== */
.intro-hero-card {
  background: linear-gradient(135deg, rgba(38, 166, 154, 0.07) 0%, rgba(6, 182, 212, 0.04) 100%), var(--bg-card);
  border: 1px solid rgba(38, 166, 154, 0.25);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.intro-hero-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: var(--gradient-glow);
  pointer-events: none;
  border-radius: 50%;
}

.intro-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.intro-stat-card {
  background: var(--bg-card);
  border: 1px solid rgba(38, 166, 154, 0.2);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.intro-stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
}

.intro-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.intro-module-card {
  background: var(--bg-card);
  border: 1px solid rgba(38, 166, 154, 0.2);
  border-radius: var(--radius-md);
  padding: 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.intro-module-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
}

.intro-module-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  transition: background var(--transition-fast);
}

.intro-module-card:hover::after {
  background: var(--gradient-primary);
}

.intro-suite-card {
  background: linear-gradient(135deg, rgba(38, 166, 154, 0.08) 0%, rgba(34, 211, 238, 0.05) 100%), var(--bg-card);
  border: 1px solid rgba(38, 166, 154, 0.3);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.intro-suite-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.workflow-step {
  background: var(--bg-card);
  border: 1px solid rgba(38, 166, 154, 0.2);
  border-radius: var(--radius-md);
  padding: 18px;
  position: relative;
}

.step-num {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent-primary);
  background: rgba(38, 166, 154, 0.15);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 10px;
}

