/* Colours and spacing. Change the look of the app here, not in individual components. */
:root {
  --color-bg: #f4f6f9;
  --color-surface: #ffffff;
  --color-text: #1d2430;
  --color-text-muted: #5f6b7a;
  --color-accent: #2a6fdb;
  --color-danger: #c62f3a;
  --color-border: #dde2ea;
  --color-on-accent: #ffffff;
  --color-danger-bg: #fdecee;
  --color-info-bg: #e8f0fc;
  --color-success: #1f9d55;
  --color-sidebar: #eceff4;
  --color-hover: rgba(0, 0, 0, 0.05);
  --color-selected: #dbe6fa;
  --color-mine: #dcebff;
  --color-client: #8a4b00;
  --color-client-bg: #fff1dc;

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

  /* System fonts (fast, no files to host). */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #14181f;
    --color-surface: #1c222b;
    --color-text: #e6e9ee;
    --color-text-muted: #9aa5b4;
    --color-accent: #5b93ec;
    --color-danger: #ef6b74;
    --color-border: #2d3540;
    --color-on-accent: #0b1220;
    --color-danger-bg: #3a1c20;
    --color-info-bg: #1b2a40;
    --color-success: #3fbf7f;
    --color-sidebar: #181d25;
    --color-hover: rgba(255, 255, 255, 0.06);
    --color-selected: #22324a;
    --color-mine: #1e3352;
    --color-client: #f3b765;
    --color-client-bg: #3a2a14;
  }
}
