/* Master SaaS UI Design Tokens */

:root {
    /* Color System - Inter-aligned Slate Scale */
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-soft: rgba(99, 102, 241, 0.1);
    
    --bg: #f8fafc;
    --card: #ffffff;
    --border: #e5e7eb;
    
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    
    --success: #10b981;
    --success-soft: rgba(16, 185, 129, 0.1);
    --warning: #f59e0b;
    --warning-soft: rgba(245, 158, 11, 0.1);
    --danger: #ef4444;
    --danger-soft: rgba(239, 68, 68, 0.1);
    --info: #3b82f6;
    --info-soft: rgba(59, 130, 246, 0.1);

    /* Typography System - Enterprise Grade */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --text-xs: 12px;
    --text-sm: 13px;
    --text-base: 14px;
    --text-md: 15px;
    --text-lg: 16px;
    --text-xl: 20px;
    --text-2xl: 24px;
    --text-3xl: 30px;

    /* Font Weights */
    --weight-normal: 400;
    --weight-medium: 500;
    --weight-semibold: 600;

    /* Spacing System (Pixel-based for precision) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;

    /* Borders & Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;

    /* Shadows - SaaS Subtle */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);

    /* Layout & Breakpoints */
    --max-width: 1400px;
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 68px;
    --topbar-height: 56px;

    --bp-xs: 320px;
    --bp-sm: 375px;
    --bp-md: 480px;
    --bp-tb: 768px;
    --bp-lg: 1024px;
    --bp-xl: 1280px;
    --bp-xxl: 1366px;
    --bp-3xl: 1440px;
    --bp-4xl: 1600px;
    --bp-5xl: 1920px;

    /* Transitions - Unified SaaS scale */
    --transition-speed: 0.3s;
    --transition-timing: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all var(--transition-speed) var(--transition-timing);
}

/* Backward compatibility helpers */
:root {
    --neutral-50: var(--bg);
    --neutral-100: var(--border);
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-400: var(--text-muted);
    --neutral-500: var(--text-secondary);
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: var(--text-primary);
    --primary-500: var(--primary);
    --grad-primary: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    --radius-xl: var(--radius-lg);
}
