/* Theme tokens: CSS custom properties inherit into every component's shadow DOM */
:root {
  --bg: #f1f5f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --hover: #e2e8f0;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --focus: #2563eb;
  --primary: #2563eb;
  --success: #15803d;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --warning: #b45309;
  --warning-bg: #fffbeb;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  --topbar: #0f172a;
  --topbar-2: #1e293b;
  --topbar-border: #334155;
  --topbar-text: #f8fafc;
  --topbar-muted: #94a3b8;

  --c-sales: #10b981;
  --c-purchase: #3b82f6;
  --c-expense: #f59e0b;
  --c-cash: #8b5cf6;
  --c-bank: #06b6d4;
  --c-cash-bal: #14b8a6;
  --c-bank-bal: #2563eb;
  --c-total: #0f172a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --surface: #111827;
    --surface-2: #1f2937;
    --border: #1f2937;
    --border-strong: #374151;
    --hover: #273244;
    --text: #e5e7eb;
    --text-2: #cbd5e1;
    --muted: #94a3b8;
    --focus: #60a5fa;
    --success: #4ade80;
    --danger: #f87171;
    --danger-bg: #3b1219;
    --warning: #fbbf24;
    --warning-bg: #3a2a0a;
    --shadow: none;
    --topbar: #020617;
    --topbar-2: #0f172a;
    --c-total: #e5e7eb;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

fv-app {
  display: block;
  min-height: 100vh;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
