/* FPS Control Slider Styling */
#fpsSlider {
    width: 100% !important;
    height: 20px !important;
    background: transparent !important;
    outline: none !important;
    cursor: var(--cm-cursor-action, pointer) !important;
    pointer-events: auto !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    position: relative !important;
    z-index: 10000 !important;
}

/* Webkit browsers (Chrome, Safari, Edge) */
#fpsSlider::-webkit-slider-track {
    width: 100%;
    height: 8px;
    background: #333;
    border-radius: 4px;
    border: 1px solid #555;
    cursor: var(--cm-cursor-action, pointer);
}

#fpsSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #8a2be2;
    border: 2px solid #fff;
    cursor: var(--cm-cursor-action, pointer);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 10001;
}

#fpsSlider::-webkit-slider-thumb:hover {
    background: #9932cc;
    transform: scale3d(1.1, 1.1, 1);
}

#fpsSlider::-webkit-slider-thumb:active {
    background: #7b68ee;
    transform: scale3d(1.2, 1.2, 1);
}

/* Firefox */
#fpsSlider::-moz-range-track {
    width: 100%;
    height: 8px;
    background: #333;
    border-radius: 4px;
    border: 1px solid #555;
    cursor: var(--cm-cursor-action, pointer);
}

#fpsSlider::-moz-range-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #8a2be2;
    border: 2px solid #fff;
    cursor: var(--cm-cursor-action, pointer);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    border: none;
}

#fpsSlider::-moz-range-thumb:hover {
    background: #9932cc;
    transform: scale3d(1.1, 1.1, 1);
}

#fpsSlider::-moz-range-thumb:active {
    background: #7b68ee;
    transform: scale3d(1.2, 1.2, 1);
}

/* FPS Control Panel */
#fpsControl {
    position: fixed !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
    user-select: none !important;
    width: 200px !important;
    max-width: 200px !important;
}

#fpsControl * {
    user-select: none !important;
}

#fpsSlider {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}
