@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* ═══════════════════════════════════════════════════════════════════════════
   DESIGN SYSTEM — LV Manager Professional
   Palette: Slate Navy · Cobalt Blue · Precision White
════════════════════════════════════════════════════════════════════════════ */
:root {
  /* ── Brand Blues ──────────────────────────────────────── */
  --cobalt-700:  #004aad;
  --cobalt-600:  #0057cc;
  --cobalt-500:  #0066ee;
  --cobalt-400:  #338ef7;
  --cobalt-300:  #76b3fb;
  --cobalt-200:  #b3d4fd;
  --cobalt-100:  #dceffe;
  --cobalt-50:   #eef6ff;

  /* ── Navy (Sidebar) ───────────────────────────────────── */
  --navy-950:    #01090f;
  --navy-900:    #050f1c;
  --navy-850:    #0a1a2e;
  --navy-800:    #0f2440;
  --navy-700:    #163560;

  /* ── Neutrals ─────────────────────────────────────────── */
  --slate-900:   #0d1b2a;
  --slate-800:   #1c2d3f;
  --slate-700:   #2d4157;
  --slate-600:   #3e5570;
  --slate-500:   #536884;
  --slate-400:   #7690a8;
  --slate-300:   #a4b8cb;
  --slate-200:   #cddae6;
  --slate-100:   #e6edf4;
  --slate-50:    #f3f7fb;
  --white:       #ffffff;

  /* ── Status ───────────────────────────────────────────── */
  --green-600:   #16a34a;
  --green-500:   #22c55e;
  --green-100:   #dcfce7;
  --red-600:     #dc2626;
  --red-500:     #ef4444;
  --red-100:     #fee2e2;
  --amber-500:   #f59e0b;
  --amber-100:   #fef3c7;

  /* ── Legacy compatibility (used inline in app.js) ─────── */
  --gray-400:    #94a3b8;
  --gray-500:    #64748b;

  /* ── Surfaces ─────────────────────────────────────────── */
  --bg:          #f2f6fc;
  --surface:     #ffffff;
  --border:      #dde8f2;
  --border-mid:  #c8d9ec;
  --border-dark: #b0c8e0;

  /* ── Text ─────────────────────────────────────────────── */
  --text-h:      #0d1b2a;
  --text-body:   #243447;
  --text-2:      #3e5570;
  --text-3:      #7690a8;
  --text-inv:    #ffffff;

  /* ── Layout ───────────────────────────────────────────── */
  --sidebar-w:   260px;
  --topbar-h:    58px;
  --r-xs:        4px;
  --r-sm:        6px;
  --r:           10px;
  --r-lg:        14px;
  --r-xl:        20px;

  /* ── Elevation ────────────────────────────────────────── */
  --e0: 0 1px 2px rgba(13,27,42,.04);
  --e1: 0 1px 3px rgba(13,27,42,.06), 0 2px 6px rgba(13,27,42,.04);
  --e2: 0 2px 6px rgba(13,27,42,.07), 0 6px 18px rgba(13,27,42,.05);
  --e3: 0 6px 16px rgba(13,27,42,.09), 0 16px 40px rgba(13,27,42,.07);
  --e4: 0 16px 48px rgba(13,27,42,.14), 0 6px 18px rgba(13,27,42,.08);
  --cobalt-glow: 0 4px 18px rgba(0,102,238,.28);

  /* ── Motion ───────────────────────────────────────────── */
  --t-fast: 120ms cubic-bezier(.4,0,.2,1);
  --t:      180ms cubic-bezier(.4,0,.2,1);
  --t-slow: 300ms cubic-bezier(.4,0,.2,1);
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Figtree', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4 { color: var(--text-h); font-weight: 700; }
a { color: var(--cobalt-500); text-decoration: none; }
a:hover { color: var(--cobalt-400); text-decoration: underline; }
button, input, select, textarea { font-family: inherit; font-size: 14px; }
button { cursor: pointer; }

/* ═══════════════════════════════════════════════════════════════════════════
   LOGIN
════════════════════════════════════════════════════════════════════════════ */
#login-screen {
  min-height: 100vh;
  display: flex;
  position: relative;
  overflow: hidden;
}

/* Left panel — decorative */
#login-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, var(--navy-900) 0%, #0a2a50 55%, #0f3570 100%);
  z-index: 0;
  pointer-events: none;
}

