/* ============================================
   Options Bar Styles
   ============================================ */

.options-bar {
    height: 36px;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 12px;
}

.option-group { display: flex; align-items: center; gap: 6px; }
.option-label { font-size: 11px; color: var(--text-secondary); white-space: nowrap; }
.option-hint { font-size: 11px; color: var(--text-dim); font-style: italic; }

.option-input {
    background: var(--bg-medium);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 6px 8px;
    font-size: 12px;
    color: var(--text-primary);
    width: 60px;
    height: 28px;
}

.option-input[type="number"] {
    cursor: ew-resize;
}

.option-input:focus { outline: none; border-color: var(--accent); }

/* Number input styling - hide native spin buttons, we'll add custom ones */
input[type="number"] {
    cursor: ew-resize;
    -moz-appearance: textfield;
}

/* Hide native spin buttons completely */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
    display: none;
}

/* Scrub cursor when dragging */
input[type="number"].scrubbing {
    cursor: ew-resize !important;
}

/* Custom number input wrapper with visible spin buttons */
.number-input-wrap {
    display: inline-flex;
    align-items: stretch;
    position: relative;
}

.number-input-wrap input[type="number"] {
    border-radius: 3px 0 0 3px;
    border-right: none;
    min-width: 40px;
}

.number-spin-btns {
    display: flex;
    flex-direction: column;
    width: 22px;
    flex-shrink: 0;
}

.number-spin-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-left: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 8px;
    padding: 0;
    min-height: 14px;
    transition: background 0.1s, color 0.1s;
}

.number-spin-btn.up {
    border-radius: 0 3px 0 0;
    border-bottom: none;
}

.number-spin-btn.down {
    border-radius: 0 0 3px 0;
}

.number-spin-btn:hover {
    background: var(--bg-lighter);
    color: var(--text-primary);
}

.number-spin-btn:active {
    background: var(--accent);
    color: white;
}

body.scrubbing-active {
    cursor: ew-resize !important;
    user-select: none !important;
}

body.scrubbing-active * {
    cursor: ew-resize !important;
}

.option-slider {
    width: 80px;
    -webkit-appearance: none;
    height: 4px;
    background: var(--bg-light);
    border-radius: 2px;
    cursor: pointer;
}

.option-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
}

.option-select {
    background: var(--bg-medium);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 4px 8px;
    font-size: 11px;
    color: var(--text-primary);
    cursor: pointer;
}

.option-btn {
    background: var(--bg-medium);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 4px 8px;
    font-size: 11px;
    color: var(--text-secondary);
    cursor: pointer;
    min-width: 24px;
    font-weight: 500;
}

.option-btn:hover { background: var(--bg-light); color: var(--text-primary); }
.option-btn.active { background: var(--accent); color: white; border-color: var(--accent); }

.option-checkbox {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-secondary);
    cursor: pointer;
}
