/**
 * Design Tokens - Extracted from remotrol.com/style.css
 * Premium brand system for Remotrol dashboard
 */

:root {
    /* Brand Colors - Gold Premium Palette */
    --rt-primary: #D4AF37;
    --rt-secondary: #C5A028;
    --rt-accent: #BDB76B;
    --rt-light: #FDF5E6;
    --rt-dark: #2C2C2C;
    
    /* Text Colors */
    --rt-text-primary: #4A4A4A;
    --rt-text-secondary: #666666;
    --rt-text-muted: #64748b;
    --rt-text-on-dark: #ffffff;
    
    /* Gradients */
    --rt-gradient-primary: linear-gradient(135deg, #D4AF37, #C5A028);
    --rt-gradient-subtle: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(197, 160, 40, 0.1));
    
    /* Borders */
    --rt-border-color: rgba(212, 175, 55, 0.1);
    --rt-border-color-strong: rgba(212, 175, 55, 0.3);
    --rt-border-radius-sm: 8px;
    --rt-border-radius-md: 12px;
    --rt-border-radius-lg: 16px;
    --rt-border-radius-xl: 20px;
    --rt-border-radius-full: 999px;
    
    /* Shadows */
    --rt-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --rt-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --rt-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --rt-shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
    --rt-shadow-color: rgba(212, 175, 55, 0.15);
    
    /* Spacing */
    --rt-space-xs: 0.25rem;   /* 4px */
    --rt-space-sm: 0.5rem;    /* 8px */
    --rt-space-md: 1rem;      /* 16px */
    --rt-space-lg: 1.5rem;    /* 24px */
    --rt-space-xl: 2rem;      /* 32px */
    --rt-space-2xl: 3rem;     /* 48px */
    --rt-space-3xl: 4rem;     /* 64px */
    
    /* Typography */
    --rt-font-family: IRANSans, system-ui, -apple-system, sans-serif;
    --rt-font-size-xs: 0.75rem;    /* 12px */
    --rt-font-size-sm: 0.875rem;   /* 14px */
    --rt-font-size-base: 1rem;     /* 16px */
    --rt-font-size-lg: 1.125rem;    /* 18px */
    --rt-font-size-xl: 1.25rem;    /* 20px */
    --rt-font-size-2xl: 1.5rem;    /* 24px */
    --rt-font-size-3xl: 2rem;      /* 32px */
    --rt-font-size-4xl: 2.5rem;    /* 40px */
    --rt-font-weight-normal: 400;
    --rt-font-weight-medium: 500;
    --rt-font-weight-semibold: 600;
    --rt-font-weight-bold: 700;
    --rt-line-height-tight: 1.25;
    --rt-line-height-normal: 1.5;
    --rt-line-height-relaxed: 1.75;
    
    /* Transitions */
    --rt-transition-fast: 0.15s ease;
    --rt-transition-base: 0.3s ease;
    --rt-transition-slow: 0.4s ease;
    --rt-transition-all: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Z-Index Scale */
    --rt-z-base: 1;
    --rt-z-dropdown: 100;
    --rt-z-sticky: 200;
    --rt-z-fixed: 300;
    --rt-z-modal-backdrop: 900;
    --rt-z-modal: 1000;
    --rt-z-popover: 1100;
    --rt-z-tooltip: 1200;
    
    /* Backgrounds */
    --rt-bg-primary: var(--rt-light);
    --rt-bg-secondary: #ffffff;
    --rt-bg-tertiary: rgba(255, 255, 255, 0.98);
    --rt-bg-overlay: rgba(0, 0, 0, 0.5);
    
    /* Surface Colors */
    --rt-surface: rgba(255, 255, 255, 0.95);
    --rt-surface-elevated: #ffffff;
    --rt-surface-hover: rgba(212, 175, 55, 0.05);
}

/* Dark Theme Override */
[data-theme="dark"] {
    --rt-light: #1a1a1a;
    --rt-dark: #ffffff;
    --rt-primary: #60a5fa;
    --rt-secondary: #3b82f6;
    --rt-text-primary: #e2e8f0;
    --rt-text-secondary: #cbd5e1;
    --rt-text-muted: #a3a3a3;
    --rt-bg-primary: #0d1620;
    --rt-bg-secondary: #0f1624;
    --rt-bg-tertiary: rgba(15, 23, 42, 0.98);
    --rt-surface: rgba(26, 31, 46, 0.9);
    --rt-surface-elevated: #0d1620;
    --rt-surface-hover: rgba(96, 165, 250, 0.1);
    --rt-border-color: rgba(148, 163, 184, 0.1);
    --rt-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.4);
    --rt-shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

[dir="ltr"] {
    --rt-direction: ltr;
}
