/* ╔══════════════════════════════════════════════════════════════╗
   ║  MO Qutp - نظام التصميم الرئيسي (النمط الأبيض الثمين)      ║
   ║  Design Tokens, Reset, Typography, Utilities                ║
   ╚══════════════════════════════════════════════════════════════╝ */

:root {
  /* Primary Colors - Royal Purple */
  --primary-50: #f5f3ff;
  --primary-100: #ede9fe;
  --primary-200: #ddd6fe;
  --primary-300: #c4b5fd;
  --primary-400: #a78bfa;
  --primary-500: #7c3aed;
  --primary-600: #6d28d9;
  --primary-700: #5b21b6;
  --primary-800: #4c1d95;
  --primary-900: #3b0764;

  /* Secondary Colors - Luxury Gold/Amber */
  --secondary-50: #fffbeb;
  --secondary-100: #fef3c7;
  --secondary-200: #fde68a;
  --secondary-300: #fcd34d;
  --secondary-400: #d97706;
  --secondary-500: #b45309;
  --secondary-600: #92400e;
  --secondary-700: #78350f;
  --secondary-800: #451a03;

  /* Accent Colors */
  --accent-rose: #db2777;
  --accent-teal: #0d9488;
  --accent-coral: #e11d48;
  --accent-sky: #0284c7;

  /* Backgrounds - High Contrast Clean White Theme */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.95);
  --bg-glass-hover: rgba(241, 245, 249, 0.95);
  --bg-input: #f8fafc;

  /* Text Colors - Deep Navy / Slate */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-tertiary: #64748b;
  --text-muted: #94a3b8;

  /* Border Colors */
  --border-primary: #e2e8f0;
  --border-secondary: #f1f5f9;
  --border-accent: rgba(124, 58, 237, 0.25);

  /* Status Colors */
  --status-success: #10b981;
  --status-success-bg: #ecfdf5;
  --status-warning: #d97706;
  --status-warning-bg: #fffbeb;
  --status-danger: #ef4444;
  --status-danger-bg: #fef2f2;
  --status-info: #0284c7;
  --status-info-bg: #f0f9ff;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md: 0 4px 12px -2px rgba(15,23,42,0.08), 0 2px 4px -1px rgba(15,23,42,0.04);
  --shadow-lg: 0 12px 28px -4px rgba(15,23,42,0.1), 0 4px 6px -2px rgba(15,23,42,0.05);
  --shadow-glow-primary: 0 0 20px rgba(124, 58, 237, 0.18);
  --shadow-glow-secondary: 0 0 20px rgba(217, 119, 6, 0.18);
  --shadow-glow-rose: 0 0 20px rgba(219, 39, 119, 0.18);

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

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  /* 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;

  /* Transitions & Z-Index */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  --z-header: 100;
  --z-sidebar: 200;
  --z-modal: 1000;
  --z-toast: 2000;

  --sidebar-width: 260px;
  --header-height: 70px;
}

/* ===== CSS Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Tajawal', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  direction: rtl;
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
}

a {
  color: var(--primary-600);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-700);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* Utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-muted { color: var(--text-muted) !important; }
.text-tertiary { color: var(--text-tertiary) !important; }
.text-danger { color: var(--status-danger) !important; }
.text-success { color: var(--status-success) !important; }
.text-warning { color: var(--status-warning) !important; }
.text-primary { color: var(--primary-600) !important; }

.number { font-family: 'Inter', 'Tajawal', monospace; }
.price { font-family: 'Inter', 'Tajawal', monospace; font-weight: 700; color: var(--primary-700); }

.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.p-0 { padding: 0 !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
