/* =================================================================
   Webunox Hub - Theme Tokens (Black & Gold / Executive Command Center)
   ================================================================= */

:root {
    /* Backgrounds */
    --color-bg-base: #08090B;
    --color-bg-elevated: #111318;
    --color-bg-surface: #181A20;
    --color-bg-surface-hover: #1F222B;
    --color-bg-input: #11131A;

    /* Gold accents */
    --color-gold: #F7C948;
    --color-gold-dim: #D6A72C;
    --color-gold-deep: #B17812;
    --color-gold-soft: rgba(247, 201, 72, 0.12);

    /* Text */
    --color-text-primary: #F5F5F5;
    --color-text-secondary: #D8DCE2;
    --color-text-muted: #8E97A6;
    --color-text-on-gold: #14110A;

    /* Status colors */
    --color-success: #18C964;
    --color-success-soft: rgba(24, 201, 100, 0.14);
    --color-danger: #FF4D4F;
    --color-danger-soft: rgba(255, 77, 79, 0.14);
    --color-warning: #F7C948;
    --color-warning-soft: rgba(247, 201, 72, 0.14);
    --color-info: #4DA3FF;
    --color-info-soft: rgba(77, 163, 255, 0.14);
    --color-muted-soft: rgba(142, 151, 166, 0.14);

    /* Borders */
    --color-border: rgba(247, 201, 72, 0.12);
    --color-border-strong: rgba(247, 201, 72, 0.30);
    --color-border-flat: rgba(255, 255, 255, 0.06);

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-full: 999px;

    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.28);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.36);
    --shadow-glow: 0 0 0 1px rgba(247, 201, 72, 0.16), 0 12px 36px rgba(247, 201, 72, 0.07);
    --shadow-gold: 0 8px 24px rgba(247, 201, 72, 0.22);

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 28px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Consolas, "Liberation Mono", Menlo, monospace;
    --fs-xs: 12px;
    --fs-sm: 13px;
    --fs-base: 14.5px;
    --fs-md: 16px;
    --fs-lg: 19px;
    --fs-xl: 24px;
    --fs-2xl: 32px;

    /* Layout */
    --sidebar-width: 268px;
    --sidebar-collapsed-width: 84px;
    --topbar-height: 68px;
    --bottom-nav-height: 64px;
    --content-max-width: 1480px;

    /* Motion */
    --transition-fast: 120ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 320ms ease;
}

/* Light theme override (opt-in via [data-theme="light"]) */
[data-theme="light"] {
    --color-bg-base: #F2F3F6;
    --color-bg-elevated: #FFFFFF;
    --color-bg-surface: #FFFFFF;
    --color-bg-surface-hover: #F6F2E7;
    --color-bg-input: #FBFBFC;

    --color-text-primary: #181A20;
    --color-text-secondary: #4A4F5A;
    --color-text-muted: #767E8C;
    --color-text-on-gold: #1B1404;

    --color-border: rgba(177, 120, 18, 0.16);
    --color-border-strong: rgba(177, 120, 18, 0.36);
    --color-border-flat: rgba(20, 20, 30, 0.08);

    --shadow-sm: 0 2px 10px rgba(20, 20, 30, 0.06);
    --shadow-md: 0 10px 30px rgba(20, 20, 30, 0.08);
    --shadow-glow: 0 0 0 1px rgba(177, 120, 18, 0.14), 0 12px 32px rgba(177, 120, 18, 0.06);
    --shadow-gold: 0 8px 24px rgba(177, 120, 18, 0.18);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: 1.5;
    color: var(--color-text-primary);
    background-color: var(--color-bg-base);
    background-image:
        radial-gradient(900px 600px at 100% -10%, rgba(247, 201, 72, 0.06), transparent 60%),
        radial-gradient(700px 500px at -10% 110%, rgba(247, 201, 72, 0.04), transparent 60%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-base), color var(--transition-base);
}

a {
    color: var(--color-gold);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.01em;
}

p {
    margin: 0 0 var(--space-3);
}

ul, ol {
    margin: 0;
    padding: 0;
}

::selection {
    background: rgba(247, 201, 72, 0.28);
}

/* Scrollbars */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-border-strong) transparent;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-thumb {
    background: var(--color-border-strong);
    border-radius: var(--radius-full);
}

*::-webkit-scrollbar-track {
    background: transparent;
}