/* Blueprint grid */
#login-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0,102,238,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,102,238,.07) 1px, transparent 1px),
    linear-gradient(rgba(0,102,238,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,102,238,.03) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 20px 20px, 20px 20px;
  z-index: 0;
  animation: gridDrift 40s linear infinite;
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0, 0 0, 0 0; }
  to   { background-position: 80px 80px, 80px 80px, 20px 20px, 20px 20px; }
}

/* Glow orbs */
.login-orb-1,
.login-orb-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  pointer-events: none;
}

.login-card-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 24px;
}

.login-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 48px 52px;
  width: 440px;
  box-shadow: var(--e4);
  animation: riseIn .45s cubic-bezier(.22,1,.36,1) both;
  position: relative;
  z-index: 2;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(28px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.login-logo {
  text-align: center;
  margin-bottom: 40px;
}

.login-logo-mark {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.login-logo-mark img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.login-logo h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.4px;
  color: var(--text-h);
}

.login-logo p {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 5px;
  font-weight: 400;
}

.login-divider {
  height: 1px;
  background: var(--border);
  margin: 0 -52px 36px;
}

#login-form .form-group:last-of-type { margin-bottom: 4px; }

/* ═══════════════════════════════════════════════════════════════════════════
   APP SHELL
════════════════════════════════════════════════════════════════════════════ */
#app { display: flex; min-height: 100vh; }

/* ═══════════════════════════════════════════════════════════════════════════
   SIDEBAR
════════════════════════════════════════════════════════════════════════════ */
.sidebar {
  width: var(--sidebar-w);
  background: var(--navy-900);
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;

  /* Subtle right-edge highlight */
  box-shadow: inset -1px 0 0 rgba(255,255,255,.04), 2px 0 24px rgba(0,0,0,.25);
}

/* Accent gradient overlay */
.sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg,
    rgba(0,102,238,.06) 0%,
    transparent 50%,
    rgba(0,0,0,.06) 100%
  );
  pointer-events: none;
}

/* Logo area */
.sidebar-logo {
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.sidebar-logo-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 2px;
}

.sidebar-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Fallback SVG icon */
.sidebar-logo-icon svg { width: 20px; height: 20px; color: var(--cobalt-600); }

.sidebar-logo-text h2 {
  color: var(--white);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -.1px;
  line-height: 1.2;
}

.sidebar-logo-text p {
  color: rgba(164,184,203,.6);
  font-size: 10.5px;
  margin-top: 2px;
  font-weight: 400;
}

/* Legacy selectors (used in index.html before update) */
.sidebar-logo h2 { color: var(--white); font-size: 14.5px; font-weight: 700; }
.sidebar-logo p  { color: rgba(164,184,203,.6); font-size: 10.5px; margin-top: 2px; }

/* ── Module Switcher ──────────────────────────────────────────────────────── */
.module-switcher {
  padding: 10px 12px 6px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}

.module-dropdown {
  position: relative;
}

.module-dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(0,0,0,.25);
  color: #fff;
  font-family: 'Figtree', system-ui, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.module-dropdown-btn:hover {
  background: rgba(0,0,0,.35);
  border-color: rgba(255,255,255,.2);
}
.module-dropdown-btn svg {
  opacity: .5;
  transition: transform .2s;
  flex-shrink: 0;
}
.module-dropdown.open .module-dropdown-btn svg {
  transform: rotate(180deg);
}

.module-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--sidebar-bg, #1a2332);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 4px;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.module-dropdown.open .module-dropdown-menu {
  display: block;
}

.module-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 6px;
  color: rgba(255,255,255,.6);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .12s;
}
.module-dropdown-item:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}
.module-dropdown-item.active {
  background: rgba(26,86,219,.2);
  color: var(--cobalt-400, #60a5fa);
  font-weight: 600;
}
.module-dropdown-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Nav */
.sidebar-nav { flex: 1; padding: 16px 10px 8px; }

.nav-section {
  padding: 10px 8px 5px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(118,144,168,.5);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8.5px 11px;
  color: rgba(255,255,255,.52);
  cursor: pointer;
  border-radius: var(--r-sm);
  margin: 1px 0;
  font-size: 13.5px;
  font-weight: 500;
  position: relative;
  transition: color var(--t), background var(--t);
  user-select: none;
}

.nav-item::after {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  background: var(--cobalt-400);
  border-radius: 0 3px 3px 0;
  opacity: 0;
  transform: scaleY(.5);
  transition: opacity var(--t), transform var(--t);
}

.nav-item:hover {
  background: rgba(255,255,255,.055);
  color: rgba(255,255,255,.82);
}

.nav-item.active {
  background: rgba(0,102,238,.18);
  color: var(--white);
  font-weight: 600;
}

.nav-item.active::after {
  opacity: 1;
  transform: scaleY(1);
}

.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; opacity: .9; }

