/* Professional Gray Design System - Clean UI Slate */
:root {
  /* Spacing System - 4pt base */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Layout Tokens */
  --layout-panel-sm: 320px;
  --layout-panel-md: 380px;
  --layout-panel-lg: 400px;
  --layout-device-width: 430px;
  --layout-device-height: 932px;
  --layout-device-frame-width: 446px;
  --layout-device-frame-height: 948px;
  --layout-max-width: 1800px;

  /* Typography Scale */
  --text-xxs: 10px;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 32px;

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

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(30, 64, 175, 0.05);
  --shadow-md: 0 4px 6px rgba(30, 64, 175, 0.07);
  --shadow-lg: 0 10px 15px rgba(30, 64, 175, 0.1);
  --shadow-xl: 0 20px 25px rgba(30, 64, 175, 0.12);
}

/* Professional Gray Theme */
[data-theme="professional"] {
  /* Gray Scale - Traditional naming */
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;

  /* 70% Neutrals - Enhanced Gray Gradient for Better Visibility */
  --color-surface: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  --color-surface-secondary: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  --color-surface-tertiary: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
  --color-surface-elevated: #ffffff;
  --color-border: #d1d5db;
  --color-border-subtle: linear-gradient(135deg, #e5e7eb 0%, #f3f4f6 100%);
  
  /* Message Background Colors - Solid for proper rendering */
  --color-message-received: #e2e8f0;
  --color-message-sent: #ffffff;
  
  /* Text Colors */
  --color-text-primary: #1f2937;
  --color-text-secondary: #4b5563;
  --color-text-tertiary: #6b7280;
  --color-text-inverse: #ffffff;
  
  /* 20% Primary - Professional Blue Gradients */
  --color-primary: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  --color-primary-hover: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  --color-primary-light: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  --color-primary-muted: rgba(59, 130, 246, 0.1);
  --color-primary-dark: #1e3a8a;
  
  /* Secondary & Accent - Solid colors for swatches */
  --color-secondary: #059669;
  --color-accent: #d97706;
  
  /* 10% Accent - Gradients for buttons */
  --color-success: linear-gradient(135deg, #047857 0%, #059669 100%);
  --color-success-muted: rgba(16, 185, 129, 0.1);
  --color-warning: linear-gradient(135deg, #b45309 0%, #d97706 100%);
  --color-error: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  --color-info: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
  
  /* Professional Gradients */
  --gradient-header: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 20%, #1e40af 100%);
  --gradient-card: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
  --gradient-sidebar: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
  --gradient-accent: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #0ea5e9 100%);
  
  /* Glass Effects */
  --glass-bg: rgba(248, 250, 252, 0.85);
  --glass-bg-transparent: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(30, 64, 175, 0.15);
  --glass-blur: blur(20px);
}

/* Dark Mode */
[data-theme="professional"][data-mode="dark"] {
  --color-surface: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  --color-surface-secondary: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  --color-surface-tertiary: linear-gradient(135deg, #374151 0%, #4b5563 100%);
  --color-border: #4b5563;
  
  --color-text-primary: #f9fafb;
  --color-text-secondary: #d1d5db;
  --color-text-tertiary: #9ca3af;
  
  --gradient-header: linear-gradient(135deg, #111827 0%, #1f2937 20%, #1e40af 100%);
  --gradient-card: linear-gradient(135deg, #1f2937 0%, #111827 50%, #0f172a 100%);
  --gradient-sidebar: linear-gradient(180deg, #111827 0%, #1f2937 50%, #374151 100%);
  
  --glass-bg: rgba(17, 24, 39, 0.85);
  --glass-border: rgba(59, 130, 246, 0.2);
}
