/**
 * reachDr Design System - CSS Variables
 * Brand: reachDr (Healthcare RTM/RPM/CCM Platform)
 * Primary Color: Teal (#0f4c55)
 * 
 * Usage: All colors should reference these variables.
 * To change brand, update the brand color values below.
 */

:root {
  /* ========================================
     BRAND COLORS - reachDr Teal Palette
     Base: #0f4c55 (Logo color)
     ======================================== */
  --brand-50: #e6f4f6;
  --brand-100: #ccecef;
  --brand-200: #99d9de;
  --brand-300: #66c5ce;
  --brand-400: #33b2bd;
  --brand-500: #1a8f9a;
  --brand-600: #147078;
  --brand-700: #0f4c55;   /* Logo exact color */
  --brand-800: #0a3940;
  --brand-900: #062a30;
  --brand-950: #041c20;

  /* ========================================
     SEMANTIC COLORS
     ======================================== */
  /* Success - Green */
  --success-50: #ecfdf5;
  --success-100: #d1fae5;
  --success-200: #a7f3d0;
  --success-500: #10b981;
  --success-600: #059669;
  --success-700: #047857;

  /* Warning - Amber */
  --warning-50: #fffbeb;
  --warning-100: #fef3c7;
  --warning-200: #fde68a;
  --warning-500: #f59e0b;
  --warning-600: #d97706;
  --warning-700: #b45309;

  /* Error - Red */
  --error-50: #fef2f2;
  --error-100: #fee2e2;
  --error-200: #fecaca;
  --error-500: #ef4444;
  --error-600: #dc2626;
  --error-700: #b91c1c;

  /* Info - Blue */
  --info-50: #eff6ff;
  --info-100: #dbeafe;
  --info-200: #bfdbfe;
  --info-500: #3b82f6;
  --info-600: #2563eb;
  --info-700: #1d4ed8;

  /* ========================================
     NEUTRAL COLORS (Gray scale)
     ======================================== */
  --neutral-0: #ffffff;
  --neutral-25: #fcfcfd;
  --neutral-50: #f9fafb;
  --neutral-100: #f3f4f6;
  --neutral-200: #e5e7eb;
  --neutral-300: #d1d5db;
  --neutral-400: #9ca3af;
  --neutral-500: #6b7280;
  --neutral-600: #4b5563;
  --neutral-700: #374151;
  --neutral-800: #1f2937;
  --neutral-900: #111827;
  --neutral-950: #030712;

  /* ========================================
     TYPOGRAPHY
     ======================================== */
  --font-family-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-family-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

  /* Font Sizes (1.25 ratio - Major Third) */
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 1.875rem;  /* 30px */
  --font-size-4xl: 2.25rem;   /* 36px */
  --font-size-5xl: 3rem;      /* 48px */
  --font-size-6xl: 3.75rem;   /* 60px */

  /* Line Heights */
  --line-height-none: 1;
  --line-height-tight: 1.25;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 2;

  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  /* ========================================
     SPACING SCALE (8px base)
     ======================================== */
  --spacing-0: 0;
  --spacing-1: 0.25rem;   /* 4px */
  --spacing-2: 0.5rem;    /* 8px */
  --spacing-3: 0.75rem;   /* 12px */
  --spacing-4: 1rem;      /* 16px */
  --spacing-5: 1.25rem;   /* 20px */
  --spacing-6: 1.5rem;    /* 24px */
  --spacing-8: 2rem;      /* 32px */
  --spacing-10: 2.5rem;   /* 40px */
  --spacing-12: 3rem;     /* 48px */
  --spacing-16: 4rem;     /* 64px */
  --spacing-20: 5rem;     /* 80px */
  --spacing-24: 6rem;     /* 96px */
  --spacing-32: 8rem;     /* 128px */

  /* ========================================
     BORDER RADIUS
     ======================================== */
  --radius-none: 0;
  --radius-sm: 0.125rem;   /* 2px */
  --radius-default: 0.25rem; /* 4px */
  --radius-md: 0.375rem;   /* 6px */
  --radius-lg: 0.5rem;     /* 8px */
  --radius-xl: 0.75rem;    /* 12px */
  --radius-2xl: 1rem;      /* 16px */
  --radius-3xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;

  /* ========================================
     SHADOWS
     ======================================== */
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

  /* Brand shadows */
  --shadow-brand-sm: 0 1px 3px 0 rgb(15 76 85 / 0.15);
  --shadow-brand-md: 0 4px 6px -1px rgb(15 76 85 / 0.2);
  --shadow-brand-lg: 0 10px 15px -3px rgb(15 76 85 / 0.25);

  /* ========================================
     TRANSITIONS
     ======================================== */
  --transition-fast: 150ms;
  --transition-normal: 200ms;
  --transition-slow: 300ms;
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);

  /* ========================================
     Z-INDEX SCALE
     ======================================== */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 1080;
}

/* ========================================
   DARK MODE OVERRIDES
   ======================================== */
.dark {
  /* Invert neutral scale for dark mode */
  --neutral-0: #111827;
  --neutral-25: #1a202c;
  --neutral-50: #1f2937;
  --neutral-100: #374151;
  --neutral-200: #4b5563;
  --neutral-300: #6b7280;
  --neutral-400: #9ca3af;
  --neutral-500: #d1d5db;
  --neutral-600: #e5e7eb;
  --neutral-700: #f3f4f6;
  --neutral-800: #f9fafb;
  --neutral-900: #fcfcfd;
  --neutral-950: #ffffff;

  /* Adjusted shadows for dark mode */
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.3), 0 1px 2px -1px rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.3);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Text Colors */
.text-brand { color: var(--brand-600); }
.text-brand-dark { color: var(--brand-700); }
.text-success { color: var(--success-600); }
.text-warning { color: var(--warning-600); }
.text-error { color: var(--error-600); }
.text-muted { color: var(--neutral-500); }

/* Background Colors */
.bg-brand { background-color: var(--brand-600); }
.bg-brand-light { background-color: var(--brand-50); }
.bg-success-light { background-color: var(--success-50); }
.bg-warning-light { background-color: var(--warning-50); }
.bg-error-light { background-color: var(--error-50); }

/* Focus Ring */
.focus-ring {
  outline: none;
  box-shadow: 0 0 0 3px rgb(15 76 85 / 0.2);
}
