/* UV Controls */
.uv-inputs {
    display: flex;
    gap: 12px;
}

.uv-input-group {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
}

.uv-input-group span {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.uv-input-group input[type="range"] {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.uv-input-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.1s;
}

.uv-input-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.btn-icon-tiny {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-icon-tiny:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
}

.uv-input-group .value-input {
    width: 40px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    text-align: center;
    padding: 2px;
    outline: none;
}

.uv-input-group .value-input:focus {
    border-bottom-color: var(--accent-color);
}

.uv-input-group .value-input::-webkit-inner-spin-button,
.uv-input-group .value-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Map Tuning Interface */
.map-tuning-bar {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(12px);
    padding: 6px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.btn-tune {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.btn-tune:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.btn-tune.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

.tuning-popup {
    position: absolute;
    top: 80px;
    right: 20px;
    width: 280px;
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 110;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tuning-header {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tuning-header h4 {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-close-tiny {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 4px;
}

.btn-close-tiny:hover {
    color: white;
}

.tuning-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tuning-control {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tuning-control label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    justify-content: space-between;
}

.tuning-control label .val {
    color: var(--text-main);
    font-family: monospace;
}

.tuning-control input[type="range"] {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.tuning-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.1s;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.tuning-control input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #a855f7;
}

.tuning-control select {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 6px;
    font-size: 12px;
    outline: none;
    cursor: pointer;
}

.tuning-control select:hover {
    background: rgba(255, 255, 255, 0.15);
}

.tuning-control select option {
    background: #1a1a1a;
    color: white;
}

.btn-text {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    text-align: center;
}

.btn-text:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}