:root {
    --color-bg: #f8fafc;
    /* slate-50 */
    --color-surface: #ffffff;
    --color-surface-hover: #f1f5f9;
    /* slate-100 */
    --color-border: #e2e8f0;
    /* slate-200 */
    --color-text: #0f172a;
    /* slate-900 */
    --color-text-muted: #64748b;
    /* slate-500 */
}

html.dark {
    --color-bg: #09090b;
    /* zinc-950 */
    --color-surface: #18181b;
    /* zinc-900 */
    --color-surface-hover: #27272a;
    /* zinc-800 */
    --color-border: #3f3f46;
    /* zinc-700 */
    --color-text: #f4f4f5;
    /* zinc-100 */
    --color-text-muted: #a1a1aa;
    /* zinc-400 */
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}

/* Base Form Inputs */
.form-input {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    color: var(--color-text);
    transition: all 0.2s;
    outline: none;
}

.form-input:focus {
    border-color: #0ea5e9;
    /* primary */
    box-shadow: 0 0 0 1px #0ea5e9;
}

/* Remove arrows from number inputs */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

select option {
    background-color: var(--color-surface);
    color: var(--color-text);
}

/* Range Slider */
.range-primary {
    outline: none;
}

.range-primary::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0ea5e9;
    cursor: pointer;
    border: 2px solid var(--color-surface);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.4);
}

.range-primary::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0ea5e9;
    cursor: pointer;
    border: 2px solid var(--color-surface);
}

.tab-type.active {
    background-color: var(--color-bg);
    color: var(--color-text);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.tab-schedule.active {
    background-color: var(--color-border);
    color: var(--color-text);
}