:root {

    --bg-dark: #0a0a0a;
    --surface-dark: #131313;
    --surface-hover: #1e1e1e;
    --surface-border: #262626;

    --text-light: #ffffff;
    --text-muted: #888888;

    --accent-blue: #3b82f6;
    --accent-blue-hover: #2563eb;
    --accent-red: #ef4444;
    --accent-green: #10b981;

    --font-family: "DM Sans", system-ui, -apple-system, sans-serif;
    --font-size-base: 14px;
    --font-size-sm: 13px;
    --font-size-xs: 11px;
    --font-size-lg: 16px;
    --font-size-xl: 20px;

    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;

    --sidebar-width: 380px;
    --layout-gap: var(--spacing-xl);

    --bp-tablet: 1024px;
    --bp-mobile: 768px;
    --bp-phone: 480px;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);

    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --sidebar-reveal-duration: 320ms;
    --sidebar-reveal-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

.spectrum-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: inherit;
    flex-shrink: 0;
    line-height: 0;
}

.spectrum-icon svg {
    display: block;
    width: 20px;
    height: 20px;
}

body {
    background-color: var(--bg-dark);
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 16px 16px;
    color: var(--text-light);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

a {
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--text-muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    background: var(--surface-dark);
    color: var(--text-light);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.btn:hover:not(:disabled) {
    background: var(--surface-hover);
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-white {
    background: var(--text-light);
    color: var(--bg-dark);
    border-color: transparent;
    border-radius: var(--radius-full);
}

.btn-white:hover:not(:disabled) {
    background: #e5e5e5;
}

.btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--text-muted);
}

.btn-ghost:hover:not(:disabled) {
    color: var(--text-light);
    background: transparent;
}

.btn-text {
    background: transparent;
    border: none;
    color: var(--text-light);
    text-decoration: underline;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    padding: 0;
}

.btn-text:hover:not(:disabled) {
    color: var(--text-muted);
}

.btn-text:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.input-field {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid var(--surface-border);
    color: var(--text-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    outline: none;
    transition: border-color var(--transition-fast);
}

.input-field:focus {
    border-color: var(--text-muted);
}

.input-field::placeholder {
    color: var(--text-muted);
}

.hidden {
    display: none !important;
}