/* Footer */
.sidebar-footer {
  flex-shrink: 0;
  padding: 12px 12px 16px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  margin-bottom: 10px;
}

.user-avatar {
  width: 31px; height: 31px;
  background: linear-gradient(135deg, var(--cobalt-600), var(--navy-700));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 700; font-size: 11.5px;
  flex-shrink: 0;
  border: 1.5px solid rgba(51,142,247,.35);
}

.user-name  { color: rgba(255,255,255,.88); font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.user-role  { color: rgba(164,184,203,.55); font-size: 10.5px; }

.btn-darkmode-sidebar {
  width: 100%;
  padding: 7.5px 12px;
  background: rgba(0,102,238,.12);
  border: 1px solid rgba(0,102,238,.25);
  border-radius: var(--r-sm);
  color: rgba(255,255,255,.7);
  font-size: 12.5px;
  font-weight: 500;
  transition: all var(--t);
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-bottom: 6px;
  cursor: pointer;
}
.btn-darkmode-sidebar svg { width: 13px; height: 13px; flex-shrink: 0; }
.btn-darkmode-sidebar:hover {
  background: rgba(0,102,238,.22);
  border-color: rgba(51,142,247,.45);
  color: rgba(255,255,255,.9);
}

.btn-logout {
  width: 100%;
  padding: 7.5px 12px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--r-sm);
  color: rgba(255,255,255,.4);
  font-size: 12.5px;
  font-weight: 500;
  transition: all var(--t);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}

.btn-logout svg { width: 13px; height: 13px; }

.btn-logout:hover {
  background: rgba(239,68,68,.12);
  border-color: rgba(239,68,68,.35);
  color: #fca5a5;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MAIN AREA
════════════════════════════════════════════════════════════════════════════ */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-bar {
  height: var(--topbar-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--e0);
}

.top-bar h1 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.25px;
  color: var(--text-h);
}

.page-content {
  padding: 26px 28px;
  flex: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CARDS
════════════════════════════════════════════════════════════════════════════ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--e1);
}

.card-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
}

.card-header h2 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-h);
  letter-spacing: -.05px;
}

.card-body { padding: 20px; }

/* ═══════════════════════════════════════════════════════════════════════════
   STATS GRID
════════════════════════════════════════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--e1);
  position: relative;
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
  cursor: default;
}

/* Top accent bar */
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cobalt-500), var(--cobalt-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow);
}

.stat-card:hover { transform: translateY(-2px); box-shadow: var(--e2); }
.stat-card:hover::before { transform: scaleX(1); }

.stat-card .stat-icon {
  width: 40px; height: 40px;
  background: var(--cobalt-50);
  border: 1px solid var(--cobalt-100);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  color: var(--cobalt-600);
}

.stat-card .stat-icon svg { width: 19px; height: 19px; }

.stat-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-h);
  letter-spacing: -1.5px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 5px;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7.5px 15px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 13px;
  border: none;
  white-space: nowrap;
  transition: all var(--t-fast);
  cursor: pointer;
  line-height: 1.4;
  letter-spacing: .01em;
  outline: none;
}

.btn:focus-visible { box-shadow: 0 0 0 3px var(--cobalt-200); }
.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--cobalt-600);
  color: var(--text-inv);
  box-shadow: 0 1px 3px rgba(0,87,204,.3), 0 4px 10px rgba(0,87,204,.2);
}
.btn-primary:hover {
  background: var(--cobalt-700);
  box-shadow: 0 2px 6px rgba(0,74,173,.35), 0 6px 16px rgba(0,74,173,.22);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--white);
  color: var(--text-2);
  border: 1px solid var(--border-mid);
  box-shadow: var(--e0);
}
.btn-secondary:hover {
  background: var(--cobalt-50);
  border-color: var(--cobalt-200);
  color: var(--cobalt-700);
}

