/* ============================================================
   Orbit — Color tokens  ·  "Cosmos" system
   ------------------------------------------------------------
   A next-generation palette aligned to the product's name:
   a deep-space dark sidebar, an iris-violet interactive primary,
   a cyan "aurora" accent, and cool slate neutrals. Base scales
   first, then semantic aliases — always prefer the aliases.
   ============================================================ */

:root {
  /* ---- Primary: Iris (interactive / action) ---- */
  --iris-50:  #eef0fe;
  --iris-100: #e3e3fd;
  --iris-200: #ccccfb;
  --iris-300: #aaa6f6;
  --iris-400: #8b84f1;
  --iris-500: #6d63ea;
  --iris-600: #5a4fe0;   /* primary action */
  --iris-700: #4a3fc7;   /* hover */
  --iris-800: #3c34a0;
  --iris-900: #332e7f;

  /* ---- Accent: Aurora cyan (highlights, automation, charts) ---- */
  --cyan-50:  #ecfeff;
  --cyan-100: #cffafe;
  --cyan-300: #67e8f9;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --cyan-600: #0891b2;

  /* ---- Deep space (dark sidebar / dark surfaces) ---- */
  --space-950: #090a16;
  --space-900: #0d0e1d;
  --space-850: #14152b;
  --space-800: #1b1d38;
  --space-700: #262a4d;
  --space-line: #262a4d;

  /* ---- Neutral: cool slate ---- */
  --white:     #ffffff;
  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-150: #eaeef4;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;

  /* ---- Info: Sky ---- */
  --sky-50:  #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-200: #bae6fd;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;

  /* ---- Success: Emerald ---- */
  --emerald-50:  #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-200: #a7f3d0;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;

  /* ---- Warning: Amber ---- */
  --amber-50:  #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-700: #b45309;
  --amber-800: #92400e;

  /* ---- Danger: Rose ---- */
  --rose-50:  #fff1f2;
  --rose-100: #ffe4e6;
  --rose-200: #fecdd3;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --rose-700: #be123c;

  /* ---- Secondary accents ---- */
  --violet-500: #8b5cf6;
  --violet-600: #7c3aed;
  --orbit-gold: #ffd700;   /* lightning glyph */

  /* ---- Data-viz sequence ---- */
  --chart-1: #5a4fe0;  /* iris   */
  --chart-2: #22d3ee;  /* cyan   */
  --chart-3: #10b981;  /* emerald*/
  --chart-4: #f59e0b;  /* amber  */
  --chart-5: #f43f5e;  /* rose   */
  --chart-6: #8b5cf6;  /* violet */
  --chart-7: #0ea5e9;  /* sky    */
  --chart-8: #f97316;  /* orange */

  /* ---- Gradients ---- */
  --gradient-sidebar: linear-gradient(180deg, #16172f 0%, #0c0d1b 100%); /* @kind color */
  --gradient-primary: linear-gradient(135deg, #6d63ea 0%, #5a4fe0 100%); /* @kind color */
  --gradient-aurora:  linear-gradient(135deg, #5a4fe0 0%, #8b5cf6 45%, #22d3ee 100%); /* @kind color */
  --gradient-hero:    radial-gradient(120% 140% at 0% 0%, #1d1f3d 0%, #0d0e1d 60%); /* @kind color */

  /* ============================================================
     Semantic aliases — prefer these in components
     ============================================================ */

  /* Primary */
  --color-primary:          var(--iris-600);
  --color-primary-hover:    var(--iris-700);
  --color-primary-active:   var(--iris-800);
  --color-primary-soft:     var(--iris-50);
  --color-primary-soft-fg:  var(--iris-700);
  --color-primary-ring:     var(--iris-500);
  --color-accent:           var(--cyan-500);

  /* Text (light surfaces) */
  --text-strong:   var(--slate-900);
  --text-body:     var(--slate-700);
  --text-muted:    var(--slate-500);
  --text-subtle:   var(--slate-400);
  --text-on-primary: var(--white);
  --text-link:     var(--iris-600);

  /* Text on dark (sidebar) */
  --text-dark-strong: #f3f4fb;
  --text-dark-body:   #c3c6e0;
  --text-dark-muted:  #8b8fb6;
  --text-dark-subtle: #5f648c;

  /* Surfaces */
  --surface-page:    #f6f7fb;
  --surface-card:    var(--white);
  --surface-sunken:  var(--slate-100);
  --surface-raised:  var(--white);
  --surface-column:  #f1f3f9;
  --surface-nav:     var(--space-900);
  --surface-nav-elevated: var(--space-850);
  --surface-overlay: rgba(255,255,255,0.72);

  /* Borders / dividers */
  --border-subtle:  var(--slate-150);
  --border-default: var(--slate-200);
  --border-strong:  var(--slate-300);
  --border-focus:   var(--iris-500);
  --border-dark:    rgba(255,255,255,0.08);
  --border-dark-strong: rgba(255,255,255,0.14);

  /* Semantic status (soft bg / fg / border) */
  --status-info-bg:    var(--sky-100);
  --status-info-fg:    var(--sky-700);
  --status-info-bd:    var(--sky-200);
  --status-success-bg: var(--emerald-100);
  --status-success-fg: var(--emerald-700);
  --status-success-bd: var(--emerald-200);
  --status-warn-bg:    var(--amber-100);
  --status-warn-fg:    var(--amber-800);
  --status-warn-bd:    var(--amber-200);
  --status-danger-bg:  var(--rose-100);
  --status-danger-fg:  var(--rose-700);
  --status-danger-bd:  var(--rose-200);

  /* Archived (amber rail) */
  --archived-bg:   var(--amber-50);
  --archived-rail: var(--amber-400);
  --archived-fg:   var(--amber-800);
}
