/*
 * GO AI — Design Tokens (single source of truth)
 * ─────────────────────────────────────────────────────────
 * Corporate, professional palette. No gradients, no neon.
 * Change a value here and the entire app follows.
 * Fonts are loaded in styles.blade.php (Manrope + JetBrains Mono).
 *
 * Dark mode is token-ready: fill [data-theme="dark"] below when needed.
 * (Kept in this file so a future dark ship needs no code changes elsewhere.)
 */

:root {
  /* ── Neutrals ─────────────────────────────────────────── */
  --ink: #0e1c30;             /* headings, strongest text      */
  --text: #33475b;            /* body text                     */
  --text-muted: #64798f;      /* secondary text                */
  --text-faint: #93a4b7;      /* placeholders, metadata        */
  --paper: #f4f6f9;           /* app background                */
  --surface: #ffffff;         /* cards, panels                 */
  --surface-alt: #f9fafc;     /* hover rows, subtle wells      */
  --line: #e3e8ef;            /* default border                */
  --line-strong: #cbd5e1;     /* emphasized border             */

  /* ── Primary (corporate blue) ─────────────────────────── */
  --primary-700: #143a6e;
  --primary-600: #194b91;     /* brand primary                 */
  --primary-500: #2660b0;
  --primary-200: #b9d0ec;
  --primary-100: #dbe7f6;
  --primary-50: #eef3fa;

  /* rgba() convenience — components use these, never literals */
  --primary: var(--primary-600);
  --primary-rgb: 25, 75, 145;
  --primary-hover: var(--primary-700);
  --primary-active: var(--primary-700);
  --primary-link-hover: var(--primary-500);
  --primary-008: rgba(var(--primary-rgb), 0.08);
  --primary-016: rgba(var(--primary-rgb), 0.16);
  --primary-040: rgba(var(--primary-rgb), 0.4);
  --primary-label-bg: var(--primary-50);
  --primary-label-bg-alt: var(--primary-100);
  --primary-border-label: var(--primary-200);
  --primary-alert-border: var(--primary-200);
  --primary-menu-active: var(--primary-600);
  --primary-menu-sub: var(--primary-500);
  --primary-menu-dot: var(--primary-500);
  --primary-soft: var(--primary-100);
  --primary-softer: var(--primary-200);
  --primary-softest: var(--primary-200);
  --app-chart-primary: var(--primary-600);

  /* Backwards-compatible aliases (legacy components reference these) */
  --app-primary: var(--primary-600);
  --app-primary-hover: var(--primary-hover);
  --app-primary-active: var(--primary-active);
  --app-primary-link-hover: var(--primary-link-hover);
  --app-primary-label-bg: var(--primary-label-bg);
  --app-primary-label-bg-alt: var(--primary-label-bg-alt);
  --app-primary-border-label: var(--primary-border-label);
  --app-primary-alert-border: var(--primary-alert-border);
  --app-primary-menu-active: var(--primary-menu-active);
  --app-primary-menu-sub: var(--primary-menu-sub);
  --app-primary-menu-dot: var(--primary-menu-dot);
  --app-primary-008: var(--primary-008);
  --app-primary-016: var(--primary-016);
  --app-primary-040: var(--primary-040);
  --app-primary-soft: var(--primary-soft);
  --app-primary-softer: var(--primary-softer);
  --app-primary-softest: var(--primary-softest);

  /* ── Channel spectrum (identifies each channel everywhere) ── */
  --ch-whatsapp: #1faa59;
  --ch-messenger: #0866ff;
  --ch-instagram: #d62976;
  --ch-telegram: #26a5e4;
  --ch-web: #566a7f;

  /* ── Semantic ─────────────────────────────────────────── */
  --success: #1a7f4e;
  --success-bg: #e7f4ec;
  --success-border: #bfe0cc;
  --warning: #b25e00;
  --warning-bg: #fdf3e4;
  --warning-border: #f2dcb4;
  --danger: #c92a3d;
  --danger-bg: #fbebee;
  --danger-border: #f0c4ca;
  --info: #0e7490;
  --info-bg: #e6f4f8;
  --info-border: #bcdde7;

  /* ── Typography ───────────────────────────────────────── */
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', 'Consolas', monospace;
  --fs-display: 1.625rem;   /* 26px — page titles           */
  --fs-h2: 1.25rem;         /* 20px — section heads         */
  --fs-h3: 0.9375rem;       /* 15px — card heads            */
  --fs-body: 0.875rem;      /* 14px — default               */
  --fs-sm: 0.8125rem;       /* 13px — metadata              */
  --fs-xs: 0.6875rem;       /* 11px — micro labels          */
  --lh-tight: 1.3;
  --lh-body: 1.55;

  /* ── Shape & elevation (borders over shadows) ─────────── */
  --radius-sm: 8px;         /* controls + cards             */
  --radius-md: 8px;         /* card surfaces                */
  --radius-lg: 10px;        /* overlays, modals             */
  --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgba(14, 28, 48, 0.05);
  --shadow-2: 0 2px 8px rgba(14, 28, 48, 0.07);
  --shadow-3: 0 8px 24px rgba(14, 28, 48, 0.12);

  /* ── Motion ───────────────────────────────────────────── */
  --ease: cubic-bezier(0.2, 0.6, 0.3, 1);
  --t-fast: 140ms;
  --t-med: 200ms;

  /* ── Layout (full-width content) ──────────────────────── */
  --content-max: 100%;
  --content-pad: 1.25rem;
}

/* Dark mode stub — ships light-only; fill in later without touching other files. */
[data-theme='dark'] {
  --ink: #e7edf5;
  --text: #c2cddb;
  --text-muted: #8b9bb0;
  --text-faint: #6b7c93;
  --paper: #0e1624;
  --surface: #16202f;
  --surface-alt: #1b2739;
  --line: #263449;
  --line-strong: #33455f;
}