.btn-danger {
  background: var(--red-600);
  color: var(--text-inv);
  box-shadow: 0 1px 3px rgba(220,38,38,.3);
}
.btn-danger:hover {
  background: #b91c1c;
  box-shadow: 0 2px 8px rgba(185,28,28,.35);
  transform: translateY(-1px);
}

.btn-success {
  background: var(--green-600);
  color: var(--text-inv);
  box-shadow: 0 1px 3px rgba(22,163,74,.3);
}
.btn-success:hover {
  background: #15803d;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: var(--r-xs);
}

.btn svg { width: 14px; height: 14px; }

/* ═══════════════════════════════════════════════════════════════════════════
   TABLES
════════════════════════════════════════════════════════════════════════════ */
.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; }

th {
  padding: 9px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-3);
  background: var(--slate-50);
  border-bottom: 1px solid var(--border-mid);
  white-space: nowrap;
  position: sticky;
  top: 0;
}

td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text-body);
  font-size: 13.5px;
}

tr:last-child td { border-bottom: none; }

tbody tr {
  transition: background var(--t-fast);
}

tbody tr:hover td { background: var(--cobalt-50); }

/* ═══════════════════════════════════════════════════════════════════════════
   FORMS
════════════════════════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 5px;
}

.form-label.required::after { content: ' *'; color: var(--red-500); }

.form-control {
  width: 100%;
  padding: 8.5px 12px;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--text-body);
  font-weight: 500;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
  appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--cobalt-500);
  background: var(--cobalt-50);
  box-shadow: 0 0 0 3px rgba(0,102,238,.1);
}

.form-control::placeholder { color: var(--slate-300); font-weight: 400; }

textarea.form-control { resize: vertical; min-height: 80px; }
select.form-control { cursor: pointer; }

.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

/* ═══════════════════════════════════════════════════════════════════════════
   MODAL
════════════════════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7,18,30,.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn var(--t) both;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@keyframes modalSlide {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

.modal {
  background: var(--white);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--e4);
  animation: modalSlide .22s cubic-bezier(.22,1,.36,1) both;
  border: 1px solid var(--border);
}

.modal-lg { max-width: 800px; }

.modal-header {
  padding: 18px 22px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--slate-50);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}

.modal-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-h);
  letter-spacing: -.15px;
}

.modal-close {
  background: none;
  border: none;
  width: 28px; height: 28px;
  border-radius: var(--r-sm);
  font-size: 18px;
  color: var(--text-3);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  transition: all var(--t-fast);
}

.modal-close:hover { background: var(--slate-100); color: var(--text-h); }

.modal-body { padding: 22px; }

.modal-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  background: var(--slate-50);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
}

/* ═══════════════════════════════════════════════════════════════════════════
   TOAST
════════════════════════════════════════════════════════════════════════════ */
#toast-container {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  box-shadow: var(--e3);
  animation: toastSlide .25s cubic-bezier(.22,1,.36,1) both;
  max-width: 340px;
  pointer-events: auto;
}

@keyframes toastSlide {
  from { opacity: 0; transform: translateX(16px) scale(.96); }
  to   { opacity: 1; transform: none; }
}

