/* ============================================
   OmniVQ - Global Styles
   Professional SaaS Landing + Dashboard
   ============================================ */

/* ---- Variables ---- */
:root {
  --primary: #1B2A4A;
  --primary-dark: #142038;
  --primary-light: #2EC4B6;
  --accent: #2EC4B6;
  --accent-dark: #25a99e;
  --success: #00b894;
  --warning: #fdcb6e;
  --danger: #e17055;
  --bg: #f8f9fe;
  --surface: #ffffff;
  --text: #2d3436;
  --text-light: #636e72;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 20px rgba(27,42,74,0.08);
  --shadow-lg: 0 12px 40px rgba(27,42,74,0.12);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --nav-height: 72px;
  --transition: 0.2s ease;
}

/* ---- Dark Mode ---- */
[data-theme="dark"] {
  --bg: #0f1419;
  --surface: #1a2332;
  --text: #e4e6ea;
  --text-light: #9ca3af;
  --border: #2d3748;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow: 0 4px 20px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.4);
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; font-family: inherit; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

/* ---- Typography ---- */
.text-gradient {
  background: linear-gradient(135deg, var(--primary) 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Layout ---- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-dark { background: var(--primary); color: #fff; }
.section-alt { background: #f0f4f8; }
[data-theme="dark"] .section-alt { background: #141c27; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow var(--transition);
}
[data-theme="dark"] .navbar { background: rgba(26,35,50,0.95); }
.navbar.scrolled { box-shadow: var(--shadow); }
.navbar .container {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
}
.nav-logo img { height: 36px; width: 36px; object-fit: contain; }
.nav-logo span:last-child { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}
.nav-links a {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  border-radius: 8px;
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--primary); background: rgba(27,42,74,0.05); }
[data-theme="dark"] .nav-links a:hover { color: var(--accent); background: rgba(46,196,182,0.1); }
.nav-links a.active { color: var(--primary); font-weight: 600; }

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

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-ghost {
  background: transparent;
  color: var(--primary);
}
.btn-ghost:hover { background: rgba(27,42,74,0.06); }
[data-theme="dark"] .btn-ghost { color: var(--accent); }
[data-theme="dark"] .btn-ghost:hover { background: rgba(46,196,182,0.1); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); background: rgba(27,42,74,0.03); }
[data-theme="dark"] .btn-outline { color: var(--accent); border-color: var(--border); }
[data-theme="dark"] .btn-outline:hover { border-color: var(--accent); background: rgba(46,196,182,0.1); }
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(46,196,182,0.3); }
.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1rem;
  border-radius: 10px;
}
.btn-xl {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  border-radius: 12px;
}
.btn-white {
  background: #fff;
  color: var(--primary);
}
.btn-white:hover { background: #f0f4f8; transform: translateY(-1px); }
[data-theme="dark"] .btn-white { background: var(--surface); color: var(--text); }
[data-theme="dark"] .btn-white:hover { background: var(--border); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { opacity: 0.9; }
.btn-google {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
  font-weight: 500;
}
.btn-google:hover { background: var(--bg); border-color: var(--text-light); }
.btn-google img { width: 20px; height: 20px; }
.btn-block { width: 100%; }

/* ---- Mobile Menu ---- */
.nav-toggle {
  display: none;
  background: none;
  padding: 0.5rem;
  color: var(--primary);
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .navbar.open .nav-links,
  .navbar.open .nav-actions {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .navbar.open .nav-links { gap: 0; }
  .navbar.open .nav-links a { padding: 0.75rem 1rem; width: 100%; }
  .navbar.open .nav-actions { padding-top: 0.5rem; gap: 0.5rem; }
  .navbar.open .nav-actions .btn { width: 100%; }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--primary) 0%, #1a3a5c 45%, var(--accent) 100%);
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(46,196,182,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container {
  display: flex;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 1;
}
.hero-content { flex: 1; color: #fff; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(46,196,182,0.15);
  border: 1px solid rgba(46,196,182,0.3);
  color: var(--accent);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 1.25rem;
}
.hero h1 .highlight { color: var(--accent); }
.hero p {
  font-size: 1.15rem;
  line-height: 1.7;
  opacity: 0.85;
  max-width: 520px;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-stat-value { font-size: 1.8rem; font-weight: 800; color: var(--accent); }
.hero-stat-label { font-size: 0.8rem; opacity: 0.6; margin-top: 0.15rem; }

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-mockup {
  width: 340px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 2rem;
  color: #fff;
  text-align: center;
}
.hero-mockup-header { font-size: 0.75rem; opacity: 0.6; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; }
.hero-mockup-number { font-size: 4.5rem; font-weight: 800; letter-spacing: -3px; color: var(--accent); line-height: 1; }
.hero-mockup-label { font-size: 0.85rem; opacity: 0.7; margin-top: 0.75rem; }
.hero-mockup-bar {
  margin-top: 1.5rem;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
}
.hero-mockup-bar-fill { height: 100%; width: 35%; background: var(--accent); border-radius: 3px; }

@media (max-width: 900px) {
  .hero .container { flex-direction: column; text-align: center; gap: 3rem; padding: 3rem 1.5rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.feature-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(46,196,182,0.3); }
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}
.feature-icon.teal { background: rgba(46,196,182,0.12); color: var(--accent); }
.feature-icon.navy { background: rgba(27,42,74,0.1); color: var(--primary); }
.feature-icon.green { background: rgba(0,184,148,0.1); color: var(--success); }
.feature-icon.orange { background: rgba(225,112,85,0.1); color: var(--danger); }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--primary); }
.feature-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }

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

/* ============================================
   HOW IT WORKS
   ============================================ */
.steps {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  z-index: 0;
}
.step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 16px rgba(27,42,74,0.2);
}
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.step p { font-size: 0.85rem; color: var(--text-light); }
@media (max-width: 768px) {
  .steps { flex-direction: column; gap: 1.5rem; }
  .steps::before { display: none; }
}

/* ============================================
   PRICING
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  align-items: start;
}
.pricing-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--border);
  text-align: center;
  position: relative;
  transition: all var(--transition);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.popular {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(46,196,182,0.15);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 0.25rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pricing-name { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; }
.pricing-price { font-size: 2.8rem; font-weight: 800; color: var(--primary); line-height: 1; margin: 1rem 0 0.25rem; }
.pricing-price span { font-size: 0.9rem; font-weight: 500; color: var(--text-light); }
.pricing-desc { font-size: 0.85rem; color: var(--text-light); margin-bottom: 1.5rem; }
.pricing-features { text-align: left; margin-bottom: 2rem; }
.pricing-features li {
  padding: 0.4rem 0;
  font-size: 0.88rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pricing-features li::before { content: '✓'; color: var(--accent); font-weight: 700; font-size: 0.9rem; }
@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 1rem; }
.section-header h2 { font-size: 2.2rem; font-weight: 800; color: var(--primary); letter-spacing: -1px; margin-bottom: 0.75rem; }
.section-header p { font-size: 1.05rem; color: var(--text-light); line-height: 1.6; }
.section-dark .section-header h2 { color: #fff; }
.section-dark .section-header p { color: rgba(255,255,255,0.7); }

/* ============================================
   HELP CENTER / ACCORDION
   ============================================ */
.help-accordion {
  max-width: 800px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.accordion-item {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.accordion-item:hover { box-shadow: var(--shadow-sm); }
.accordion-item.open { box-shadow: var(--shadow); border-color: rgba(46,196,182,0.3); }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem;
  background: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  text-align: left;
  transition: background var(--transition);
}
.accordion-trigger:hover { background: var(--bg); }
.accordion-icon { font-size: 1.2rem; flex-shrink: 0; }
.accordion-trigger span:nth-child(2) { flex: 1; }
.accordion-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-light);
  transition: transform 0.3s ease;
}
.accordion-item.open .accordion-chevron { transform: rotate(180deg); }
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.accordion-body {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text);
}
.accordion-body table {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.accordion-body table th,
.accordion-body table td {
  border-bottom: 1px solid var(--border);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #1a3a5c 50%, var(--accent) 100%);
  padding: 5rem 0;
  text-align: center;
  color: #fff;
}
.cta-section h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 1rem; }
.cta-section p { font-size: 1.05rem; opacity: 0.8; max-width: 500px; margin: 0 auto 2rem; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.6);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand img { height: 32px; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.6; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; }
.footer-col a { display: block; font-size: 0.85rem; padding: 0.25rem 0; transition: color var(--transition); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { text-align: center; padding-top: 1.5rem; font-size: 0.8rem; }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   AUTH PAGE
   ============================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--primary) 0%, #1a3a5c 50%, var(--accent) 100%);
  padding: 2rem;
}
.auth-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 440px;
  padding: 2.5rem;
}
.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}
.auth-logo img { height: 48px; margin-bottom: 0.5rem; }
.auth-logo h1 { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.auth-logo p { font-size: 0.85rem; color: var(--text-light); margin-top: 0.25rem; }
.auth-tabs {
  display: flex;
  background: var(--bg);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 1.5rem;
}
.auth-tab {
  flex: 1;
  padding: 0.6rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  background: transparent;
  color: var(--text-light);
  transition: all var(--transition);
}
.auth-tab.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
[data-theme="dark"] .auth-tab.active { color: var(--accent); }
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.form-group input {
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color var(--transition);
  outline: none;
  background: var(--surface);
  color: var(--text);
}
.form-group input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46,196,182,0.1); }
.form-group input.error { border-color: var(--danger); }
.form-error { color: var(--danger); font-size: 0.8rem; margin-top: 0.25rem; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.5rem 0;
  color: var(--text-light);
  font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-footer { text-align: center; font-size: 0.85rem; color: var(--text-light); margin-top: 1rem; }
.auth-footer a { color: var(--accent); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }
.auth-alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
}
.auth-alert.error { background: rgba(225,112,85,0.1); color: var(--danger); border: 1px solid rgba(225,112,85,0.2); }
.auth-alert.success { background: rgba(0,184,148,0.1); color: var(--success); border: 1px solid rgba(0,184,148,0.2); }

