/* ============================================
   THE LOFT IT SOLUTIONS - CLIENT PORTAL TOKENS
   Light theme variant of the design system
   ============================================ */

:root {
  /* ============================================
     COLORS — Light Theme
     ============================================ */
  --color-bg-primary: #f8fafc;
  --color-bg-secondary: #f1f5f9;
  --color-bg-tertiary: #e2e8f0;
  --color-bg-glass: rgba(255, 255, 255, 0.8);
  --color-bg-glass-strong: rgba(255, 255, 255, 0.95);
  --color-bg-card: #ffffff;
  --color-bg-input: #f8fafc;
  --color-bg-hover: rgba(0, 0, 0, 0.03);

  /* Text */
  --color-text-primary: #0f172a;
  --color-text-secondary: #334155;
  --color-text-muted: #475569;
  --color-text-dim: #64748b;
  --color-text-caption: #94a3b8;

  /* Accent */
  --color-accent: #0ea5ff;
  --color-accent-secondary: #2563eb;
  --color-accent-light: #38bdf8;
  --color-accent-dark: #0284c7;
  --color-accent-glow: rgba(14, 165, 255, 0.10);

  /* Semantic */
  --color-success: #16a34a;
  --color-success-bg: rgba(22, 163, 74, 0.10);
  --color-warning: #d97706;
  --color-warning-bg: rgba(217, 119, 6, 0.10);
  --color-error: #dc2626;
  --color-error-bg: rgba(220, 38, 38, 0.10);
  --color-info: #7c3aed;
  --color-info-bg: rgba(124, 58, 237, 0.10);

  /* Borders */
  --color-border: rgba(0, 0, 0, 0.08);
  --color-border-hover: rgba(14, 165, 255, 0.30);
  --color-border-active: rgba(14, 165, 255, 0.50);
  --color-border-focus: #0ea5ff;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0ea5ff, #2563eb);
  --gradient-text: linear-gradient(135deg, #0f172a, #0ea5ff);
  --gradient-hero: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f8fafc 100%);

  /* ============================================
     SPACING (8px base)
     ============================================ */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* ============================================
     TYPOGRAPHY
     ============================================ */
  --font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  --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-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  --leading-tight: 1.1;
  --leading-snug: 1.4;
  --leading-normal: 1.6;
  --leading-relaxed: 1.8;

  /* ============================================
     BORDER RADIUS
     ============================================ */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;
  --radius-full: 9999px;

  /* ============================================
     SHADOWS — soft drop (light theme)
     ============================================ */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 16px rgba(14, 165, 255, 0.12);
  --shadow-modal: 0 20px 60px rgba(0, 0, 0, 0.15);

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

  /* ============================================
     Z-INDEX
     ============================================ */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal-backdrop: 500;
  --z-modal: 600;
  --z-toast: 800;

  /* ============================================
     LAYOUT
     ============================================ */
  --topbar-height: 64px;
  --content-max-width: 1200px;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0.01ms;
    --transition-base: 0.01ms;
    --transition-slow: 0.01ms;
  }
}

/* Status colors (same keys, adapted for light bg) */
.status-badge.pending    { background: rgba(100,116,139,0.12); color: #475569; }
.status-badge.inprogress { background: rgba(14,165,255,0.12);  color: #0284c7; }
.status-badge.completed  { background: rgba(22,163,74,0.12);   color: #15803d; }
.status-badge.overdue    { background: rgba(220,38,38,0.12);   color: #dc2626; }
.status-badge.paid       { background: rgba(22,163,74,0.12);   color: #15803d; }
.status-badge.due        { background: rgba(245,158,11,0.12);  color: #d97706; }
.status-badge.unpaid     { background: rgba(220,38,38,0.12);   color: #dc2626; }
