/* Frame Rate Converter Tool Styles */

/* FPS slider with striped background */
.fps-slider {
    --fps-value: 24.37%; /* Default 30 FPS: ((30-1)/119)*100 = 24.37% */
    height: 8px;
    background: repeating-linear-gradient(
        45deg,
        #e9ecef,
        #e9ecef 5px,
        #d3d6d9 5px,
        #d3d6d9 10px
    );
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.fps-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #052c65;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.fps-slider::-webkit-slider-thumb:hover {
    background: #041f4a;
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.fps-slider::-webkit-slider-runnable-track {
    height: 8px;
    background: linear-gradient(to right,
        #052c65 0%,
        #052c65 var(--fps-value, 0%),
        transparent var(--fps-value, 0%)),
        repeating-linear-gradient(
            45deg,
            #e9ecef,
            #e9ecef 5px,
            #d3d6d9 5px,
            #d3d6d9 10px
        );
    border-radius: 4px;
}

.fps-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #052c65;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.fps-slider::-moz-range-thumb:hover {
    background: #041f4a;
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.fps-slider::-moz-range-track {
    height: 8px;
    background: repeating-linear-gradient(
        45deg,
        #e9ecef,
        #e9ecef 5px,
        #d3d6d9 5px,
        #d3d6d9 10px
    );
    border-radius: 4px;
}

.fps-slider::-moz-range-progress {
    height: 8px;
    background: #052c65;
    border-radius: 4px;
}

/* Dark mode slider */
[data-bs-theme="dark"] .fps-slider {
    background: repeating-linear-gradient(
        45deg,
        #343a40,
        #343a40 5px,
        #495057 5px,
        #495057 10px
    );
}

[data-bs-theme="dark"] .fps-slider::-webkit-slider-thumb {
    background: #6ea8fe;
}

[data-bs-theme="dark"] .fps-slider::-webkit-slider-thumb:hover {
    background: #9ec5fe;
}

[data-bs-theme="dark"] .fps-slider::-moz-range-thumb {
    background: #6ea8fe;
}

[data-bs-theme="dark"] .fps-slider::-moz-range-thumb:hover {
    background: #9ec5fe;
}

[data-bs-theme="dark"] .fps-slider::-webkit-slider-runnable-track {
    background: linear-gradient(to right,
        #6ea8fe 0%,
        #6ea8fe var(--fps-value, 0%),
        transparent var(--fps-value, 0%)),
        repeating-linear-gradient(
            45deg,
            #343a40,
            #343a40 5px,
            #495057 5px,
            #495057 10px
        );
}

[data-bs-theme="dark"] .fps-slider::-moz-range-track {
    background: repeating-linear-gradient(
        45deg,
        #343a40,
        #343a40 5px,
        #495057 5px,
        #495057 10px
    );
}

[data-bs-theme="dark"] .fps-slider::-moz-range-progress {
    background: #6ea8fe;
}

/* FPS preset buttons */
.fps-preset {
    padding: 12px 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.fps-preset:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.fps-preset small {
    font-size: 11px;
    opacity: 0.8;
}

/* Video preview wrapper */
.video-preview-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    background-color: #000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.video-preview {
    width: 100%;
    height: auto;
    display: block;
}

/* FPS settings card */
.fps-settings-card .card-header {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

[data-bs-theme="dark"] .fps-settings-card .card-header {
    background-color: #343a40;
    border-bottom-color: #495057;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .fps-slider::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
    }

    .fps-slider::-moz-range-thumb {
        width: 24px;
        height: 24px;
    }

    .fps-preset {
        padding: 10px 6px;
        font-size: 13px;
    }

    .fps-preset small {
        font-size: 10px;
    }
}