/* ============================================
   DASHBOARD
   ============================================ */
.dash-layout {
  display: flex;
  min-height: 100vh;
  padding-top: var(--nav-height);
}
.dash-sidebar {
  width: 260px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
  flex-shrink: 0;
  position: sticky;
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}
.dash-sidebar-section { padding: 0 1rem; margin-bottom: 1.5rem; }
.dash-sidebar-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  padding: 0 0.75rem;
  margin-bottom: 0.5rem;
}
.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  transition: all var(--transition);
  width: 100%;
  background: none;
  text-align: left;
}
.dash-nav-item:hover { background: var(--bg); color: var(--text); }
[data-theme="dark"] .dash-header h1 { color: var(--text); }
[data-theme="dark"] .dash-stat-value { color: var(--accent); }
[data-theme="dark"] .dept-name { color: var(--text); }
[data-theme="dark"] .dept-queue-number { color: var(--accent); }
[data-theme="dark"] .dept-btn { background: var(--surface); color: var(--text-light); border-color: var(--border); }
[data-theme="dark"] .section-header h2 { color: var(--text); }
[data-theme="dark"] .feature-card h3 { color: var(--text); }
[data-theme="dark"] .pricing-name { color: var(--text); }
[data-theme="dark"] .pricing-price { color: var(--text); }
[data-theme="dark"] .accordion-trigger { color: var(--text); }
[data-theme="dark"] .accordion-trigger:hover { background: var(--surface); }
[data-theme="dark"] .auth-logo h1 { color: var(--accent); }
.dash-nav-item.active { background: rgba(46,196,182,0.1); color: var(--accent); font-weight: 600; border-left: 3px solid var(--accent); margin-left: -3px; }
.dash-nav-item .icon { font-size: 1.1rem; width: 20px; text-align: center; }

