/*
 * VaultSync Global Design Variables
 * =================================
 */

:root {
    /* --- Core Colors (Blue Theme) --- */
    --color-primary: #1660af;
    --color-primary-light: #2b7fd4;
    --color-primary-dark: #0e4a8a;
    --color-primary-glow: rgba(22, 96, 175, 0.25);


    --blur-sidebar: blur(20px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);

    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-info: #1660af;

    --color-bg-primary: #0a0a0f;
    --color-bg-secondary: #0f0f16;
    --color-bg-tertiary: #16161f;
    --color-bg-elevated: #1e1e2d;

    --color-text-primary: #ffffff;
    --color-text-secondary: #94a3b8;
    --color-text-tertiary: #64748b;
    --color-text-muted: #475569;

    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(255, 255, 255, 0.15);

    --color-surface: rgba(255, 255, 255, 0.03);
    --color-surface-hover: rgba(255, 255, 255, 0.06);

    /* --- macOS Precise Colors (Dashboard) --- */
    --color-bg-sidebar: rgba(30, 30, 30, 0.7);
    --color-bg-list: #1c1c1e;
    --color-bg-detail: #232324;
    --color-bg-elevated-mac: #2c2c2e;
    --color-bg-active: #1660af;

    /* Mapping dashboard variables to keep vault.css working */
    --color-blue: #1660af;
    --color-green: #34c759;
    --color-yellow: #ffcc00;
    --color-red: #ff3b30;
    --color-orange: #ff9500;


    /* --- Typography --- */
    --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;

    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;

    /* --- Spacing --- */
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-5: 1.25rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    --spacing-10: 2.5rem;
    --spacing-12: 3rem;
    --spacing-16: 4rem;
    --spacing-20: 5rem;
    --spacing-24: 6rem;

    /* --- Radius --- */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    --radius-pill: 9999px;

    /* --- Shadows --- */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);

    /* --- Gradients --- */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);

    /* --- Z-Index --- */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
    --z-popover: 1050;
    --z-tooltip: 1060;
    --z-toast: 1070;

    /* --- Transitions --- */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 500ms cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* --- Layout --- */
    --content-max-width: 1200px;
    --sidebar-width: 260px;
    --list-width: 320px;
    --header-height: 60px;
}

/* Light Mode (Global) */
:root.light-mode {
    --color-bg-primary: #f8fafc;
    --color-bg-secondary: #ffffff;
    --color-bg-tertiary: #f1f5f9;
    --color-text-primary: #0f172a;
    --color-text-secondary: #475569;
    --color-text-tertiary: #64748b;
    --color-border: #e2e8f0;
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}