/* ============================================
   API Tester v2 - CSS Variables
   Normal App Design System
   ============================================ */

:root {
    /* ========== Color Palette - Dark Theme (Default) ========== */
    --color-bg-primary: #0f0f0f;
    --color-bg-secondary: #171717;
    --color-bg-tertiary: #202020;
    --color-bg-elevated: #242424;

    /* Surface State Colors */
    --color-glass: #1b1b1b;
    --color-glass-hover: #232323;
    --color-glass-active: #2b2b2b;
    --color-glass-border: #303030;
    --color-glass-border-hover: #3a3a3a;

    /* Text Colors */
    --color-text-primary: #f5f5f5;
    --color-text-secondary: #b3b3b3;
    --color-text-tertiary: #858585;
    --color-text-muted: #5f5f5f;

    /* Accent Colors */
    --color-accent: #e5e5e5;
    --color-accent-hover: #ffffff;
    --color-accent-active: #d4d4d4;
    --color-accent-muted: #2a2a2a;
    --color-accent-soft: #1e1e1e;

    /* Semantic Colors */
    --color-success: #3fb950;
    --color-success-muted: rgba(63, 185, 80, 0.12);
    --color-error: #f85149;
    --color-error-muted: rgba(248, 81, 73, 0.12);
    --color-warning: #d29922;
    --color-warning-muted: rgba(210, 153, 34, 0.12);
    --color-info: #8b949e;
    --color-info-muted: rgba(139, 148, 158, 0.14);

    /* Border Colors */
    --color-border: #303030;
    --color-border-hover: #444444;
    --color-border-focus: var(--color-accent);

    /* Shadow Colors */
    --shadow-color: rgba(0, 0, 0, 0.22);
    --shadow-color-strong: rgba(0, 0, 0, 0.32);

    /* ========== Typography ========== */
    --font-family-sans: 'Geist', ui-sans-serif, sans-serif;
    --font-family-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Monaco, 'Cascadia Code', monospace;

    /* Font Sizes */
    --font-size-xs: 0.75rem;     /* 12px */
    --font-size-sm: 0.8125rem;   /* 13px */
    --font-size-base: 0.875rem;  /* 14px */
    --font-size-md: 1rem;        /* 16px */
    --font-size-lg: 1.125rem;    /* 18px */
    --font-size-xl: 1.25rem;     /* 20px */
    --font-size-2xl: 1.5rem;     /* 24px */
    --font-size-3xl: 1.875rem;   /* 30px */

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

    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;

    /* ========== Spacing ========== */
    --spacing-0: 0;
    --spacing-1: 0.25rem;   /* 4px */
    --spacing-2: 0.5rem;    /* 8px */
    --spacing-3: 0.75rem;   /* 12px */
    --spacing-4: 1rem;      /* 16px */
    --spacing-5: 1.25rem;   /* 20px */
    --spacing-6: 1.5rem;    /* 24px */
    --spacing-8: 2rem;      /* 32px */
    --spacing-10: 2.5rem;   /* 40px */
    --spacing-12: 3rem;     /* 48px */
    --spacing-16: 4rem;     /* 64px */

    /* ========== Border Radius ========== */
    --radius-sm: 0.375rem;  /* 6px */
    --radius-md: 0.5rem;    /* 8px */
    --radius-lg: 0.625rem;  /* 10px */
    --radius-xl: 0.75rem;   /* 12px */
    --radius-2xl: 0.75rem;  /* 12px */
    --radius-full: 9999px;

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

    /* ========== Z-Index Scale ========== */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-toast: 800;

    /* ========== Transitions ========== */
    --transition-fast: 140ms ease;
    --transition-base: 180ms ease;
    --transition-slow: 220ms ease;
    --transition-slower: 300ms ease;

    /* ========== Blur Scale ========== */
    --blur-sm: 8px;
    --blur-md: 12px;
    --blur-lg: 20px;
    --blur-xl: 40px;

    /* ========== Shadows ========== */
    --shadow-sm: 0 1px 2px var(--shadow-color);
    --shadow-md: 0 2px 8px var(--shadow-color);
    --shadow-lg: 0 2px 8px var(--shadow-color);
    --shadow-xl: 0 2px 8px var(--shadow-color-strong);
    --shadow-accent: 0 1px 2px var(--shadow-color);
    --shadow-inner: none;

    /* ========== Input Specific ========== */
    --input-height: 40px;
    --input-height-sm: 32px;
    --input-height-lg: 48px;
}

/* ========== Light Theme ========== */
[data-theme="light"] {
    --color-bg-primary: #f7f7f7;
    --color-bg-secondary: #ffffff;
    --color-bg-tertiary: #f2f2f2;
    --color-bg-elevated: #ffffff;

    /* Surface State Colors - Light */
    --color-glass: #f4f4f4;
    --color-glass-hover: #eeeeee;
    --color-glass-active: #e8e8e8;
    --color-glass-border: #d8d8d8;
    --color-glass-border-hover: #c9c9c9;

    /* Text Colors - Light */
    --color-text-primary: #1f1f1f;
    --color-text-secondary: #555555;
    --color-text-tertiary: #777777;
    --color-text-muted: #a0a0a0;

    /* Border Colors - Light */
    --color-border: #d8d8d8;
    --color-border-hover: #bfbfbf;

    /* Shadow Colors - Light */
    --shadow-color: rgba(0, 0, 0, 0.08);
    --shadow-color-strong: rgba(0, 0, 0, 0.12);

    /* Accent adjustments for light theme */
    --color-accent: #1f1f1f;
    --color-accent-hover: #000000;
    --color-accent-active: #333333;
    --color-accent-muted: #e8e8e8;
    --color-accent-soft: #f2f2f2;
    --color-success-muted: rgba(72, 185, 129, 0.1);
    --color-error-muted: rgba(225, 99, 99, 0.1);
    --color-warning-muted: rgba(214, 162, 77, 0.1);
    --color-info-muted: rgba(139, 148, 158, 0.12);
}

/* ========== Scrollbar Styling ========== */
:root {
    --scrollbar-width: 8px;
    --scrollbar-track: transparent;
    --scrollbar-thumb: rgba(255, 255, 255, 0.1);
    --scrollbar-thumb-hover: rgba(255, 255, 255, 0.2);
}

[data-theme="light"] {
    --scrollbar-thumb: rgba(0, 0, 0, 0.18);
    --scrollbar-thumb-hover: rgba(0, 0, 0, 0.28);
}
