/* ═══════════════════════════════════════════════════════
   ZA — Premium Design Tokens
   Arabic RTL Educational Platform
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Tajawal:wght@300;400;500;700;800&display=swap');

:root {
    /* ── Colors (Elegant & Professional) ── */
    /* Medical Red (Primary) */
    --primary-50:  #fdf2f2;
    --primary-100: #fbd5d5;
    --primary-200: #f8b4b4;
    --primary-300: #f59393;
    --primary-400: #f17272;
    --primary-500: #eb3f3f;
    --primary-600: #d61f1f;
    --primary-700: #b91515;
    --primary-800: #991414;
    --primary-900: #7a1616;

    /* Stethoscope Navy (Accent) */
    --accent-50:  #f4f6f8;
    --accent-100: #e4e9f0;
    --accent-200: #c6d0df;
    --accent-300: #a1b0c9;
    --accent-400: #798ea9;
    --accent-500: #57708e;
    --accent-600: #3e5571;
    --accent-700: #32445b;
    --accent-800: #29384c;
    --accent-900: #1b2636;

    --success-500: #10b981;
    --success-600: #059669;
    --warning-500: #f59e0b;
    --warning-600: #d97706;
    --danger-500:  #ef4444;
    --danger-600:  #dc2626;
    --info-500:    #3b82f6;
    --info-600:    #2563eb;

    /* ── Light Theme (Clean Crisp) ── */
    --bg-primary:    #ffffff;
    --bg-secondary:  #fcfcfc;
    --bg-tertiary:   #f4f6f8;
    --bg-card:       #ffffff;
    --bg-sidebar:    #991414;
    --bg-input:      #fdf2f2;
    --bg-hover:      #fbd5d5;

    --text-primary:   #1b2636;
    --text-secondary: #3e5571;
    --text-tertiary:  #d61f1f;
    --text-inverse:   #ffffff;
    --text-link:      #d61f1f;
    --text-on-primary:#ffffff;

    --border-color:   #f8b4b4;
    --border-light:   #fbd5d5;
    --divider:        #e4e9f0;

    /* ── Gradients ── */
    /* Only subtle and elegant gradients */
    --gradient-primary: linear-gradient(135deg, #d61f1f 0%, #7a1616 100%);
    --gradient-accent:  linear-gradient(135deg, #32445b 0%, #1b2636 100%);
    --gradient-hero:    linear-gradient(135deg, #ffffff 0%, #fdf2f2 100%);
    --gradient-card:    linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(253, 242, 242, 1) 100%);
    --gradient-success: linear-gradient(135deg, #059669 0%, #10b981 100%);

    /* ── Shadows (Soft Premium) ── */
    --shadow-xs:   0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm:   0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
    --shadow-md:   0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
    --shadow-lg:   0 10px 20px -5px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
    --shadow-xl:   0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
    --shadow-2xl:  0 25px 50px -12px rgba(15, 23, 42, 0.15);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
    --shadow-card: 0 4px 12px rgba(15, 23, 42, 0.05);

    /* ── Typography ── */
    --font-heading: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    --font-body:    'Tajawal', 'Segoe UI', Tahoma, sans-serif;
    --font-mono:    'Fira Code', 'Consolas', monospace;

    --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:  3.5rem; /* Larger hero text */

    --leading-tight:  1.2;
    --leading-normal: 1.6;
    --leading-relaxed:1.8;

    /* ── Spacing ── */
    --space-1:  0.25rem;
    --space-2:  0.5rem;
    --space-3:  0.75rem;
    --space-4:  1rem;
    --space-5:  1.25rem;
    --space-6:  1.5rem;
    --space-8:  2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* ── Border Radius (Apple Style) ── */
    --radius-sm:   0.375rem;
    --radius-md:   0.5rem;
    --radius-lg:   0.75rem;
    --radius-xl:   1rem;
    --radius-2xl:  1.5rem;
    --radius-full: 9999px;

    /* ── Transitions ── */
    --transition-fast:   150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow:   350ms ease;
    --transition-spring: 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* ── Z-Index ── */
    --z-dropdown: 100;
    --z-sticky:   200;
    --z-modal:    500;
    --z-toast:    600;
    --z-tooltip:  700;

    /* ── Sidebar ── */
    --sidebar-width: 280px;
    --sidebar-collapsed: 70px;
    --header-height: 70px;
}

/* ═══════════════════════════════════════════════════════
   Dark Theme (True Premium Dark)
   ═══════════════════════════════════════════════════════ */
[data-theme="dark"] {
    --bg-primary:    #0a0a0a;
    --bg-secondary:  #141414;
    --bg-tertiary:   #1f1f1f;
    --bg-card:       #141414;
    --bg-sidebar:    #111111;
    --bg-input:      #1f1f1f;
    --bg-hover:      #2a2a2a;

    --text-primary:   #f4f6f8;
    --text-secondary: #c6d0df;
    --text-tertiary:  #a1b0c9;
    --text-inverse:   #0a0a0a;
    --text-link:      #f8b4b4;

    --border-color:   #2a2a2a;
    --border-light:   #3a3a3a;
    --divider:        #1f1f1f;

    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-sm:   0 1px 3px rgba(0, 0, 0, 0.6);
    --shadow-md:   0 4px 6px -1px rgba(0, 0, 0, 0.7);
    --shadow-lg:   0 10px 15px -3px rgba(0, 0, 0, 0.8);
    --shadow-glow: 0 0 20px rgba(214, 31, 31, 0.2);

    --gradient-hero:    linear-gradient(135deg, #0a0a0a 0%, #141414 100%);
    --gradient-card:    linear-gradient(135deg, rgba(31, 31, 31, 0.4) 0%, rgba(20, 20, 20, 0.4) 100%);
}
