/* ============================================================
   COMPLIANCE MONITOR — Design System
   Dark intelligence theme: navy + amber risk signals
   Fonts: Syne (headings) + DM Mono (data) + DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Mono:wght@300;400;500&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg-base:        #0a0e1a;
  --bg-surface:     #0f1422;
  --bg-card:        #141929;
  --bg-card-hover:  #181f30;
  --bg-input:       #1a2035;
  --bg-subtle:      #1e2640;

  --border:         rgba(255,255,255,0.07);
  --border-active:  rgba(255,255,255,0.18);

  --text-primary:   #eef0f6;
  --text-secondary: #8892a4;
  --text-muted:     #4a5568;
  --text-inverse:   #0a0e1a;

  --accent-blue:    #3b82f6;
  --accent-blue-dim:#1d4ed8;

  --risk-critical:  #ef4444;
  --risk-high:      #f97316;
  --risk-medium:    #eab308;
  --risk-low:       #22c55e;
  --risk-unknown:   #6b7280;

  --amber:          #f59e0b;
  --amber-dim:      rgba(245,158,11,0.15);
  --red-dim:        rgba(239,68,68,0.12);
  --green-dim:      rgba(34,197,94,0.12);
  --blue-dim:       rgba(59,130,246,0.12);

  --sidebar-w:      240px;
  --topbar-h:       56px;
  --radius-sm:      6px;
  --radius-md:      10px;
  --radius-lg:      14px;
  --radius-xl:      20px;

  --font-head:      'Syne', sans-serif;
  --font-body:      'DM Sans', sans-serif;
  --font-mono:      'DM Mono', monospace;

  --shadow-card:    0 1px 3px rgba(0,0,0,0.4), 0 4px 16px rgba(0,0,0,0.3);
  --shadow-glow-r:  0 0 20px rgba(239,68,68,0.2);
  --shadow-glow-a:  0 0 20px rgba(245,158,11,0.15);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--accent-blue); text-decoration: none; }
a:hover { color: #60a5fa; }
img { max-width: 100%; }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border-active); border-radius: 2px; }

/* ── App layout ────────────────────────────────────────────── */
.app-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: var(--topbar-h) 1fr;
  min-height: 100vh;
}