.toast-success { background: linear-gradient(120deg, #16a34a, #15803d); }
.toast-error   { background: linear-gradient(120deg, #dc2626, #b91c1c); }
.toast-info    { background: linear-gradient(120deg, var(--cobalt-600), var(--cobalt-700)); }

/* ═══════════════════════════════════════════════════════════════════════════
   TAGS & BADGES
════════════════════════════════════════════════════════════════════════════ */
.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2.5px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
  margin: 2px;
  letter-spacing: .01em;
}

.tag-badge .tag-remove {
  background: none;
  border: none;
  color: rgba(255,255,255,.6);
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  padding: 0;
  margin-left: 1px;
  transition: color var(--t-fast);
}
.tag-badge .tag-remove:hover { color: var(--white); }

.tag-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.tag-auto   { opacity: .8; }
.tag-manual { box-shadow: 0 0 0 1.5px rgba(255,255,255,.3) inset; }

/* ═══════════════════════════════════════════════════════════════════════════
   SEARCH
════════════════════════════════════════════════════════════════════════════ */
.search-bar { display: flex; gap: 8px; flex-wrap: wrap; }

.search-input-wrap { position: relative; flex: 1; min-width: 180px; }
.search-input-wrap svg {
  position: absolute;
  left: 10px; top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  color: var(--text-3);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 8px 12px 8px 32px;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-weight: 500;
  font-family: inherit;
  color: var(--text-body);
  background: var(--white);
  transition: all var(--t);
}
.search-input:focus {
  outline: none;
  border-color: var(--cobalt-400);
  box-shadow: 0 0 0 3px rgba(0,102,238,.08);
  background: var(--cobalt-50);
}

/* ═══════════════════════════════════════════════════════════════════════════
   POSITIONS TABLE
════════════════════════════════════════════════════════════════════════════ */
.pos-type-title td {
  background: linear-gradient(90deg, var(--cobalt-50), var(--white)) !important;
  color: var(--navy-800) !important;
  font-weight: 700;
  border-left: 3px solid var(--cobalt-400);
}

.pos-number {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 11.5px;
  color: var(--text-3);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════════
   KEYWORDS
════════════════════════════════════════════════════════════════════════════ */
.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 9px;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--r-sm);
  min-height: 44px;
  background: var(--white);
}

.keyword-chip {
  background: var(--cobalt-100);
  color: var(--cobalt-700);
  border-radius: 99px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.keyword-chip button {
  background: none;
  border: none;
  color: var(--cobalt-400);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  padding: 0;
  transition: color var(--t-fast);
}
.keyword-chip button:hover { color: var(--red-600); }

/* ═══════════════════════════════════════════════════════════════════════════
   TAG CHECKBOXES
════════════════════════════════════════════════════════════════════════════ */
.tag-check-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  max-height: 210px;
  overflow-y: auto;
  padding: 2px;
}

.tag-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--t-fast);
}
.tag-check-item:hover { background: var(--cobalt-50); border-color: var(--cobalt-200); }
.tag-check-item input { cursor: pointer; accent-color: var(--cobalt-600); }

/* ═══════════════════════════════════════════════════════════════════════════
   UPLOAD
════════════════════════════════════════════════════════════════════════════ */
.upload-area {
  border: 2px dashed var(--border-mid);
  border-radius: var(--r-lg);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--t-slow);
  background: var(--slate-50);
}

.upload-area:hover, .upload-area.drag-over {
  border-color: var(--cobalt-400);
  background: var(--cobalt-50);
  box-shadow: 0 0 0 4px rgba(0,102,238,.06);
}

.upload-area input { display: none; }
.upload-area svg { color: var(--slate-300); width: 40px; height: 40px; margin-bottom: 10px; }
.upload-area p { color: var(--text-2); font-weight: 500; font-size: 13.5px; }
.upload-area span { color: var(--cobalt-600); font-weight: 700; }

/* ═══════════════════════════════════════════════════════════════════════════
   EMAIL MATCHES
════════════════════════════════════════════════════════════════════════════ */
.email-match-card {
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color var(--t);
}
.email-match-card:hover { border-color: var(--cobalt-300); box-shadow: var(--e1); }

.email-match-header {
  background: var(--slate-50);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}

.email-match-body { padding: 12px 16px; }

/* ═══════════════════════════════════════════════════════════════════════════
   COLOR PICKER
════════════════════════════════════════════════════════════════════════════ */
.color-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.color-dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--t-fast), border-color var(--t-fast);
  box-shadow: var(--e0);
}
.color-dot:hover { transform: scale(1.2); }
.color-dot.selected { border-color: var(--slate-900); box-shadow: 0 0 0 2px var(--white) inset; }

/* ═══════════════════════════════════════════════════════════════════════════
   EMPTY STATE
════════════════════════════════════════════════════════════════════════════ */
.empty-state {
  text-align: center;
  padding: 52px 24px;
  color: var(--text-3);
}
.empty-state > svg,
.empty-state .empty-icon svg { width: 48px; height: 48px; margin-bottom: 14px; color: var(--slate-200); }
.empty-state h3 { font-size: 15px; font-weight: 700; color: var(--text-2); margin-bottom: 5px; }
.empty-state p { font-size: 13px; }
/* Button-Icons innerhalb von Empty States nicht überschreiben */
.empty-state .btn svg { width: 14px; height: 14px; margin-bottom: 0; }

/* ═══════════════════════════════════════════════════════════════════════════
   LOADING
════════════════════════════════════════════════════════════════════════════ */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 52px;
  color: var(--text-3);
  font-weight: 500;
  gap: 10px;
  font-size: 13.5px;
}

