:root {
    color-scheme: dark;

    --bg: #101218;
    --surface: #191c24;
    --surface-alt: #222630;
    --border: #343741;

    --text: #eef0f4;
    --text-secondary: #afb4c1;
    --text-muted: #949aa8;

    --accent: #ffad68;
    --accent-text: #191c24;
    --accent-soft: #382b23;

    --success: #64c993;
    --warning: #eab65d;
    --danger: #f07878;

    --discord: #5865f2;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    --sidebar-width: 250px;
    --header-height: 64px;

    --shadow: 0 8px 30px #0003;

    --font: system-ui, -apple-system,
            BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
    color-scheme: light;

    --bg: #f4f5f7;
    --surface: #ffffff;
    --surface-alt: #edf0f3;
    --border: #dfe2e7;

    --text: #202530;
    --text-secondary: #475160;
    --text-muted: #626b79;

    --accent: #b85b19;
    --accent-text: #ffffff;
    --accent-soft: #fff0e1;

    --success: #16804a;
    --warning: #946200;
    --danger: #bd3030;

    --shadow: 0 8px 30px #1820300d;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
}

button,
input,
select,
textarea {
    font: inherit;
}

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

button {
    cursor: pointer;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

::selection {
    background: var(--accent-soft);
    color: var(--text);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text-secondary);
}

.theme-toggle:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

[data-theme="dark"] .theme-moon,
[data-theme="light"] .theme-sun {
    display: none;
}
