/* ============================================================
   Ibnbattouta Recruitment Portal - CSS Custom Properties
   Workable/BambooHR Inspired | Arabic RTL
   ============================================================ */

:root {
    /* Brand Colors — Navy (Front-end) */
    --primary: #1a237e;
    --primary-light: #3949ab;
    --primary-dark: #0d1642;
    --primary-rgb: 26, 35, 126;

    --secondary: #6366f1;
    --secondary-light: #818cf8;
    --secondary-dark: #4f46e5;
    --secondary-rgb: 99, 102, 241;

    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --accent-dark: #d97706;

    /* Status Colors */
    --success: #16a34a;
    --success-light: #22c55e;
    --danger: #dc2626;
    --danger-light: #ef4444;
    --warning: #f59e0b;
    --warning-light: #fbbf24;
    --info: #0ea5e9;
    --info-light: #38bdf8;

    /* Neutral Colors — Warm Gray Scale */
    --white: #ffffff;
    --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;
    --black: #000000;

    /* Backgrounds */
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f0fdf4;
    --bg-sidebar: #1e293b;
    --bg-header: #ffffff;
    --bg-footer: #1e293b;
    --bg-hero: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%);
    --bg-overlay: rgba(0, 0, 0, 0.5);

    /* Text */
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --text-light: #ffffff;
    --text-link: var(--primary);
    --text-link-hover: var(--primary-dark);

    /* Typography */
    --font-family: 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
    --font-family-heading: 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
    --font-size-base: 15px;
    --font-size-sm: 13px;
    --font-size-lg: 18px;
    --font-size-xl: 24px;
    --font-size-xxl: 36px;
    --font-size-hero: 48px;
    --line-height-base: 1.7;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Borders */
    --border-color: #e5e7eb;
    --border-radius-sm: 8px;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --border-radius-pill: 50px;
    --border-radius-circle: 50%;

    /* Shadows — Softer, Tailwind-style */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 4px 12px rgba(15, 118, 110, 0.15);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Spacing */
    --section-padding: 80px;
    --container-padding: 20px;

    /* Z-Index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-tooltip: 1070;

    /* Sidebar (Admin) */
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 68px;
    --topbar-height: 60px;
}

/* Dark Mode */
[data-theme="dark"] {
    --bg-body: #121212;
    --bg-card: #1e1e1e;
    --bg-card-hover: #2a2a2a;
    --bg-header: #1e1e1e;
    --bg-footer: #0a0a0a;
    --bg-sidebar: #0f172a;

    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;

    --border-color: #333333;
    --gray-100: #1e1e1e;
    --gray-200: #2c2c2c;
    --gray-300: #3a3a3a;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
}