.spinner {
  width: 20px; height: 20px;
  border: 2.5px solid var(--border-mid);
  border-top-color: var(--cobalt-500);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   SCROLLBAR
════════════════════════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--slate-200); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--cobalt-200); }

/* ═══════════════════════════════════════════════════════════════════════════
   PAGE ANIMATION
════════════════════════════════════════════════════════════════════════════ */
@keyframes pageIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.stats-grid { animation: pageIn .22s var(--t) both; }
.card       { animation: pageIn .25s var(--t) both; }
.card + .card { animation-delay: .04s; }

/* ═══════════════════════════════════════════════════════════════════════════
   UTILITY
════════════════════════════════════════════════════════════════════════════ */
.text-sm      { font-size: 12px; }
.text-muted   { color: var(--text-3); }
.text-danger  { color: var(--red-600); }
.text-success { color: var(--green-600); }
.fw-600       { font-weight: 600; }
.d-flex       { display: flex; }
.align-center { align-items: center; }
.gap-8        { gap: 8px; }
.mt-8         { margin-top: 8px; }
.mt-16        { margin-top: 16px; }
.mb-16        { margin-bottom: 16px; }
.hidden       { display: none !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   DARK MODE TOGGLE BUTTON
════════════════════════════════════════════════════════════════════════════ */
.btn-theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border-mid);
  background: var(--white);
  color: var(--text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--t);
  flex-shrink: 0;
}

.btn-theme-toggle:hover {
  background: var(--cobalt-50);
  border-color: var(--cobalt-200);
  color: var(--cobalt-600);
  transform: scale(1.08) rotate(12deg);
}

.btn-theme-toggle svg { width: 16px; height: 16px; }

/* ═══════════════════════════════════════════════════════════════════════════
   DARK MODE — VARIABLE OVERRIDES
════════════════════════════════════════════════════════════════════════════ */
[data-theme="dark"] {
  /* Surfaces */
  --bg:          #0d1117;
  --surface:     #161b22;
  --border:      #21262d;
  --border-mid:  #30363d;
  --border-dark: #3d444d;

  /* Text */
  --text-h:      #e6edf3;
  --text-body:   #c9d1d9;
  --text-2:      #8b949e;
  --text-3:      #6e7681;

  /* Legacy compatibility */
  --gray-400:    #6e7681;
  --gray-500:    #484f58;

  /* Cobalt adjusted for dark backgrounds */
  --cobalt-50:   rgba(0,102,238,.14);
  --cobalt-100:  rgba(0,102,238,.22);

  /* Slate scale mapped to dark */
  --slate-50:    #161b22;
  --slate-100:   #21262d;
  --slate-200:   #30363d;
  --slate-300:   #484f58;

  /* Status colors slightly adjusted */
  --green-100:   rgba(34,197,94,.14);
  --red-100:     rgba(239,68,68,.14);
  --amber-100:   rgba(245,158,11,.14);

  /* Elevation — darker shadows */
  --e0: 0 1px 2px rgba(0,0,0,.45);
  --e1: 0 1px 3px rgba(0,0,0,.5),  0 2px 6px rgba(0,0,0,.35);
  --e2: 0 2px 6px rgba(0,0,0,.55), 0 6px 18px rgba(0,0,0,.4);
  --e3: 0 6px 16px rgba(0,0,0,.6), 0 16px 40px rgba(0,0,0,.45);
  --e4: 0 16px 48px rgba(0,0,0,.7), 0 6px 18px rgba(0,0,0,.5);
}

/* ─── Elements using --white as background ─────────────────────────────── */
[data-theme="dark"] .card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .top-bar,
[data-theme="dark"] .modal,
[data-theme="dark"] .login-card { background: var(--surface); }

[data-theme="dark"] .form-control,
[data-theme="dark"] .search-input,
[data-theme="dark"] .keyword-list {
  background: var(--bg);
  color: var(--text-body);
}

[data-theme="dark"] .upload-area { background: var(--bg); }

[data-theme="dark"] .btn-secondary {
  background: var(--surface);
  border-color: var(--border-mid);
  color: var(--text-2);
}
[data-theme="dark"] .btn-secondary:hover {
  background: rgba(0,102,238,.14);
  border-color: var(--cobalt-400);
  color: var(--cobalt-300);
}

[data-theme="dark"] .btn-theme-toggle { background: var(--surface); }

