/**
 * Chatyug Portal - Modern Color System
 * Centralized color definitions for consistent theming across all pages
 * Original Color Scheme: Purple (#8231D3) and Indigo-Purple Gradient (#667eea to #764ba2)
 */

:root {
  /* ============================================
     PRIMARY BRAND COLORS (Purple)
     Based on #8231D3 - Original primary color
     ============================================ */
  --primary-50: #f2eafb;
  --primary-100: #e6d5f7;
  --primary-200: #ccabef;
  --primary-300: #b381e7;
  --primary-400: #9957df;
  --primary-500: #8231D3;  /* Main Primary Color - Original Purple */
  --primary-600: #6726A8;
  --primary-700: #4d1c7d;
  --primary-800: #331252;
  --primary-900: #1a0927;
  
  /* Legacy support - map to new system */
  --primary-color: var(--primary-500);
  --primary-dark: var(--primary-600);
  
  /* ============================================
     SECONDARY ACCENT COLORS (Blue)
     Based on #5840FF - Original secondary color
     ============================================ */
  --secondary-50: #e8e6ff;
  --secondary-100: #d1cdff;
  --secondary-200: #a39bff;
  --secondary-300: #7569ff;
  --secondary-400: #5840FF;  /* Main Secondary Color - Original Blue */
  --secondary-500: #3520C8;
  --secondary-600: #2a1a9f;
  --secondary-700: #1f1376;
  --secondary-800: #140d4d;
  --secondary-900: #0a0624;
  
  /* Legacy support */
  --secondary-color: var(--secondary-400);
  
  /* ============================================
     WHATSAPP BRAND COLORS (for chat features)
     Kept original - works well with new palette
     ============================================ */
  --whatsapp-50: #f0fdf4;
  --whatsapp-100: #dcfce7;
  --whatsapp-200: #bbf7d0;
  --whatsapp-300: #86efac;
  --whatsapp-400: #4ade80;
  --whatsapp-500: #25d366;  /* WhatsApp Green */
  --whatsapp-600: #128c7e;  /* WhatsApp Dark */
  --whatsapp-700: #075e54;
  --whatsapp-800: #064e42;
  --whatsapp-900: #022c22;
  
  --whatsapp-green: var(--whatsapp-500);
  --whatsapp-dark: var(--whatsapp-600);
  --whatsapp-light: #dcf8c6;
  --whatsapp-bg: #ece5dd;
  
  /* ============================================
     SEMANTIC COLORS (Success, Warning, Danger, Info)
     Kept original - good contrast with new palette
     ============================================ */
  /* Success */
  --success-50: #f0fdf4;
  --success-100: #dcfce7;
  --success-200: #bbf7d0;
  --success-300: #86efac;
  --success-400: #4ade80;
  --success-500: #10b981;
  --success-600: #059669;
  --success-700: #047857;
  --success-800: #065f46;
  --success-900: #064e42;
  
  --success-color: var(--success-500);
  
  /* Warning */
  --warning-50: #fffbeb;
  --warning-100: #fef3c7;
  --warning-200: #fde68a;
  --warning-300: #fcd34d;
  --warning-400: #fbbf24;
  --warning-500: #f59e0b;
  --warning-600: #d97706;
  --warning-700: #b45309;
  --warning-800: #92400e;
  --warning-900: #78350f;
  
  --warning-color: var(--warning-500);
  
  /* Danger/Error */
  --danger-50: #fef2f2;
  --danger-100: #fee2e2;
  --danger-200: #fecaca;
  --danger-300: #fca5a5;
  --danger-400: #f87171;
  --danger-500: #ef4444;
  --danger-600: #dc2626;
  --danger-700: #b91c1c;
  --danger-800: #991b1b;
  --danger-900: #7f1d1d;
  
  --danger-color: var(--danger-500);
  --error-color: var(--danger-500);
  
  /* Info */
  --info-50: #ecfeff;
  --info-100: #cffafe;
  --info-200: #a5f3fc;
  --info-300: #67e8f9;
  --info-400: #22d3ee;
  --info-500: #06b6d4;
  --info-600: #0891b2;
  --info-700: #0e7490;
  --info-800: #155e75;
  --info-900: #164e63;
  
  --info-color: var(--info-500);
  
  /* ============================================
     NEUTRAL COLORS (Grays)
     Updated to complement new palette
     ============================================ */
  --gray-50: #ffffff;
  --gray-100: #f8f9fb;
  --gray-200: #f4f5f7;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* ============================================
     TEXT COLORS
     ============================================ */
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-tertiary: #9ca3af;
  --text-inverse: #ffffff;
  --text-muted: var(--text-secondary);
  --text-dark: var(--text-primary);
  
  /* ============================================
     BACKGROUND COLORS
     Using palette colors for backgrounds
     ============================================ */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fb;
  --bg-tertiary: #f4f5f7;
  --bg-overlay: rgba(0, 0, 0, 0.5);
  --bg-light: var(--bg-secondary);
  --light-color: var(--bg-secondary);
  
  /* ============================================
     BORDER COLORS
     ============================================ */
  --border-light: #e5e7eb;
  --border-medium: #d1d5db;
  --border-dark: #9ca3af;
  --border-color: var(--border-light);
  
  /* ============================================
     MODERN GRADIENTS
     Updated to use new palette colors
     ============================================ */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-whatsapp: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --gradient-cool: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  
  /* Legacy gradient support */
  --gradient-success-legacy: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  --gradient-warning-legacy: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-info-legacy: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  
  /* ============================================
     SHADOWS (Modern, Subtle)
     ============================================ */
  --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);
  
  /* Legacy shadow support */
  --shadow-sm-legacy: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md-legacy: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg-legacy: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl-legacy: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* ============================================
     BORDER RADIUS (Modern Values)
     ============================================ */
  --radius-sm: 0.375rem;   /* 6px */
  --radius-md: 0.5rem;     /* 8px */
  --radius-lg: 0.75rem;     /* 12px */
  --radius-xl: 1rem;       /* 16px */
  --radius-2xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;
  
  /* ============================================
     ADDITIONAL UTILITY COLORS
     ============================================ */
  --dark-color: var(--gray-800);
  --light-color: var(--gray-50);
}
