/* ==========================================================================
   CREES PropTech Platform — Design System Tokens (Stage 2)
   Institutional Asset Management & Fiduciary Property Care
   ========================================================================== */

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

:root {
  /* --------------------------------------------------------------------------
     1. Brand & Core Identity (Corporate Deep Navy & Institutional Blue)
     -------------------------------------------------------------------------- */
  --crees-navy-950: #060D17; /* Deep institutional background */
  --crees-navy-900: #0B192C; /* Primary header & sidebar dark chrome */
  --crees-navy-850: #0F223D; /* Surface accent / active nav */
  --crees-navy-800: #162E4F; /* Dark border & divider */
  --crees-navy-700: #1E3E66; /* Subdued dark accent */

  --crees-blue-700: #0043A8;
  --crees-blue-600: #0052CC; /* Primary interactive brand action */
  --crees-blue-500: #1D68EC; /* Hover state */
  --crees-blue-400: #3B82F6; /* Focus ring & active tag */
  --crees-blue-100: #DBEAFE;
  --crees-blue-50:  #EFF6FF; /* Subtle active tint */

  /* --------------------------------------------------------------------------
     2. Neutral Slate Palette (Disciplined Fiduciary White & Neutral Surfaces)
     -------------------------------------------------------------------------- */
  --crees-slate-900: #0F172A; /* Primary typography & heavy headings */
  --crees-slate-800: #1E293B; /* Secondary headings */
  --crees-slate-700: #334155; /* Body text & dense data */
  --crees-slate-600: #475569; /* Supporting labels & table headers */
  --crees-slate-500: #64748B; /* Muted text & timestamps */
  --crees-slate-400: #94A3B8; /* Secondary icons & inactive states */
  --crees-slate-300: #CBD5E1; /* Input borders & crisp grid lines */
  --crees-slate-200: #E2E8F0; /* Primary card borders & dividers */
  --crees-slate-100: #F1F5F9; /* Card background sub-surfaces & table header bg */
  --crees-slate-50:  #F8FAFC; /* Page canvas background */
  --crees-white:     #FFFFFF; /* Elevated card surface */

  /* --------------------------------------------------------------------------
     3. Semantic Status & Severity Tokens (Asset Care, Approvals & Inspections)
     -------------------------------------------------------------------------- */
  /* Good / Pass / Approved / Active */
  --crees-success-700: #047857;
  --crees-success-600: #059669;
  --crees-success-500: #10B981;
  --crees-success-100: #D1FAE5;
  --crees-success-50:  #ECFDF5;
  --crees-success-border: #A7F3D0;

  /* Warning / Pending Owner Approval / Action Required / Due Soon */
  --crees-warning-700: #B45309;
  --crees-warning-600: #D97706;
  --crees-warning-500: #F59E0B;
  --crees-warning-100: #FEF3C7;
  --crees-warning-50:  #FFFBEB;
  --crees-warning-border: #FDE68A;

  /* Critical / Severe Issue / Emergency / Rejected / Overdue */
  --crees-danger-700: #B91C1C;
  --crees-danger-600: #DC2626;
  --crees-danger-500: #EF4444;
  --crees-danger-100: #FEE2E2;
  --crees-danger-50:  #FEF2F2;
  --crees-danger-border: #FECACA;

  /* Information / Scheduled / Routine Audit */
  --crees-info-700: #4338CA;
  --crees-info-600: #4F46E5;
  --crees-info-500: #6366F1;
  --crees-info-100: #E0E7FF;
  --crees-info-50:  #EEF2FF;
  --crees-info-border: #C7D2FE;

  /* --------------------------------------------------------------------------
     4. Typography Scale & Font System
     -------------------------------------------------------------------------- */
  --font-family-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-family-mono: 'JetBrains Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;

  --text-2xs:  0.6875rem; /* 11px - Micro metadata & caps pill */
  --text-xs:   0.75rem;   /* 12px - Timestamps, table column headers */
  --text-sm:   0.8125rem; /* 13px - Subtext, secondary table cells */
  --text-base: 0.875rem;  /* 14px - Primary interface & form labels */
  --text-md:   0.9375rem; /* 15px - Body copy & card titles */
  --text-lg:   1.0625rem; /* 17px - Section headers */
  --text-xl:   1.25rem;   /* 20px - Page sub-headers */
  --text-2xl:  1.5rem;    /* 24px - Property headers & modal titles */
  --text-3xl:  1.875rem;  /* 30px - Portfolio summary headers */

  --font-weight-regular: 400;
  --font-weight-medium:  500;
  --font-weight-semibold:600;
  --font-weight-bold:    700;
  --font-weight-extrabold: 800;

  --line-height-tight: 1.25;
  --line-height-snug:  1.35;
  --line-height-base:  1.5;
  --line-height-loose: 1.6;

  /* --------------------------------------------------------------------------
     5. Disciplined Spacing Scale (4px / 8px Grid)
     -------------------------------------------------------------------------- */
  --space-0:   0px;
  --space-1:   0.25rem;  /* 4px */
  --space-1-5: 0.375rem; /* 6px */
  --space-2:   0.5rem;   /* 8px */
  --space-2-5: 0.625rem; /* 10px */
  --space-3:   0.75rem;  /* 12px */
  --space-4:   1rem;     /* 16px */
  --space-5:   1.25rem;  /* 20px */
  --space-6:   1.5rem;   /* 24px */
  --space-8:   2rem;     /* 32px */
  --space-10:  2.5rem;   /* 40px */
  --space-12:  3rem;     /* 48px */
  --space-16:  4rem;     /* 64px */

  /* --------------------------------------------------------------------------
     6. Border Radii (Restrained & Architectural - No Bubbly Corners)
     -------------------------------------------------------------------------- */
  --radius-xs:   3px;
  --radius-sm:   5px;
  --radius-md:   7px;
  --radius-lg:   9px;
  --radius-xl:   12px;
  --radius-pill: 9999px;

  /* --------------------------------------------------------------------------
     7. Elevation & Shadows (Crisp Institutional Depth)
     -------------------------------------------------------------------------- */
  --shadow-none: none;
  --shadow-xs:   0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm:   0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md:   0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg:   0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
  --shadow-modal: 0 20px 25px -5px rgba(11, 25, 44, 0.22), 0 8px 10px -6px rgba(11, 25, 44, 0.1);
  --shadow-drawer: -8px 0 24px rgba(11, 25, 44, 0.16);

  /* --------------------------------------------------------------------------
     8. Layout Dimensions & Breakpoints
     -------------------------------------------------------------------------- */
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 68px;
  --topbar-height: 60px;
  --mobile-bottom-bar-height: 62px;
  --max-content-width: 1480px;

  --z-base:        1;
  --z-dropdown:    100;
  --z-sticky:      200;
  --z-header:      300;
  --z-drawer:      400;
  --z-modal:       500;
  --z-toast:       600;

  /* --------------------------------------------------------------------------
     9. Transitions & Animations
     -------------------------------------------------------------------------- */
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --duration-fast: 150ms;
  --duration-base: 220ms;
  --duration-slow: 350ms;
}
