/* =====================================================
   Algory Trading Bot - CSS Variables
   Design System: Glassmorphism Terminal
   ===================================================== */

:root {
    /* Background Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --bg-glass: rgba(15, 15, 25, 0.7);
    --bg-glass-hover: rgba(20, 20, 35, 0.8);
    --bg-glass-active: rgba(25, 25, 40, 0.9);

    /* Borders */
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-hover: rgba(255, 255, 255, 0.15);
    --border-glass-glow: rgba(0, 255, 136, 0.3);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --text-dark: rgba(255, 255, 255, 0.3);

    /* Accent Colors */
    --accent-green: #00ff88;
    --accent-green-dim: rgba(0, 255, 136, 0.15);
    --accent-green-glow: rgba(0, 255, 136, 0.4);
    --accent-red: #ff4757;
    --accent-red-dim: rgba(255, 71, 87, 0.15);
    --accent-red-glow: rgba(255, 71, 87, 0.4);
    --accent-blue: #00aaff;
    --accent-blue-dim: rgba(0, 170, 255, 0.15);
    --accent-yellow: #ffd93d;
    --accent-yellow-dim: rgba(255, 217, 61, 0.15);
    --accent-purple: #a855f7;
    --accent-purple-dim: rgba(168, 85, 247, 0.15);

    /* Shadows & Effects */
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow-green: 0 0 30px rgba(0, 255, 136, 0.3);
    --shadow-glow-red: 0 0 30px rgba(255, 71, 87, 0.3);
    --shadow-glow-blue: 0 0 30px rgba(0, 170, 255, 0.3);
    --blur-glass: blur(20px);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

    /* Font Sizes */
    --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;

    /* 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;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms ease;

    /* Z-Index */
    --z-dropdown: 100;
    --z-modal: 200;
    --z-toast: 300;
}

/* Dark theme is default, light overrides if needed */
[data-theme="light"] {
    --bg-primary: #f0f4f8;
    --bg-secondary: #e2e8f0;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --text-primary: #1a202c;
    --text-secondary: rgba(26, 32, 44, 0.7);
    --border-glass: rgba(0, 0, 0, 0.1);
}

/* RTL Support */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}