/* Tokens, reset, teme. Toate culorile/spațierile se definesc AICI. */

:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --border: #e3e6ef;
  --text: #1b1e2b;
  --text-muted: #6b7185;
  --accent: #5562f0;
  --success: #1f9d63;
  --danger: #d6455d;

  --radius: 12px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;

  --sidebar-w: 220px;
  --topbar-h: 60px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

:root[data-theme="dark"] {
  --bg: #0f1117;
  --surface: #181b24;
  --border: #272b38;
  --text: #e8eaf2;
  --text-muted: #9097ab;
  --accent: #7b86ff;
  --success: #3ccf8e;
  --danger: #ff6b81;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1117;
    --surface: #181b24;
    --border: #272b38;
    --text: #e8eaf2;
    --text-muted: #9097ab;
    --accent: #7b86ff;
    --success: #3ccf8e;
    --danger: #ff6b81;
  }
}

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

html, body { margin: 0; height: 100%; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
button { font: inherit; color: inherit; cursor: pointer; }
