/* Custom styles */
input[type="text"],
input[type="number"] {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    width: 100%;
}

input[type="text"]:focus,
input[type="number"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Tempo slider styles */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #d1d5db;
    outline: none;
    margin: 1rem 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    transition: background 0.15s ease-in-out;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: #2563eb;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    transition: background 0.15s ease-in-out;
    border: none;
}

input[type="range"]::-moz-range-thumb:hover {
    background: #2563eb;
}

/* Loading state for the generate button */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Smooth transitions */
.hidden {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Error message animation */
#errorMessage {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* PDF viewer styles */
#pdfViewer {
    background: white;
}

/* MIDI player styles */
#midiPlayer {
    background: white;
    border-radius: 0.5rem;
}

#progressBar {
    transition: width 0.1s linear;
}

/* Player controls */
#playButton, #stopButton {
    transition: all 0.2s ease-in-out;
}

#playButton:hover, #stopButton:hover {
    transform: scale(1.05);
}

#playButton:active, #stopButton:active {
    transform: scale(0.95);
} 