.dash-main { flex: 1; padding: 2rem; max-width: 960px; }
.dash-header { margin-bottom: 2rem; }
.dash-header h1 { font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.dash-header p { font-size: 0.9rem; color: var(--text-light); margin-top: 0.25rem; }

/* Dashboard Cards */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.dash-stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.dash-stat-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-light); }
.dash-stat-value { font-size: 2rem; font-weight: 800; color: var(--primary); margin-top: 0.25rem; }
.dash-stat-change { font-size: 0.8rem; color: var(--success); font-weight: 600; }

/* Department Cards */
.dept-grid { display: flex; flex-direction: column; gap: 1rem; }
.dept-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all var(--transition);
}
.dept-card:hover { box-shadow: var(--shadow); }
.dept-prefix {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.dept-info { flex: 1; }
.dept-name { font-weight: 700; font-size: 1rem; }
.dept-meta { font-size: 0.8rem; color: var(--text-light); margin-top: 0.15rem; }
.dept-queue { text-align: right; }
.dept-queue-number { font-size: 1.8rem; font-weight: 800; color: var(--primary); line-height: 1; }
.dept-queue-label { font-size: 0.7rem; color: var(--text-light); }
.dept-actions { display: flex; gap: 0.5rem; }
.dept-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: var(--bg);
  color: var(--text-light);
  transition: all var(--transition);
  border: 1px solid var(--border);
}
.dept-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.dept-btn.advance:hover { background: var(--accent); border-color: var(--accent); }
.dept-btn.danger:hover { background: var(--danger); border-color: var(--danger); }