/* ── Topbar ────────────────────────────────────────────────── */
.topbar {
  grid-column: 1 / -1;
  height: var(--topbar-h);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px 0 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar-brand {
  width: var(--sidebar-w);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  border-right: 1px solid var(--border);
  height: 100%;
  flex-shrink: 0;
}
.topbar-brand .logo-mark {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--accent-blue), #1d4ed8);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.topbar-brand .brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  line-height: 1.1;
}
.topbar-brand .brand-sub {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.topbar-center { flex: 1; padding: 0 24px; }
.topbar-tenant {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.topbar-tenant strong { color: var(--text-secondary); font-weight: 500; }
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar-notif {
  position: relative;
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color .15s;
}
.topbar-notif:hover { border-color: var(--border-active); }
.notif-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 7px; height: 7px;
  background: var(--risk-critical);
  border-radius: 50%;
  border: 1.5px solid var(--bg-surface);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}
.topbar-user {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color .15s;
}
.topbar-user:hover { border-color: var(--border-active); }
.user-avatar {
  width: 26px; height: 26px;
  border-radius: 6px;
  background: linear-gradient(135deg, #1d4ed8, var(--accent-blue));
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  font-family: var(--font-head);
}
.user-info { font-size: 12px; }
.user-name { color: var(--text-primary); font-weight: 500; line-height: 1.2; }
.user-role { color: var(--text-muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--font-mono); }

/* ── Sidebar ───────────────────────────────────────────────── */
.sidebar {
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  padding: 16px 0;
  overflow-y: auto;
  position: sticky;
  top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
}
.nav-section { margin-bottom: 4px; }
.nav-label {
  padding: 12px 20px 6px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background .12s, color .12s;
  text-decoration: none;
  border-left: 2px solid transparent;
  position: relative;
}
.nav-item:hover {
  background: rgba(255,255,255,0.03);
  color: var(--text-primary);
}
.nav-item.active {
  background: rgba(59,130,246,0.08);
  color: var(--text-primary);
  border-left-color: var(--accent-blue);
}
.nav-item .nav-icon {
  width: 16px; height: 16px;
  opacity: 0.6;
  flex-shrink: 0;
}
.nav-item.active .nav-icon { opacity: 1; }
.nav-badge {
  margin-left: auto;
  font-size: 10px;
  font-family: var(--font-mono);
  padding: 1px 6px;
  border-radius: 99px;
  font-weight: 500;
}
.badge-red { background: var(--red-dim); color: var(--risk-critical); }
.badge-amber { background: var(--amber-dim); color: var(--amber); }
.badge-blue { background: var(--blue-dim); color: var(--accent-blue); }

/* ── Main content ──────────────────────────────────────────── */
.main-content {
  overflow-y: auto;
  background: var(--bg-base);
  padding: 28px 32px;
}
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
}
.page-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
}
.page-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  font-family: var(--font-mono);
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  transition: border-color .15s;
}
.card:hover { border-color: var(--border-active); }
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card-title {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Risk badge ────────────────────────────────────────────── */
.risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}
.risk-critical { background: var(--red-dim); color: var(--risk-critical); border: 1px solid rgba(239,68,68,0.25); }
.risk-high { background: rgba(249,115,22,0.12); color: var(--risk-high); border: 1px solid rgba(249,115,22,0.25); }
.risk-medium { background: rgba(234,179,8,0.1); color: var(--risk-medium); border: 1px solid rgba(234,179,8,0.2); }
.risk-low { background: var(--green-dim); color: var(--risk-low); border: 1px solid rgba(34,197,94,0.25); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s;
  font-family: var(--font-body);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-blue);
  color: #fff;
  border-color: var(--accent-blue);
}
.btn-primary:hover { background: #2563eb; border-color: #2563eb; }
.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-active);
}
.btn-outline:hover { background: var(--bg-subtle); color: var(--text-primary); }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}
.btn-ghost:hover { color: var(--text-secondary); background: var(--bg-subtle); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-icon { padding: 7px; }

/* ── Form elements ─────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 7px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.form-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 5px; }
.form-error { font-size: 12px; color: var(--risk-critical); margin-top: 5px; }

/* ── Status pill / trend ───────────────────────────────────── */
.trend-up { color: var(--risk-critical); }
.trend-down { color: var(--risk-low); }
.trend-stable { color: var(--text-muted); }

/* ── Divider ───────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

/* ── Stat grid ─────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  gap: 16px;
}
.stat-grid-4 { grid-template-columns: repeat(4, 1fr); }
.stat-grid-3 { grid-template-columns: repeat(3, 1fr); }
.stat-grid-2 { grid-template-columns: repeat(2, 1fr); }

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}
.stat-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.stat-value {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  font-family: var(--font-mono);
}

/* ── Health score ring ─────────────────────────────────────── */
.health-ring-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.health-score-svg { transform: rotate(-90deg); }
.health-score-track { fill: none; stroke: var(--bg-subtle); stroke-width: 10; }
.health-score-fill {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4,0,0.2,1);
}
.health-score-center {
  position: absolute;
  text-align: center;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}
.health-score-number {
  font-family: var(--font-head);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.health-score-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── Topic row ─────────────────────────────────────────────── */
.topic-row {
  display: grid;
  grid-template-columns: 1fr 120px 80px 80px 32px;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: background .1s;
}
.topic-row:last-child { border-bottom: none; }
.topic-row:hover { background: rgba(255,255,255,0.02); margin: 0 -8px; padding: 12px 8px; border-radius: var(--radius-sm); }
.topic-name { font-size: 13px; font-weight: 500; color: var(--text-primary); }
.topic-code { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.score-bar-wrap { display: flex; align-items: center; gap: 8px; }
.score-bar-bg { flex: 1; height: 4px; background: var(--bg-subtle); border-radius: 2px; overflow: hidden; }
.score-bar-fill { height: 100%; border-radius: 2px; transition: width 1s cubic-bezier(0.4,0,0.2,1); }
.score-num { font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); min-width: 28px; text-align: right; }

/* ── Gantt mini ────────────────────────────────────────────── */
.gantt-row {
  display: grid;
  grid-template-columns: 200px 1fr 90px;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.gantt-row:last-child { border-bottom: none; }
.gantt-title { color: var(--text-primary); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gantt-bar-wrap { position: relative; height: 6px; background: var(--bg-subtle); border-radius: 3px; }
.gantt-bar { position: absolute; left: 0; top: 0; height: 100%; border-radius: 3px; }
.gantt-date { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); text-align: right; }

/* ── AI summary block ──────────────────────────────────────── */
.ai-summary {
  background: linear-gradient(135deg, rgba(59,130,246,0.06) 0%, rgba(139,92,246,0.04) 100%);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
}
.ai-summary::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--accent-blue), #8b5cf6);
}
.ai-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-blue);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.ai-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-blue); animation: pulse-dot 2s ease-in-out infinite; }
.ai-text { font-size: 14px; color: var(--text-primary); line-height: 1.7; }

