/* ==========================================================================
   MODERN GLOBAL SYSTEM - ENTERPRISE EDITION
   ========================================================================== */

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

:root {
    /* Brand Accent - Terracotta 
       Used strategically for primary actions and active states (10-15%) 
    */
    --primary-color: #CF7452;
    --primary-hover: #b86241;
    --primary-light: rgba(207, 116, 82, 0.1);

    /* Slate / Neutral Scale for Structure */
    --slate-900: #0f172a;
    /* Headings */
    --slate-800: #1e293b;
    --slate-700: #334155;
    /* Base Text */
    --slate-600: #475569;
    /* Secondary Text */
    --slate-500: #64748b;
    /* Muted/Disabled */
    --slate-400: #94a3b8;
    /* Icons */
    --slate-300: #cbd5e1;
    /* Borders */
    --slate-200: #e2e8f0;
    /* Soft Borders / Hover Bg */
    --slate-100: #f1f5f9;
    /* Sub-surface */
    --slate-50: #f8fafc;
    /* Main App Background */

    /* Semantic Colors */
    --success: #10b981;
    --success-light: #d1fae5;
    --success-text: #065f46;

    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --warning-text: #92400e;

    --error: #ef4444;
    --error-light: #fee2e2;
    --error-text: #991b1b;

    --info: #3b82f6;
    --info-light: #dbeafe;
    --info-text: #1e40af;

    /* Surfaces */
    --surface: #ffffff;

    /* Spacing System (8px Baseline) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 32px;
    --space-6: 48px;
    --space-8: 64px;

    /* Shadows - Elegant and strict */
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
    --shadow-modal: 0 25px 50px -12px rgba(15, 23, 42, 0.25);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

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

body {
    background-color: var(--slate-50);
    color: var(--slate-700);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--slate-900);
    font-weight: 600;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

button {
    font-family: inherit;
}

/* Base Inputs */
input,
select,
textarea {
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
}

/* Unified App Container */
.app-container {
    display: flex;
    min-height: 100vh;
    width: 100vw;
    overflow: hidden;
    /* App takes strict bounds, scrolling happens inside main-content */
}