:root {
    /* Background - Dark */
    --bg-primary: #0a0a0f;
    --bg-secondary: #151518;
    --bg-tertiary: #1a1a1e;
    --bg-hover: #202024;
    --bg-active: #25252a;
    --bg-input: #151518;
    --bg-sidebar: #12121a;
    --bg-dropdown: #1e1e28;
    --bg-card: #1a1a1e;
    --bg-card-header: #151518;

    /* Borders */
    --border-color: #2a2a30;
    --border-light: #222228;
    --border-hover: #6366f1;

    /* Text */
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --text-bright: #ffffff;

    /* Accent */
    --accent: #6366f1;
    --accent-hover: #8b5cf6;
    --accent-light: #1f1f2e;
    --accent-gradient: linear-gradient(135deg, #6366f1, #8b5cf6);

    /* Semantic */
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --error-light: #1f1515;

    /* Interactive */
    --focus-ring: #6366f1;
    --btn-close: #ff5f57;
    --btn-close-hover: #ff3b30;

    /* Scrollbar */
    --scrollbar-thumb: #404045;
    --scrollbar-thumb-hover: #505058;

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-round: 50px;

    /* Content inset shadow */
    --content-inset-shadow: rgba(0, 0, 0, 0.3);

    /* Overlay for background (0.7 opacity) */
    --overlay-start: rgba(10, 10, 15, 0.7);
    --overlay-end: rgba(10, 10, 15, 0.7);
    --overlay-blur: 5px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;

    /* Sizing */
    --sidebar-width: 260px;
    --menu-width: 60px;

    /* Fonts */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Font Sizes */
    --font-size-xs: 11px;
    --font-size-sm: 13px;
    --font-size-md: 14px;
    --font-size-base: 15px;
    --font-size-lg: 16px;
    --font-size-xl: 17px;
    --font-size-2xl: 22px;
    --font-size-3xl: 26px;
    --font-size-4xl: 30px;
}

/* Light Theme */

[data-theme='light'] {
    /* Background */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-hover: #e2e8f0;
    --bg-active: #cbd5e1;
    --bg-input: #ffffff;
    --bg-sidebar: #ffffff;
    --bg-dropdown: #ffffff;
    --bg-card: #ffffff;
    --bg-card-header: #f8fafc;

    /* Borders */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --border-hover: #6366f1;

    /* Text */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-bright: #0f172a;

    /* Accent */
    --accent: #6366f1;
    --accent-hover: #8b5cf6;
    --accent-light: #e0e7ff;
    --accent-gradient: linear-gradient(135deg, #6366f1, #8b5cf6);

    /* Semantic */
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --error-light: #fef2f2;

    /* Interactive */
    --focus-ring: #6366f1;
    --btn-close: #ff5f57;
    --btn-close-hover: #ff3b30;

    /* Scrollbar */
    --scrollbar-thumb: #cbd5e1;
    --scrollbar-thumb-hover: #94a3b8;

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-round: 50px;

    /* Content inset shadow */
    --content-inset-shadow: rgba(0, 0, 0, 0.08);

    /* Overlay */
    --overlay-start: transparent;
    --overlay-end: transparent;
    --overlay-blur: 0px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;

    /* Sizing */
    --sidebar-width: 260px;
    --menu-width: 60px;

    /* Fonts */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    min-width: 768px;
    font-family: var(--font-primary);
    font-size: var(--font-size-lg);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

#root {
    height: 100%;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-hover);
}

button {
    cursor: pointer;
    font-family: inherit;
}

input,
textarea {
    font-family: inherit;
}

/* Scrollbars */

* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) transparent;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}
