/* Enhanced range track */
#fontSizeRange::-webkit-slider-runnable-track {
    background: var(--bg-color-secondary);
    height: 6px;
    border-radius: 4px;
}

#fontSizeRange::-moz-range-track {
    background: var(--bg-color-secondary);
    height: 6px;
    border-radius: 4px;
}

/* Enhanced slider thumb */
#fontSizeRange::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background-color: var(--bg-color-secondary);
    border: 2px solid #fff;
    border-radius: 50%;
    margin-top: -6px;
    /* align with track */
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background 0.2s ease;
}

#fontSizeRange::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background-color: var(--bg-color-secondary);
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background 0.2s ease;
}

/* Hover/focus style */
#fontSizeRange:hover::-webkit-slider-thumb,
#fontSizeRange:focus::-webkit-slider-thumb {
    background-color: var(--bg-color-primary);
}

#fontSizeRange:hover::-moz-range-thumb,
#fontSizeRange:focus::-moz-range-thumb {
    background-color: var(--bg-color-primary);
}

/* Other */

.reduce-motion * {
    animation: none !important;
    transition: none !important;
}

.high-contrast {
    filter: contrast(1.4);
    background-color: #000 !important;
    color: #fff !important;
}
