/* JACE.ONE Enterprise Design Tokens & Theme Engine
 * Standardized according to JACE.ONE Corporate Design (Inter, Outfit, Cyber Cyan, WCAG AAA)
 */

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

:root {
    /* Bright Theme (Default analog to jaceone.de) */
    --color-surface-background: #F8FAFC;
    --color-surface-canvas: #FFFFFF;
    --color-surface-card: #FFFFFF;
    --color-surface-card-hover: #F1F5F9;
    --color-surface-subtle: #F1F5F9;
    --color-surface-elevated: #FFFFFF;

    --color-border-subtle: rgba(0, 0, 0, 0.05);
    --color-border-default: #E2E8F0;
    --color-border-strong: #CBD5E1;
    --color-border-focus: #0284C7;

    --color-brand-primary: #0284C7; /* Cyber Cyan / Sky */
    --color-brand-primary-hover: #0369A1;
    --color-brand-accent: #C24A2F;

    --color-text-primary: #0F172A;   /* Slate 900 */
    --color-text-secondary: #334155; /* Slate 700 */
    --color-text-muted: #64748B;     /* Slate 500 */
    --color-text-inverse: #FFFFFF;

    /* Status Colors */
    --color-status-success: #059669;
    --color-status-success-bg: #ECFDF5;
    --color-status-success-border: #A7F3D0;

    --color-status-warning: #D97706;
    --color-status-warning-bg: #FFFBEB;
    --color-status-warning-border: #FDE68A;

    --color-status-danger: #E11D48;
    --color-status-danger-bg: #FFF1F2;
    --color-status-danger-border: #FECDD3;

    --color-status-info: #0284C7;
    --color-status-info-bg: #F0F9FF;
    --color-status-info-border: #BAE6FD;

    --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.04);
    --shadow-hover: 0 12px 28px -4px rgba(2, 132, 199, 0.08), 0 0 0 1px rgba(2, 132, 199, 0.2);
}

/* Optional Dark Mode Override when toggled */
html.dark {
    --color-surface-background: #080C14;
    --color-surface-canvas: #0C121E;
    --color-surface-card: rgba(15, 23, 42, 0.75);
    --color-surface-card-hover: rgba(24, 34, 54, 0.85);
    --color-surface-subtle: rgba(255, 255, 255, 0.04);
    --color-surface-elevated: #0F172A;

    --color-border-subtle: rgba(255, 255, 255, 0.06);
    --color-border-default: rgba(255, 255, 255, 0.1);
    --color-border-strong: rgba(255, 255, 255, 0.2);
    --color-border-focus: #38BDF8;

    --color-brand-primary: #38BDF8;
    --color-brand-primary-hover: #0284C7;

    --color-text-primary: #F8FAFC;
    --color-text-secondary: #CBD5E1;
    --color-text-muted: #94A3B8;
    --color-text-inverse: #0F172A;

    --color-status-success: #10B981;
    --color-status-success-bg: rgba(16, 185, 129, 0.12);
    --color-status-success-border: rgba(16, 185, 129, 0.25);

    --color-status-warning: #F59E0B;
    --color-status-warning-bg: rgba(245, 158, 11, 0.12);
    --color-status-warning-border: rgba(245, 158, 11, 0.25);

    --color-status-danger: #F43F5E;
    --color-status-danger-bg: rgba(244, 63, 94, 0.12);
    --color-status-danger-border: rgba(244, 63, 94, 0.25);

    --color-status-info: #38BDF8;
    --color-status-info-bg: rgba(56, 189, 248, 0.12);
    --color-status-info-border: rgba(56, 189, 248, 0.25);

    --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 15px 35px -5px rgba(0, 0, 0, 0.6), 0 0 15px rgba(56, 189, 248, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--color-surface-background);
    background-image: 
        radial-gradient(at 10% 10%, rgba(2, 132, 199, 0.04) 0px, transparent 40%),
        radial-gradient(at 90% 15%, rgba(16, 185, 129, 0.03) 0px, transparent 40%),
        radial-gradient(at 50% 85%, rgba(99, 102, 241, 0.02) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--color-text-primary);
    transition: background-color 0.25s ease, color 0.25s ease;
}

.font-heading {
    font-family: 'Outfit', 'Inter', sans-serif;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Bright JaceOne Card */
.jace-card {
    background-color: var(--color-surface-card);
    border: 1px solid var(--color-border-default);
    box-shadow: var(--shadow-card);
    transition: all 0.2s cubic-bezier(0.2, 0.0, 0.0, 1.0);
}

.jace-card-hover:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--color-border-strong);
}

/* Pulsing indicators */
.pulse-dot {
    box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7);
    animation: pulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse {
    to {
        box-shadow: 0 0 0 8px rgba(5, 150, 105, 0);
    }
}

/* Modern Range Slider for Bright Theme */
input[type=range] {
    -webkit-appearance: none;
    background: #E2E8F0;
    border-radius: 9999px;
    height: 6px;
}
html.dark input[type=range] {
    background: rgba(255, 255, 255, 0.15);
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: var(--color-brand-primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.6);
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #F1F5F9;
    border-radius: 6px;
}
html.dark ::-webkit-scrollbar-track {
    background: #0F172A;
}
::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 6px;
}
html.dark ::-webkit-scrollbar-thumb {
    background: #334155;
}
::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}
