/* Custom styles */
body {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
}

.genre-card:hover, .vocal-card:hover {
    transform: translateY(-5px);
}

.selected {
    border-color: #6366f1;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.7);
}

.slider-track {
    height: 4px;
    background: #334155;
    border-radius: 2px;
}

.slider-thumb {
    width: 16px;
    height: 16px;
    background: #6366f1;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(99, 102, 241, 0.7);
}

.prompt-output {
    min-height: 120px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 1rem;
    color: #f8fafc;
    font-family: 'Inter', monospace;
    transition: all 300ms ease;
}

.prompt-output:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.copy-btn:hover {
    background: #4f46e5;
}

.save-btn:hover {
    background: #059669;
}

.generate-btn {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    transition: all 300ms ease;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.5);
}

.history-item {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 200ms ease;
}

.history-item:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: #6366f1;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.fade-in-delay-1 {
    animation: fadeIn 0.5s ease-out 0.1s forwards;
    opacity: 0;
}

.fade-in-delay-2 {
    animation: fadeIn 0.5s ease-out 0.2s forwards;
    opacity: 0;
}

.fade-in-delay-3 {
    animation: fadeIn 0.5s ease-out 0.3s forwards;
    opacity: 0;
}

.fade-in-delay-4 {
    animation: fadeIn 0.5s ease-out 0.4s forwards;
    opacity: 0;
}

/* Custom Scrollbar for Prompt Templates */
#promptTemplates {
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.5) rgba(51, 65, 85, 0.3);
}

#promptTemplates::-webkit-scrollbar {
    width: 6px;
}

#promptTemplates::-webkit-scrollbar-track {
    background: rgba(51, 65, 85, 0.3);
    border-radius: 3px;
}

#promptTemplates::-webkit-scrollbar-thumb {
    background-color: rgba(99, 102, 241, 0.5);
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

#promptTemplates::-webkit-scrollbar-thumb:hover {
    background-color: rgba(99, 102, 241, 0.8);
}

/* Audio Preview Button */
.audio-preview-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 200ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-preview-btn:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.audio-preview-btn:active {
    transform: scale(0.95);
}

/* Audio Player Modal */
#audioPlayerModal {
    backdrop-filter: blur(5px);
}

#audioPlayer {
    border-radius: 8px;
    background: rgba(30, 41, 59, 0.8);
}

#audioPlayer::-webkit-media-controls-panel {
    background: rgba(30, 41, 59, 0.9);
}

#audioPlayer::-webkit-media-controls-current-time-display,
#audioPlayer::-webkit-media-controls-time-remaining-display {
    color: #f8fafc;
}
