/* style_tokens.css */
:root {
  --petrol-950: #072836;
  --petrol-900: #0a3647;
  --petrol-700: #0e5a6d;
  --petrol-500: #0c8a9e;
  --hero-gradient: linear-gradient(135deg, #0a3647 0%, #0e5a6d 55%, #0c8a9e 100%);

  --accent: #0c8a9e;
  --accent-hover: #0a7486;
  --accent-soft: rgba(12, 138, 158, 0.12);
  --accent-border: rgba(12, 138, 158, 0.28);

  --gold: #f4be37;
  --gold-text: #7c5800;
  --gold-soft: rgba(244, 190, 55, 0.2);

  --income: #16a34a;
  --income-soft: rgba(22, 163, 74, 0.12);
  --expense: #dc2626;
  --expense-soft: rgba(220, 38, 38, 0.11);
  --saving: #d97706;
  --saving-soft: rgba(217, 119, 6, 0.13);

  --bg-page: #f2f5f7;
  --bg-surface: #ffffff;
  --bg-subtle: #f6f8fa;
  --bg-elevated: #ffffff;
  --bg-input: #f4f7f9;
  --border: #e1e8ed;
  --border-strong: #cdd7df;

  --text-primary: #0f1f29;
  --text-secondary: #4a6070;
  --text-muted: #768b99;
  --text-inverse: #ffffff;

  --backdrop: rgba(7, 40, 54, 0.56);
  --shadow-sm: 0 1px 3px rgba(10, 54, 71, 0.06);
  --shadow-md: 0 6px 20px rgba(10, 54, 71, 0.1);
  --shadow-lg: 0 16px 40px rgba(10, 54, 71, 0.18);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --nav-height: 64px;
  --sidebar-width: 248px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html[data-theme="dark"] {
  --hero-gradient: linear-gradient(135deg, #072633 0%, #0b4454 55%, #0e6f80 100%);
  --accent: #22b8cf;
  --accent-hover: #3bc9db;
  --accent-soft: rgba(34, 184, 207, 0.16);
  --accent-border: rgba(34, 184, 207, 0.34);

  --gold: #f4be37;
  --gold-text: #fde68a;
  --gold-soft: rgba(244, 190, 55, 0.18);

  --income: #22c55e;
  --income-soft: rgba(34, 197, 94, 0.16);
  --expense: #ef4444;
  --expense-soft: rgba(239, 68, 68, 0.16);
  --saving: #f59e0b;
  --saving-soft: rgba(245, 158, 11, 0.18);

  --bg-page: #0a141a;
  --bg-surface: #11212b;
  --bg-subtle: #162a36;
  --bg-elevated: #172d3a;
  --bg-input: #0e1c24;
  --border: #203947;
  --border-strong: #2d4c5e;

  --text-primary: #eef4f7;
  --text-secondary: #a7bcc9;
  --text-muted: #7690a0;
  --text-inverse: #ffffff;

  --backdrop: rgba(3, 12, 18, 0.72);
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.36);
  --shadow-lg: 0 18px 44px rgba(0, 0, 0, 0.5);
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
  overscroll-behavior-y: contain;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

button {
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
}

input, textarea {
  user-select: text;
  -webkit-user-select: text;
}

.num, .money {
  font-variant-numeric: tabular-nums;
}

.hidden {
  display: none !important;
}

.muted-text {
  color: var(--text-muted);
  font-size: 13px;
}

.text-income { color: var(--income); }
.text-expense { color: var(--expense); }
.text-saving { color: var(--saving); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
