/* Design System Variables */
:root {
    --primary: #1d4ed8;            /* Medical Blue Primary */
    --primary-hover: #1e40af;
    --primary-light: #eff6ff;
    --primary-light-hover: #dbeafe;
    
    --accent: #10b981;             /* Mint Green Accent */
    --accent-hover: #059669;
    --accent-light: #ecfdf5;

    --bg-app: #f1f5f9;             /* Soft light grey-blue app background */
    --bg-card: #ffffff;            /* Pure white for dashboard cards */
    --border: #e2e8f0;             /* Clean border line color */
    
    --text-primary: #0f172a;       /* Slate 900 for high-contrast titles */
    --text-secondary: #475569;     /* Slate 600 for labels and text */
    --text-muted: #94a3b8;         /* Slate 400 for subtext */

    /* Traffic Light Status Colors */
    --color-green-bg: #d1fae5;
    --color-green-text: #065f46;
    --color-green-border: #a7f3d0;
    
    --color-yellow-bg: #fef3c7;
    --color-yellow-text: #92400e;
    --color-yellow-border: #fde68a;
    
    --color-red-bg: #fee2e2;
    --color-red-text: #991b1b;
    --color-red-border: #fecaca;

    /* Styling Properties */
    --font-sans: 'Inter', 'Rabar_013', 'Noto Sans Arabic', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -4px rgba(0, 0, 0, 0.02);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-app);
    font-family: var(--font-sans);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding: 24px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark Mode Theme */
body.dark-mode {
    --bg-app: #0f172a;             /* Slate 900 */
    --bg-card: #1e293b;            /* Slate 800 */
    --border: #334155;             /* Slate 700 */
    
    --text-primary: #f8fafc;       /* Slate 50 */
    --text-secondary: #cbd5e1;     /* Slate 300 */
    --text-muted: #94a3b8;         /* Slate 400 */

    --primary-light: rgba(29, 78, 216, 0.2);
    --primary-light-hover: rgba(29, 78, 216, 0.3);
    
    --accent-light: rgba(16, 185, 129, 0.1);
    
    --color-green-bg: rgba(6, 95, 70, 0.4);
    --color-green-text: #34d399;
    --color-green-border: rgba(52, 211, 153, 0.3);
    
    --color-yellow-bg: rgba(146, 64, 14, 0.4);
    --color-yellow-text: #fbbf24;
    --color-yellow-border: rgba(251, 191, 36, 0.3);
    
    --color-red-bg: rgba(153, 27, 27, 0.4);
    --color-red-text: #f87171;
    --color-red-border: rgba(248, 113, 113, 0.3);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.2);
}
