/* ============================================================
   BizEmpire — Design Tokens (Royal Exchange Day Edition)
   Authentic, human-crafted, high-contrast light theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* ---- Background Surfaces (Clean Warm Porcelain & Paper White) ---- */
  --bg-base:        #F8FAFC;   /* Main viewport background — light slate 50 */
  --bg-panel:       #FFFFFF;   /* Primary card / panel surface — crisp white */
  --bg-raised:      #F1F5F9;   /* Elevated panels, dropdowns, secondary areas */
  --bg-inset:       #F8FAFC;   /* Inset data wells, tables, inputs */
  --bg-hover:       #F1F5F9;   /* Interactive hover */
  --bg-active:      #E2E8F0;   /* Pressed / active selection */
  --bg-glass:       rgba(255, 255, 255, 0.92); /* Frosted header backdrop */

  /* ---- Borders & Rules (Razor-Sharp & Subtle) ---- */
  --border:         #E2E8F0;   /* Slate 200 default border */
  --border-light:   #CBD5E1;   /* Slate 300 interactive border */
  --border-subtle:  #F1F5F9;   /* Slate 100 row dividers */
  --border-focus:   #0F172A;   /* Oxford ink focus ring */
  --border-danger:  #FECACA;   /* Rose border */

  /* ---- Primary Brand & Action Accents ---- */
  --accent-primary:      #0F172A; /* Oxford Ink — authoritative & human */
  --accent-primary-hover:#1E293B; 
  --accent-primary-glow: rgba(15, 23, 42, 0.12);
  
  --accent-secondary:    #2563EB; /* Royal Navy Blue */
  --accent-secondary-lt: #3B82F6;

  /* ---- Status & Financial Semantics (Forest Emerald / Crimson / Amber) ---- */
  --accent-green:        #059669; /* Profit, Cash, Buy, Active, Positive */
  --accent-green-lt:     #10B981;
  --accent-green-bg:     #ECFDF5;
  --accent-green-border: #A7F3D0;

  --accent-rose:         #DC2626; /* Loss, Debt, Sell, Danger, Negative */
  --accent-rose-lt:      #EF4444;
  --accent-rose-bg:      #FEF2F2;
  --accent-rose-border:  #FECACA;

  --accent-amber:        #D97706; /* Construction, Warning, Pending */
  --accent-amber-lt:     #F59E0B;
  --accent-amber-bg:     #FFFBEB;
  --accent-amber-border: #FDE68A;

  --accent-blue:         #0284C7; /* Informational / Trade link */
  --accent-blue-bg:      #F0F9FF;
  --accent-blue-border:  #BAE6FD;

  /* ---- Legacy Compatibility Aliases ---- */
  --accent-gold:         var(--accent-primary);
  --accent-gold-lt:      var(--accent-primary-hover);
  --accent-crimson:      var(--accent-rose);
  --accent-crimson-lt:   var(--accent-rose-lt);
  --accent-copper:       var(--accent-secondary);

  /* ---- Typography Colors (Deep Charcoal & Slate Inks) ---- */
  --text-primary:   #0F172A;   /* Oxford Ink primary text */
  --text-muted:     #475569;   /* Slate 600 secondary text */
  --text-dim:       #94A3B8;   /* Slate 400 caption text */
  --text-inverse:   #FFFFFF;   /* White text on dark primary buttons */
  --text-accent:    #0284C7;   /* Blue highlight */
  --text-green:     #059669;   /* Green profit text */
  --text-rose:      #DC2626;   /* Red loss text */
  --text-crimson:   #DC2626;   
  --text-amber:     #D97706;   
  --text-gold:      #0F172A;   

  /* ---- Typography Families ---- */
  --font-heading:   'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body:      'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:      'JetBrains Mono', 'Fira Code', monospace;

  /* ---- Type Scale ---- */
  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.875rem;  /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg:   1.125rem;  /* 18px */
  --text-xl:   1.25rem;   /* 20px */
  --text-2xl:  1.5rem;    /* 24px */
  --text-3xl:  1.875rem;  /* 30px */
  --text-4xl:  2.25rem;   /* 36px */

  /* ---- Spacing System ---- */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1.0rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2.0rem;
  --space-10: 2.5rem;
  --space-12: 3.0rem;
  --space-16: 4.0rem;

  /* ---- Modern Border Radius ---- */
  --radius-xs:  4px;
  --radius-sm:  6px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --radius-full:9999px;

  /* ---- Paper Shadows & Elevations ---- */
  --shadow-sm:     0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-panel:  0 1px 3px 0 rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.06);
  --shadow-modal:  0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
  --shadow-inset:  inset 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-primary:0 4px 12px rgba(15, 23, 42, 0.15);
  --shadow-green:  0 4px 12px rgba(5, 150, 105, 0.15);
  --shadow-rose:   0 4px 12px rgba(220, 38, 38, 0.15);
  --shadow-gold:   var(--shadow-primary);

  /* ---- Layout Metrics ---- */
  --sidebar-width:    220px;
  --header-height:    58px;
  --statusbar-height: 34px;
  --panel-min-w:      280px;

  /* ---- Transitions ---- */
  --transition-fast:   150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:   350ms cubic-bezier(0.4, 0, 0.2, 1);

  /* ---- Z-index Scale ---- */
  --z-base:     1;
  --z-panel:    10;
  --z-sticky:   20;
  --z-dropdown: 50;
  --z-modal:    100;
  --z-toast:    200;
}
