/* CSS Variables for the ERP Company Website */
:root {
  /* Primary Colors */
  --primary-color: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1e40af;
  --primary-gradient: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  
  /* Secondary Colors */
  --secondary-color: #1e40af;
  --secondary-light: #2563eb;
  --secondary-dark: #1e3a8a;
  
  /* Accent Colors */
  --accent-color: #3b82f6;
  --accent-light: #60a5fa;
  --accent-dark: #2563eb;
  
  /* Neutral Colors */
  --white: #ffffff;
  --black: #000000;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Success, Warning, Error */
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --info-color: #3b82f6;
  
  /* Typography */
  --font-primary: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-secondary: 'Inter', Arial, sans-serif;
  
  /* Font Sizes */
  --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;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  
  /* Spacing */
  --spacing-1: 0.25rem;
  --spacing-2: 0.5rem;
  --spacing-3: 0.75rem;
  --spacing-4: 1rem;
  --spacing-5: 1.25rem;
  --spacing-6: 1.5rem;
  --spacing-8: 2rem;
  --spacing-10: 2.5rem;
  --spacing-12: 3rem;
  --spacing-16: 4rem;
  --spacing-20: 5rem;
  
  /* Border Radius */
  --radius-sm: 0.125rem;
  --radius-base: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-3d: 0 8px 16px rgba(0, 0, 0, 0.15);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
  
  /* Z-Index */
  --z-modal: 1000;
  --z-navbar: 1030;
  --z-loading: 9999;
}

/* وضع داكن - تحديث شامل */
[data-theme="dark"] {
  /* ألوان الخلفية */
  --white: #0f172a;
  --black: #ffffff;
  --gray-50: #0f172a;
  --gray-100: #1e293b;
  --gray-200: #334155;
  --gray-300: #475569;
  --gray-400: #64748b;
  --gray-500: #94a3b8;
  --gray-600: #cbd5e1;
  --gray-700: #e2e8f0;
  --gray-800: #f1f5f9;
  --gray-900: #ffffff;
  
  /* ألوان أساسية محسّنة للوضع الداكن */
  --primary-color: #60a5fa;
  --primary-light: #93c5fd;
  --primary-dark: #3b82f6;
  --primary-gradient: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  
  /* ألوانAccent محسّنة */
  --accent-color: #60a5fa;
  --accent-light: #93c5fd;
  --accent-dark: #3b82f6;
  
  /* نجاح , تحذير , خطأ للوضع الداكن */
  --success-color: #34d399;
  --warning-color: #fbbf24;
  --error-color: #f87171;
  --info-color: #60a5fa;
  
  /* ظلال محسّنة للوضع الداكن */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  --shadow-3d: 0 8px 16px rgba(0, 0, 0, 0.6);
}

/* تنسيق خلفية الجسم في الوضع الداكن */
[data-theme="dark"] body {
  background-color: var(--gray-50);
  color: var(--gray-900);
}

/* ألوان النص في الوضع الداكن */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: var(--gray-900);
}

[data-theme="dark"] p {
  color: var(--gray-700);
}

/* بطاقات ومكونات الوضع الداكن */
[data-theme="dark"] .card,
[data-theme="dark"] .service-card,
[data-theme="dark"] .pricing-card,
[data-theme="dark"] .team-card,
[data-theme="dark"] .testimonial-item,
[data-theme="dark"] .contact-form-wrapper,
[data-theme="dark"] .faq-item {
  background: var(--gray-100);
  border-color: var(--gray-300);
  color: var(--gray-900);
}

/* عناصر التحكم في النماذج */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
  background: var(--gray-200);
  border-color: var(--gray-400);
  color: var(--gray-900);
}

[data-theme="dark"] .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.3);
}

[data-theme="dark"] .form-control::placeholder {
  color: var(--gray-500);
}

/* تنقل في الوضع الداكن */
[data-theme="dark"] .nav-link {
  color: var(--gray-700) !important;
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  color: var(--primary-color) !important;
}

[data-theme="dark"] .dropdown-item {
  color: var(--gray-700);
}

[data-theme="dark"] .dropdown-item:hover {
  color: var(--primary-color);
  background: rgba(96, 165, 250, 0.1);
}