/* ─── Positions accent row ─────────────────────────────────────────────── */
[data-theme="dark"] .pos-type-title td {
  background: linear-gradient(90deg, rgba(0,102,238,.16), var(--surface)) !important;
  color: var(--cobalt-300) !important;
}

/* ─── Color dot selected ───────────────────────────────────────────────── */
[data-theme="dark"] .color-dot.selected {
  border-color: var(--white);
  box-shadow: 0 0 0 2px var(--surface) inset;
}

/* ─── Login background stays navy in dark mode ─────────────────────────── */
[data-theme="dark"] .login-logo h1 { color: var(--text-h); }
[data-theme="dark"] .login-logo-mark { background: none; border: none; box-shadow: none; }

/* ─── Login screen (already dark, just slightly adjust card) ───────────── */
[data-theme="dark"] #login-screen::before {
  background: linear-gradient(145deg, #010810 0%, #051525 55%, #0a1e3a 100%);
}

/* ─── Scrollbar ────────────────────────────────────────────────────────── */
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: var(--slate-200); }
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: var(--cobalt-400); }

/* ═══════════════════════════════════════════════════════════════════════════
   INVENTUR
════════════════════════════════════════════════════════════════════════════ */

/* Stock level badges */
.inv-stock-ok, .inv-stock-warn, .inv-stock-danger {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.inv-stock-ok     { background: var(--green-100); color: var(--green-600); }
.inv-stock-warn   { background: var(--amber-100); color: #92400e; }
.inv-stock-danger { background: var(--red-100);   color: var(--red-600); }

/* Movement type badges */
.inv-type-in, .inv-type-out {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.inv-type-in  { background: var(--green-100); color: var(--green-600); }
.inv-type-out { background: var(--red-100);   color: var(--red-600); }

/* Category pill */
.inv-cat {
  display: inline-block;
  padding: 2px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 600;
  background: var(--cobalt-50); color: var(--cobalt-600);
  border: 1px solid var(--cobalt-100);
}

/* Filter tabs (inside card-header) */
.inv-tabs { display: flex; gap: 4px; }
.inv-tab {
  padding: 4px 13px;
  border: 1.5px solid var(--border-mid);
  border-radius: 20px;
  background: transparent;
  color: var(--text-3);
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
}
.inv-tab:hover  { border-color: var(--cobalt-300); color: var(--cobalt-600); }
.inv-tab.active { background: var(--cobalt-50); border-color: var(--cobalt-300); color: var(--cobalt-600); }

/* Search inside header */
.inv-search-wrap {
  position: relative; flex: 1; max-width: 240px;
}
.inv-search-wrap svg {
  position: absolute; left: 9px; top: 50%; transform: translateY(-50%);
  width: 13px; height: 13px; color: var(--text-3); pointer-events: none;
}
.inv-search {
  width: 100%; padding: 5.5px 10px 5.5px 30px;
  border: 1.5px solid var(--border-mid); border-radius: var(--r-sm);
  font-size: 12.5px; background: var(--white); color: var(--text-body);
  transition: border-color var(--t);
}
.inv-search:focus { outline: none; border-color: var(--cobalt-400); }

/* Quick-action cards row */
.inv-actions-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px; margin-bottom: 22px;
}
.inv-action-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--r-lg); padding: 16px;
  cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  transition: all var(--t); box-shadow: var(--e0); text-align: left;
}
.inv-action-card:hover { border-color: var(--cobalt-300); box-shadow: var(--e2); transform: translateY(-2px); }
.inv-action-card .iac-icon {
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.inv-action-card .iac-icon svg { width: 17px; height: 17px; }
.inv-action-card .iac-title { font-size: 12.5px; font-weight: 700; color: var(--text-h); line-height: 1.2; }
.inv-action-card .iac-sub   { font-size: 11px; color: var(--text-3); }

/* Quantity delta */
.qty-in  { font-weight: 700; color: var(--green-600); }
.qty-out { font-weight: 700; color: var(--red-600); }

/* Dark mode */
[data-theme="dark"] .inv-action-card { background: var(--surface); }
[data-theme="dark"] .inv-cat { background: rgba(0,102,238,.12); border-color: rgba(0,102,238,.2); }
[data-theme="dark"] .inv-tab.active { background: rgba(0,102,238,.12); }
[data-theme="dark"] .inv-search { background: var(--bg); color: var(--text-body); border-color: var(--border-mid); }
[data-theme="dark"] .inv-stock-ok     { background: rgba(22,163,74,.15);  color: #4ade80; }
[data-theme="dark"] .inv-stock-warn   { background: rgba(245,158,11,.15); color: #fbbf24; }
[data-theme="dark"] .inv-stock-danger { background: rgba(239,68,68,.15);  color: #f87171; }
[data-theme="dark"] .inv-type-in  { background: rgba(22,163,74,.15);  color: #4ade80; }
[data-theme="dark"] .inv-type-out { background: rgba(239,68,68,.15);  color: #f87171; }

/* ═══════════════════════════════════════════════════════════════════════════
   ANGEBOTSERSTELLUNG / WIZARD
════════════════════════════════════════════════════════════════════════════ */

/* Wizard Stepper */
.wizard-stepper {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
}
.wizard-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all .15s;
  cursor: default;
}
.wizard-step.completed {
  color: var(--cobalt);
  cursor: pointer;
}
.wizard-step.completed:hover {
  background: rgba(26,86,219,.06);
}
.wizard-step.active {
  background: var(--cobalt);
  color: #fff;
}
.wizard-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  background: var(--border);
  color: var(--text-secondary);
  flex-shrink: 0;
}
.wizard-step.active .wizard-step-num {
  background: rgba(255,255,255,.25);
  color: #fff;
}
.wizard-step.completed .wizard-step-num {
  background: var(--cobalt);
  color: #fff;
}
.wizard-step-label {
  font-weight: 500;
}

/* Question Card */
.question-card {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.question-card:last-of-type {
  border-bottom: none;
}
.question-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

/* Ja / Nein Buttons */
.yn-buttons {
  display: flex;
  gap: 10px;
}
.yn-btn {
  padding: 10px 28px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  min-width: 90px;
  text-align: center;
}
.yn-btn:hover {
  border-color: var(--cobalt);
  background: rgba(26,86,219,.04);
}
.yn-btn.selected.yn-yes {
  border-color: #16a34a;
  background: rgba(22,163,74,.08);
  color: #16a34a;
}
.yn-btn.selected.yn-no {
  border-color: #dc2626;
  background: rgba(220,38,38,.06);
  color: #dc2626;
}

/* Select Options (Radio-like Buttons) */
.select-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.select-opt {
  padding: 8px 18px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
}
.select-opt:hover {
  border-color: var(--cobalt);
  background: rgba(26,86,219,.04);
}
.select-opt.selected {
  border-color: var(--cobalt);
  background: rgba(26,86,219,.08);
  color: var(--cobalt);
}
.select-opt-custom {
  border-style: dashed;
}

/* Number Input */
.number-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.number-unit {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Wizard Navigation */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Zusammenfassung */
.answer-summary {
  display: grid;
  gap: 16px;
}
.summary-category h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--cobalt);
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--cobalt);
  display: inline-block;
}
.summary-category dl {
  margin: 0;
}
.summary-row {
  display: flex;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light, var(--border));
  gap: 12px;
}
.summary-row dt {
  flex: 1;
  font-size: 13px;
  color: var(--text-secondary);
}
.summary-row dd {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

/* Dark mode */
[data-theme="dark"] .yn-btn { background: var(--bg); }
[data-theme="dark"] .yn-btn:hover { background: rgba(26,86,219,.1); }
[data-theme="dark"] .yn-btn.selected.yn-yes { background: rgba(22,163,74,.15); color: #4ade80; border-color: #4ade80; }
[data-theme="dark"] .yn-btn.selected.yn-no { background: rgba(220,38,38,.15); color: #f87171; border-color: #f87171; }
[data-theme="dark"] .select-opt { background: var(--bg); }
[data-theme="dark"] .select-opt:hover { background: rgba(26,86,219,.12); }
[data-theme="dark"] .select-opt.selected { background: rgba(26,86,219,.18); color: #60a5fa; border-color: #60a5fa; }
[data-theme="dark"] .wizard-stepper { background: var(--bg); }
[data-theme="dark"] .wizard-step.completed { color: #60a5fa; }
[data-theme="dark"] .wizard-step.active { background: #3b82f6; }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .sidebar { display: none; }
  .main-content { margin-left: 0; }
  .page-content { padding: 16px; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .login-card { padding: 36px 28px; width: 100%; max-width: 440px; }
}
