/**
 * Design Tokens - NodeSelf/UseSelf Platform
 * Extracted from UI Mocks specifications
 */

:root {
  /* Primary Colors - From UI Mocks */
  --color-primary: #135bec;
  --color-primary-hover: #1048c7;
  --color-primary-light: #3b82f6;
  --color-primary-dark: #0f4ac4;

  /* Status Colors */
  --color-success: #10B981;
  --color-success-light: #34D399;
  --color-warning: #F59E0B;
  --color-warning-light: #FBBF24;
  --color-danger: #EF4444;
  --color-danger-light: #F87171;
  --color-info: #3B82F6;

  /* Neutral Colors */
  --color-neutral-50: #F9FAFB;
  --color-neutral-100: #F3F4F6;
  --color-neutral-200: #E5E7EB;
  --color-neutral-300: #D1D5DB;
  --color-neutral-400: #9CA3AF;
  --color-neutral-500: #6B7280;
  --color-neutral-600: #4B5563;
  --color-neutral-700: #374151;
  --color-neutral-800: #1F2937;
  --color-neutral-900: #111827;

  /* Status Indicators */
  --status-online: #10B981;
  --status-warning: #F59E0B;
  --status-offline: #EF4444;
  --status-pending: #8B5CF6;
  --status-syncing: #3B82F6;

  /* Background Colors */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F6F6F8;
  --bg-tertiary: #F3F4F6;
  --bg-dark: #101622;
  --bg-dark-secondary: #1F2937;

  /* Text Colors */
  --text-primary: #111827;
  --text-secondary: #6B7280;
  --text-tertiary: #9CA3AF;
  --text-inverse: #FFFFFF;
  --text-link: #2563EB;

  /* Border Colors */
  --border-light: #E5E7EB;
  --border-default: #D1D5DB;
  --border-dark: #374151;

  /* Spacing Scale */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Font Sizes */
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-md: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 30px;
  --font-size-4xl: 36px;

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

  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

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

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 200ms ease;
  --transition-slow: 300ms ease;

  /* Z-Index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
  --z-toast: 800;

  /* Layout */
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 64px;
  --topbar-height: 64px;
  --content-max-width: 1280px;

  /* Icon Sizes */
  --icon-xs: 16px;
  --icon-sm: 20px;
  --icon-md: 24px;
  --icon-lg: 28px;
  --icon-xl: 32px;
}

/* Dark Mode Overrides */
[data-theme="dark"] {
  --bg-primary: #101622;
  --bg-secondary: #1F2937;
  --bg-tertiary: #374151;
  --text-primary: #F9FAFB;
  --text-secondary: #9CA3AF;
  --text-tertiary: #6B7280;
  --border-light: #374151;
  --border-default: #4B5563;
}

/* NodeSelf Theme (Admin - Blue) */
[data-app="nodeself"] {
  --color-primary: #2563EB;
  --color-primary-hover: #1D4ED8;
}

/* UseSelf Theme (Member - Cyan) - From UI Mocks B3-1 */
[data-app="useself"] {
  --color-primary: #13a4ec;
  --color-primary-hover: #0d8fd4;
  --bg-dark: #101c22;
}

/* BookingMaster Theme (Tourism - Green) */
[data-suite="booking"] {
  --color-primary: #10B981;
  --color-primary-hover: #059669;
}
