/* Custom Slider Theme - Matches Photoshare Indigo/Purple Gradient */

.theme-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    opacity: 0.9;
    transition: opacity .2s;
    cursor: pointer;
    position: relative;
    /* Glass effect for track */
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .theme-slider {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.theme-slider:hover {
    opacity: 1;
}

/* Webkit (Chrome, Safari, Edge) Thumb */
.theme-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
    /* Indigo-600 to Purple-600 */
    cursor: pointer;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
    /* Glowing effect */
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: -8px;
    /* Centers thumb on track if needed, usually 0 or calc */
}

/* Fix for track height alignment if needed, standard range input structure varies */
.theme-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: transparent;
    /* Handled by container */
    border-radius: 9999px;
}

/* Firefox Thumb */
.theme-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
    cursor: pointer;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-slider::-moz-range-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: transparent;
    border-radius: 9999px;
}


/* Active/Focus States */
.theme-slider:active::-webkit-slider-thumb {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.7);
}

.theme-slider:active::-moz-range-thumb {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.7);
}

/* Focus outline for accessibility, styled nicely */
.theme-slider:focus {
    outline: none;
}

.theme-slider:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2), 0 0 15px rgba(99, 102, 241, 0.5);
}

.theme-slider:focus::-moz-range-thumb {
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2), 0 0 15px rgba(99, 102, 241, 0.5);
}

/* JavaScript will be needed to update the background gradient fill based on value if desired, 
   but for now this is a solid distinctive slider */