/* Custom animations and transitions */
button, input[type="range"], .quality-option {
    transition: all 0.2s ease-in-out;
}

/* Hover effects */
button:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

button:active {
    transform: scale(0.98);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Dark mode scrollbar */
.dark ::-webkit-scrollbar-track {
    background: #2d3748;
}

.dark ::-webkit-scrollbar-thumb {
    background: #4a5568;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #718096;
}

/* Range input styling */
input[type="range"] {
    -webkit-appearance: none;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #4299e1;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: #3182ce;
    transform: scale(1.2);
}

/* Video player styling */
#videoPlayer {
    max-height: 70vh;
}
/* Video trimmer styles */
#trimRange {
    background: rgba(16, 185, 129, 0.5);
    height: 100%;
    left: 0%;
    width: 0%;
    pointer-events: none;
}

#startHandle, #endHandle {
    transform: translateX(-50%);
    transition: all 0.1s ease;
}

#startHandle:hover, #endHandle:hover {
    transform: translateX(-50%) scale(1.2);
}

#startHandle:active, #endHandle:active {
    transform: translateX(-50%) scale(0.9);
}

.format-btn.active {
    background-color: #4299e1 !important;
    color: white !important;
}

/* Pulse animation for active elements */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 0.5s ease-in-out;
}