/* ── Profiling progress ────────────────────────────────────── */
.profiling-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 13px;
  color: var(--text-secondary);
}
.step-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}
.step-pending { background: var(--bg-subtle); border: 1px solid var(--border); }
.step-active { background: var(--blue-dim); border: 1px solid rgba(59,130,246,0.4); }
.step-done { background: var(--green-dim); border: 1px solid rgba(34,197,94,0.4); }
.step-done-icon { color: var(--risk-low); }
.step-active-icon { color: var(--accent-blue); }

@keyframes spin { to { transform: rotate(360deg); } }
.spinning { animation: spin 1s linear infinite; }

/* ── Page load animations ──────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.4s ease both; }
.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.10s; }
.delay-3 { animation-delay: 0.15s; }
.delay-4 { animation-delay: 0.20s; }
.delay-5 { animation-delay: 0.25s; }
.delay-6 { animation-delay: 0.30s; }

/* ── Auth page ─────────────────────────────────────────────── */
.auth-layout {
  min-height: 100vh;
  background: var(--bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.auth-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.auth-bg-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.06) 0%, transparent 70%);
  top: -200px; left: 50%; transform: translateX(-50%);
  pointer-events: none;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  position: relative;
  z-index: 1;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  animation: fadeUp 0.5s ease both;
}
.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}
.auth-logo-mark {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--accent-blue), #1d4ed8);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  color: #fff;
}
.auth-logo-text .name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.auth-logo-text .sub {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.auth-title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.auth-subtitle { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }
.auth-divider {
  text-align: center;
  position: relative;
  margin: 20px 0;
  font-size: 12px;
  color: var(--text-muted);
}
.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: var(--border);
}
.auth-divider span { background: var(--bg-card); padding: 0 12px; position: relative; }
.auth-footer { margin-top: 24px; text-align: center; font-size: 12px; color: var(--text-muted); }
.auth-error {
  background: var(--red-dim);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: #fca5a5;
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .stat-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --sidebar-w: 56px; }
  .nav-item span, .nav-label, .topbar-brand .brand-name, .topbar-brand .brand-sub { display: none; }
  .topbar-brand { padding: 0 14px; justify-content: center; }
  .main-content { padding: 20px 16px; }
}

/* ── Light theme ────────────────────────────────────────────── */
[data-theme="light"] {
  --bg-base:        #f4f5f7;
  --bg-surface:     #ffffff;
  --bg-card:        #ffffff;
  --bg-card-hover:  #f8f9fb;
  --bg-input:       #ffffff;
  --bg-subtle:      #f0f2f5;

  --border:         rgba(0,0,0,0.09);
  --border-active:  rgba(0,0,0,0.22);

  --text-primary:   #111827;
  --text-secondary: #374151;
  --text-muted:     #9ca3af;
  --text-inverse:   #ffffff;

  --accent-blue:    #2563eb;
  --accent-blue-dim:#1d4ed8;

  --risk-critical:  #dc2626;
  --risk-high:      #ea580c;
  --risk-medium:    #ca8a04;
  --risk-low:       #16a34a;
  --amber:          #d97706;

  --font-head:      'Syne', sans-serif;
  --font-mono:      'DM Mono', monospace;
  --font-sans:      'DM Sans', sans-serif;
}

[data-theme="light"] .topbar {
  background: #1e293b;
}

[data-theme="light"] .sidebar {
  background: #1e293b;
  border-right-color: rgba(255,255,255,0.06);
}

[data-theme="light"] .nav-item { color: #94a3b8; }
[data-theme="light"] .nav-item:hover,
[data-theme="light"] .nav-item.active { background: rgba(255,255,255,0.08); color: #f1f5f9; }
[data-theme="light"] .nav-label { color: #64748b; }

[data-theme="light"] .main-content { background: #f4f5f7; }

[data-theme="light"] .card {
  background: #ffffff;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

[data-theme="light"] .stat-card {
  background: #ffffff;
  border-color: rgba(0,0,0,0.08);
}

[data-theme="light"] .ai-summary {
  background: #eff6ff;
  border-color: rgba(37,99,235,0.2);
}

[data-theme="light"] .form-input {
  background: #ffffff;
  border-color: rgba(0,0,0,0.15);
  color: #111827;
}

[data-theme="light"] .btn-outline {
  border-color: rgba(0,0,0,0.2);
  color: #374151;
}

[data-theme="light"] .btn-ghost { color: #374151; }
[data-theme="light"] .btn-ghost:hover { background: rgba(0,0,0,0.06); }

/* Theme toggle button */
.theme-toggle {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  flex-shrink: 0;
}
.theme-toggle:hover { background: var(--bg-card-hover); }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