/* QR Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(4px);
}
.modal {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 440px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.modal h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.modal p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 1.5rem; }

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.badge-active { background: rgba(0,184,148,0.1); color: var(--success); }
.badge-paused { background: rgba(253,203,110,0.15); color: #e67e22; }
.badge-closed { background: rgba(225,112,85,0.1); color: var(--danger); }
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ---- Modern Toggle Switch ---- */
.switch-row { display:flex;align-items:center;justify-content:space-between;padding:0.55rem 0.75rem;border-radius:10px;background:#f8f9fe;margin-bottom:0.4rem;transition:background 0.15s; }
.switch-row:hover { background:#eef1f6; }
.switch-row .switch-label { font-size:0.85rem;font-weight:500;color:var(--text); }
.switch-row .switch-sub { font-size:0.7rem;color:var(--text-light);margin-top:1px; }
.toggle-switch { position:relative;width:44px;height:24px;flex-shrink:0; }
.toggle-switch input { opacity:0;width:0;height:0; }
.toggle-switch .slider { position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background:#cbd5e1;border-radius:24px;transition:0.25s; }
.toggle-switch .slider::before { content:'';position:absolute;height:18px;width:18px;left:3px;bottom:3px;background:#fff;border-radius:50%;transition:0.25s;box-shadow:0 1px 3px rgba(0,0,0,0.15); }
.toggle-switch input:checked + .slider { background:var(--accent); }
.toggle-switch input:checked + .slider::before { transform:translateX(20px); }

/* ---- Language Toggle ---- */
.lang-toggle { display:inline-flex;align-items:center;gap:6px;user-select:none; }
.lang-toggle .lang-opt { font-size:0.72rem;font-weight:700;padding:0.2rem 0.55rem;border-radius:16px;transition:all 0.2s;color:rgba(255,255,255,0.6);letter-spacing:0.5px;display:none; }
.lang-toggle .lang-opt.active { display:none; }
.lang-toggle .lang-flag { width:32px;height:32px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;font-size:18px;transition:all 0.2s;border:2px solid transparent;background:rgba(255,255,255,0.15); }
.lang-toggle .lang-flag.active { border-color:#2EC4B6;background:#fff;box-shadow:0 2px 8px rgba(46,196,182,0.3); }
.lang-toggle .lang-flag:hover { transform:scale(1.1); }
/* Dashboard variant */
.lang-toggle-dash .lang-flag { background:rgba(0,0,0,0.05); }
.lang-toggle-dash .lang-flag.active { background:#fff;border-color:#2EC4B6; }

/* ---- Dark Mode Toggle Button ---- */
.dark-mode-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: none;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.15s;
}
.dark-mode-toggle:hover { background: var(--bg); color: var(--text); }
.dark-mode-toggle .dm-icon { font-size: 1.1rem; }

/* Dark mode overrides for switch-row */
[data-theme="dark"] .switch-row { background: #1a2332; }
[data-theme="dark"] .switch-row:hover { background: #243044; }
[data-theme="dark"] .toggle-switch .slider { background: #4a5568; }

/* Dark mode overrides for lang-toggle */
[data-theme="dark"] .lang-toggle-dash .lang-flag { background: rgba(255,255,255,0.1); }
[data-theme="dark"] .lang-toggle-dash .lang-flag.active { background: var(--surface); }

/* Utilities */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }

@media (max-width: 768px) {
  .dash-sidebar { display: none; }
  .dash-main { padding: 1rem; }
}
