/* IP247 Design Tokens v0.2.0 */

:root {
    color-scheme: light;

    /* Colors */
    --bg: #FFFFFF;
    --surface: #F8FAFC;
    --text: #111827;
    --text-secondary: #64748B;
    --border: #E2E8F0;
    --accent: #2563EB;
    --accent-hover: #1D4ED8;
    --accent-text: #FFFFFF;

    /* Status colors */
    --success: #15803D;
    --warning: #92400E;
    --danger: #B91C1C;
    --info: #1D4ED8;

    /* Typography */
    --font-family: system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: ui-monospace, SFMono-Regular,
        Consolas, monospace;

    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-base: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.25rem;
    --font-2xl: 1.5rem;
    --font-3xl: 2rem;

    --line-height: 1.5;

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;

    /* Layout */
    --container-max: 1200px;
    --container-padding: 16px;
    --control-height: 44px;

    /* Effects */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --transition-fast: 150ms ease;
}

/* Dark theme */
:root[data-theme="dark"] {
    color-scheme: dark;

    --bg: #0B1120;
    --surface: #111827;
    --text: #F1F5F9;
    --text-secondary: #94A3B8;
    --border: #263449;
    --accent: #60A5FA;
    --accent-hover: #93C5FD;
    --accent-text: #0B1120;

    --success: #4ADE80;
    --warning: #FBBF24;
    --danger: #F87171;
    --info: #60A5FA;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.30);
}
