/* Wavelength Slider Styles - Vertical Layout */

.wavelength-slider-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(41, 98, 255, 0.95);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 110;
    backdrop-filter: blur(10px);
    transition: box-shadow 0.3s ease;
}

.wavelength-slider-container.exact-wavelength {
    box-shadow: 0 0 30px rgba(100, 255, 100, 0.8), 0 4px 20px rgba(0, 0, 0, 0.5);
}

.wavelength-slider-container.blended-wavelength {
    box-shadow: 0 0 30px rgba(255, 200, 100, 0.6), 0 4px 20px rgba(0, 0, 0, 0.5);
}

.wavelength-slider-header {
    margin-bottom: 15px;
    text-align: center;
}

.wavelength-slider-title {
    font-size: 16px;
    font-weight: bold;
    display: block;
}

.wavelength-slider-vertical-track {
    display: flex;
    align-items: stretch;
    height: 400px;
    position: relative;
}

.wavelength-notches {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    pointer-events: none;
}

.wavelength-notch {
    position: absolute;
    left: 0;
    width: fit-content;
    display: flex;
    align-items: center;
    transform: translateY(50%);
    pointer-events: auto;
    cursor: pointer;
    padding: 5px;
    white-space: nowrap;
    transition: all 0.15s ease;
    border-radius: 4px;
}

.wavelength-notch:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.wavelength-notch-marker {
    width: 12px;
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    margin-right: 8px;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.wavelength-notch:hover .wavelength-notch-marker {
    width: 16px;
    height: 4px;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.wavelength-notch-label {
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-family: monospace;
}

.wavelength-slider-vertical {
    -webkit-appearance: slider-vertical;
    writing-mode: bt-lr;
    width: 12px;
    height: 100%;
    margin: 0 auto;
    padding: 0;
    background: linear-gradient(to top, 
        rgba(255, 255, 255, 0.3), 
        rgba(255, 255, 255, 0.6));
    border-radius: 6px;
    outline: none;
    cursor: pointer;
}

.wavelength-slider-vertical::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.1s ease;
}

.wavelength-slider-vertical::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.wavelength-slider-vertical::-webkit-slider-thumb:active {
    transform: scale(1.1);
}

.wavelength-slider-vertical::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.1s ease;
}

.wavelength-slider-vertical::-moz-range-thumb:hover {
    transform: scale(1.2);
}

.wavelength-slider-vertical::-moz-range-thumb:active {
    transform: scale(1.1);
}

.wavelength-status {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    height: 18px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: background 0.3s ease;
}

.exact-wavelength .status-indicator {
    background: #66ff66;
    box-shadow: 0 0 10px rgba(100, 255, 100, 0.8);
}

.blended-wavelength .status-indicator {
    background: #ffcc66;
    box-shadow: 0 0 10px rgba(255, 200, 100, 0.6);
}

.exact-wavelength .status-text::before {
    content: "Exact: ";
    font-weight: bold;
}

.blended-wavelength .status-text::before {
    content: "Blending: ";
    font-weight: bold;
}

/* Make the container draggable */
.wavelength-slider-container.dragging {
    cursor: grabbing;
    user-select: none;
}

/* Wavelength Toolbox Styles */
.wavelength-toolbox {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 12px;
}

.toolbox-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}

.toolbox-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.toolbox-toggle:active {
    transform: scale(0.95);
}

.toolbox-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: max-width 0.3s ease, opacity 0.3s ease;
    max-width: 200px;
    opacity: 1;
}

.toolbox-controls.hidden {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
}

.play-button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.play-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.play-button:active {
    transform: scale(0.95);
}

.play-button.playing {
    background: rgba(100, 255, 100, 0.3);
    box-shadow: 0 0 12px rgba(100, 255, 100, 0.6);
}

.speed-control {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.speed-control:hover {
    background: rgba(255, 255, 255, 0.3);
}

.speed-control:focus {
    outline: none;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* Style dropdown options */
.speed-control option {
    background: #2962ff;
    color: white;
}

.speed-buttons-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.speed-button {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.15s ease;
    flex-shrink: 0;
    padding: 0;
}

.speed-button:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.speed-button:active {
    transform: scale(0.9);
}

.speed-button.reset {
    background: rgba(100, 255, 100, 0.15);
    border-color: rgba(100, 255, 100, 0.3);
}

.speed-button.reset:hover {
    background: rgba(100, 255, 100, 0.25);
    border-color: rgba(100, 255, 100, 0.5);
}

.speed-display {
    font-size: 12px;
    font-weight: 600;
    min-width: 28px;
    text-align: center;
}

/* Responsive design */
@media (max-width: 768px) {
    .wavelength-slider-container {
        right: 10px;
        bottom: 10px;
        padding: 12px 15px;
    }
    
    .wavelength-slider-vertical-track {
        height: 300px;
    }
    
    .wavelength-notch-label {
        font-size: 10px;
    }
}
