/* ============================================================
   Pokec Manager – CSS Design System Variables
   ============================================================ */

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

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

    --fs-xs: 0.7rem;
    --fs-sm: 0.8rem;
    --fs-base: 0.9rem;
    --fs-md: 1rem;
    --fs-lg: 1.15rem;
    --fs-xl: 1.35rem;
    --fs-2xl: 1.7rem;
    --fs-3xl: 2.2rem;

    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;

    /* --- Spacing --- */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 0.75rem;
    --space-lg: 1rem;
    --space-xl: 1.5rem;
    --space-2xl: 2rem;
    --space-3xl: 3rem;

    /* --- Borders --- */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* --- Shadows --- */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 20px rgba(108, 92, 231, 0.3);

    /* --- Transitions --- */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);

    /* --- Layout --- */
    --sidebar-width: 260px;
    --sidebar-collapsed: 64px;
    --header-height: 56px;
    --max-content-width: 1400px;

    /* --- Z-index --- */
    --z-sidebar: 100;
    --z-header: 110;
    --z-modal: 200;
    --z-toast: 300;
    --z-tooltip: 400;
}

/* ============================================================
   Dark Theme (default)
   ============================================================ */
[data-theme="dark"], :root {
    --bg-root: #08080d;
    --bg-primary: #0c0c14;
    --bg-secondary: #13131f;
    --bg-card: #181828;
    --bg-card-hover: #1f1f35;
    --bg-input: #1a1a2c;
    --bg-input-focus: #20203a;
    --bg-sidebar: #0a0a12;
    --bg-header: rgba(12, 12, 20, 0.85);
    --bg-modal-overlay: rgba(0, 0, 0, 0.6);

    --accent-primary: #7c6cf0;
    --accent-primary-hover: #9186f3;
    --accent-primary-muted: rgba(124, 108, 240, 0.15);
    --accent-secondary: #a8a0f6;

    --color-success: #2dd4a8;
    --color-success-muted: rgba(45, 212, 168, 0.15);
    --color-warning: #f0b429;
    --color-warning-muted: rgba(240, 180, 41, 0.15);
    --color-danger: #f06565;
    --color-danger-muted: rgba(240, 101, 101, 0.15);
    --color-info: #5eb5f7;
    --color-info-muted: rgba(94, 181, 247, 0.15);

    --text-primary: #e6e6f0;
    --text-secondary: #8585a8;
    --text-muted: #55556e;
    --text-inverse: #0c0c14;

    --border-primary: #252540;
    --border-secondary: #1e1e35;
    --border-focus: var(--accent-primary);

    /* Status colors */
    --status-active: #5eb5f7;
    --status-online: #2dd4a8;
    --status-away: #f0b429;
    --status-offline: #55556e;

    --scrollbar-track: #13131f;
    --scrollbar-thumb: #2a2a48;
    --scrollbar-thumb-hover: #3a3a5e;
}

/* ============================================================
   Light Theme
   ============================================================ */
[data-theme="light"] {
    --bg-root: #f0f1f5;
    --bg-primary: #f5f6fa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f8fc;
    --bg-input: #f0f1f5;
    --bg-input-focus: #e8e9f0;
    --bg-sidebar: #ffffff;
    --bg-header: rgba(245, 246, 250, 0.9);
    --bg-modal-overlay: rgba(0, 0, 0, 0.3);

    --accent-primary: #6355d8;
    --accent-primary-hover: #7568e0;
    --accent-primary-muted: rgba(99, 85, 216, 0.1);
    --accent-secondary: #8578e0;

    --color-success: #1ba87e;
    --color-success-muted: rgba(27, 168, 126, 0.1);
    --color-warning: #d49a1a;
    --color-warning-muted: rgba(212, 154, 26, 0.1);
    --color-danger: #d44848;
    --color-danger-muted: rgba(212, 72, 72, 0.1);
    --color-info: #3a94d9;
    --color-info-muted: rgba(58, 148, 217, 0.1);

    --text-primary: #1a1a2e;
    --text-secondary: #6b6b88;
    --text-muted: #9999b0;
    --text-inverse: #ffffff;

    --border-primary: #dcdce8;
    --border-secondary: #e8e8f0;
    --border-focus: var(--accent-primary);

    --status-active: #3a94d9;
    --status-online: #1ba87e;
    --status-away: #d49a1a;
    --status-offline: #9999b0;

    --scrollbar-track: #f0f1f5;
    --scrollbar-thumb: #ccccd8;
    --scrollbar-thumb-hover: #b0b0c0;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(99, 85, 216, 0.15);
}
