/*
|--------------------------------------------------------------------------
| CSS Variables - Light Mode (Default)
|--------------------------------------------------------------------------
|
| كل الألوان والمتغيرات في مكان واحد
| عشان تغير أي لون، غيره هنا بس وهيتغير في كل المشروع
|
*/

:root {
    /* ==================== Primary Colors ==================== */
    --primary-color: #1e3a5f;           /* الأزرق الغامق - اللون الرئيسي */
    --primary-light: #2c5282;           /* الأزرق الفاتح */
    --primary-dark: #1a365d;            /* الأزرق الأغمق */
    
    /* ==================== Secondary Colors ==================== */
    --secondary-color: #22c55e;         /* الأخضر - للأزرار */
    --secondary-light: #4ade80;         /* الأخضر الفاتح */
    --secondary-dark: #16a34a;          /* الأخضر الغامق */
    
    /* ==================== Accent Colors ==================== */
    --accent-color: #38bdf8;            /* السماوي - للـ Icons والـ Highlights */
    --accent-light: #7dd3fc;
    --accent-dark: #0ea5e9;
    
    /* ==================== Background Colors ==================== */
    --bg-body: #f8fafc;                 /* خلفية الصفحة */
    --bg-card: #ffffff;                 /* خلفية الكروت */
    --bg-sidebar: #1e3a5f;              /* خلفية الـ Sidebar */
    --bg-input: #ffffff;                /* خلفية الـ Inputs */
    --bg-hover: #f1f5f9;                /* خلفية عند الـ Hover */
    
    /* ==================== Text Colors ==================== */
    --text-primary: #1e293b;            /* النص الأساسي */
    --text-secondary: #64748b;          /* النص الثانوي */
    --text-muted: #94a3b8;              /* النص الباهت */
    --text-light: #ffffff;              /* النص الفاتح (على خلفية غامقة) */
    --text-on-primary: #ffffff;         /* النص على اللون الرئيسي */
    --text-on-secondary: #ffffff;       /* النص على اللون الثانوي */
    
    /* ==================== Border Colors ==================== */
    --border-color: #e2e8f0;            /* لون الحدود */
    --border-light: #f1f5f9;            /* حدود فاتحة */
    --border-dark: #cbd5e1;             /* حدود غامقة */
    --border-input: #d1d5db;            /* حدود الـ Inputs */
    --border-focus: #1e3a5f;            /* حدود عند الـ Focus */
    
    /* ==================== Status Colors ==================== */
    --success-color: #22c55e;           /* نجاح */
    --success-bg: #dcfce7;
    --success-text: #166534;
    
    --danger-color: #ef4444;            /* خطر/حذف */
    --danger-bg: #fee2e2;
    --danger-text: #991b1b;
    
    --warning-color: #f59e0b;           /* تحذير */
    --warning-bg: #fef3c7;
    --warning-text: #92400e;
    
    --info-color: #3b82f6;              /* معلومات */
    --info-bg: #dbeafe;
    --info-text: #1e40af;
    
    /* ==================== Shadow ==================== */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --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);
    
    /* ==================== Border Radius ==================== */
    --radius-sm: 0.25rem;               /* 4px */
    --radius-md: 0.5rem;                /* 8px */
    --radius-lg: 0.75rem;               /* 12px */
    --radius-xl: 1rem;                  /* 16px */
    --radius-full: 9999px;              /* Full rounded */
    
    /* ==================== Spacing ==================== */
    --spacing-xs: 0.25rem;              /* 4px */
    --spacing-sm: 0.5rem;               /* 8px */
    --spacing-md: 1rem;                 /* 16px */
    --spacing-lg: 1.5rem;               /* 24px */
    --spacing-xl: 2rem;                 /* 32px */
    
    /* ==================== Font ==================== */
    --font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-xs: 0.75rem;            /* 12px */
    --font-size-sm: 0.875rem;           /* 14px */
    --font-size-md: 1rem;               /* 16px */
    --font-size-lg: 1.125rem;           /* 18px */
    --font-size-xl: 1.25rem;            /* 20px */
    --font-size-2xl: 1.5rem;            /* 24px */
    --font-size-3xl: 1.875rem;          /* 30px */
    
    /* ==================== Transitions ==================== */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* ==================== Z-Index ==================== */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/*
|--------------------------------------------------------------------------
| CSS Variables - Dark Mode
|--------------------------------------------------------------------------
|
| لما تفعّل الـ Dark Mode، الألوان دي هتتطبق تلقائياً
| فعّل الـ Dark Mode بإضافة class="dark" على الـ <html>
|
*/

html.dark {
    /* ==================== Background Colors ==================== */
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --bg-sidebar: #0f172a;
    --bg-input: #1e293b;
    --bg-hover: #334155;
    
    /* ==================== Text Colors ==================== */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* ==================== Border Colors ==================== */
    --border-color: #334155;
    --border-light: #1e293b;
    --border-dark: #475569;
    --border-input: #475569;
    
    /* ==================== Status Colors (Dark Mode) ==================== */
    --success-bg: #166534;
    --success-text: #dcfce7;
    
    --danger-bg: #991b1b;
    --danger-text: #fee2e2;
    
    --warning-bg: #92400e;
    --warning-text: #fef3c7;
    
    --info-bg: #1e40af;
    --info-text: #dbeafe;
    
    /* ==================== Shadow (Dark Mode) ==================== */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.3);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.5), 0 8px 10px -6px rgb(0 0 0 / 0.4);
}