/* App shell design tokens.
 *
 * Mirrors the restrained, professional system used by SimpleApps Field:
 * charcoal ink, white / light-grey surfaces, one accent colour reserved for
 * primary actions and the active navigation item, 8px control radius.
 *
 * To rebrand, change --accent and --accent-ink only.
 * Dark mode is applied with data-theme="dark" on <html> (see theme-init.js).
 */

:root {
  /* Ink and neutrals */
  --ink: #17202a;
  --ink-2: #2b3644;
  --body: #64748b;
  --muted: #94a3b8;
  --border: rgba(23, 32, 42, 0.1);
  --border-strong: rgba(23, 32, 42, 0.18);
  --paper: #ffffff;
  --surface: #f5f7f9;
  --surface-soft: rgba(23, 32, 42, 0.045);

  /* Sidebar is charcoal in both themes */
  --sidebar-bg: #17202a;
  --sidebar-text: rgba(255, 255, 255, 0.7);
  --sidebar-text-strong: #ffffff;
  --sidebar-heading: rgba(255, 255, 255, 0.36);
  --sidebar-hover: rgba(255, 255, 255, 0.06);
  --sidebar-border: rgba(255, 255, 255, 0.1);

  /* Accent: primary buttons and the active nav item */
  --accent: #f97316;
  --accent-ink: #ffffff;

  /* Status colours */
  --success: #16a34a;
  --danger: #e5484d;
  --warning: #ca8a04;
  --info: #4a7fef;

  /* Radius scale: structural elements stay small, pills only for badges */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-card: 10px;
  --radius-pill: 999px;

  /* Spacing scale (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 48px;

  /* Elevation */
  --shadow-card: 0 1px 2px rgba(23, 32, 42, 0.04), 0 10px 28px rgba(23, 32, 42, 0.06);
  --shadow-menu: 0 8px 22px rgba(23, 32, 42, 0.12), 0 24px 60px rgba(23, 32, 42, 0.14);

  /* Typography */
  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --sidebar-width: 248px;
  --sidebar-width-collapsed: 72px;
  --topbar-height: 60px;
  --content-max-width: 1200px;

  /* Motion */
  --duration-fast: 0.15s;
  --duration-base: 0.2s;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --ink: #f1f4fb;
  --ink-2: #d7dcf2;
  --body: #b7beda;
  --muted: #838cb0;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.2);
  --paper: #1b222c;
  --surface: #12171f;
  --surface-soft: rgba(255, 255, 255, 0.06);

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 28px rgba(0, 0, 0, 0.4);
  --shadow-menu: 0 8px 22px rgba(0, 0, 0, 0.45), 0 24px 60px rgba(0, 0, 0, 0.5);

  color-scheme: dark;
}
