/* ==========================================================
   Solidrange Design Tokens
   ----------------------------------------------------------
   Source of truth for color, typography, spacing, radius,
   shadow and motion values, pulled from the Solidrange shared
   UI library (https://ui.solidrange.com). Load this file
   FIRST, before components.css / animations.css / icons.css —
   everything else in this kit is built entirely on these
   custom properties and has no hardcoded brand colors of its
   own (a handful of small hover/gradient shades in
   components.css are literal hex derived from these same
   tokens, noted inline where they appear).
   ========================================================== */

:root {
  /* ---------- Brand colors ---------- */
  --primary: #0C75D1;        /* ui-primary — buttons, links, focus rings */
  --primary-dark: #003351;   /* ui-primary-900 — large dark surfaces (sidebar, header) */
  --primary-light: #E7F1FA;  /* pale tint for hover/selected backgrounds */

  --success: #008743;
  --success-light: #c8e6c9;

  --warning: #AA640E;
  --warning-light: #ffe0b2;

  --danger: #DB3630;
  --danger-light: #ffcdd2;

  /* --accent is an alias for --success in this kit (kept for
     backwards-compat with class names like .badge-success that
     read --accent-light as their background). Solidrange's own
     library also defines a distinct purple accent (#8D20E0) —
     bring that in as --accent-purple if your project needs a
     third brand hue; nothing here depends on it. */
  --accent: var(--success);
  --accent-light: var(--success-light);
  --accent-purple: #8D20E0;
  --accent-purple-light: color-mix(in srgb, #8D20E0 12%, white 88%);

  /* ---------- Neutrals ---------- */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F9FAFA;
  --bg-tertiary: #f2f4f6;

  --text-primary: #26282A;
  --text-secondary: #4D5054;
  --text-muted: #73797D;

  --border: #E6E9ED;
  --border-light: #f0f0f0;

  /* ---------- Spacing scale ---------- */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 24px;
  --spacing-2xl: 32px;
  --spacing-3xl: 48px;

  /* ---------- Shadows ---------- */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  --shadow-elevation: 0 8px 16px rgba(0, 0, 0, 0.08);

  /* ---------- Radius ---------- */
  --radius: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* ---------- Motion ---------- */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 200ms ease-in-out;
  --transition-slow: 300ms ease-in-out;

  /* ---------- Typography scale ---------- */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;

  /* Font stack used across ui.solidrange.com. Load Cairo + IBM
     Plex Sans from Google Fonts (see INSTRUCTIONS.md) before
     using this — see the <link> snippet in the instructions. */
  --font-family: 'Cairo', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-family-mono: 'Roboto Mono', Consolas, 'Monaco', monospace;
}

/* Optional baseline — remove this block if your project already
   has its own reset/body rule and just wants the tokens above. */
*, *::before, *::after { box-sizing: border-box; }
body {
  font-family: var(--font-family);
  background: var(--bg-secondary);
  color: var(--text-primary);
}
