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

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

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

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

/* Smooth transitions */
.transition-colors {
    transition: background-color 0.2s ease-in-out;
}

/* Focus styles */
.focus-ring {
    outline: none;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.5);
}

/* Loading state */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Error state */
.error {
    border-color: #ef4444;
}

/* Artist error display */
.artist-error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.artist-error-message {
    color: #dc2626;
}

/* Success state */
.success {
    border-color: #10b981;
}

/* Ordering radio buttons */
input[type="radio"][name="playlist-ordering"] {
    accent-color: #22c55e;
    width: 1rem;
    height: 1rem;
    cursor: pointer;
}

input[type="radio"][name="playlist-ordering"]:hover {
    accent-color: #16a34a;
}

label:has(input[type="radio"][name="playlist-ordering"]) {
    transition: color 0.2s ease-in-out;
}

label:has(input[type="radio"][name="playlist-ordering"]:hover) {
    color: #16a34a;
}

/* Playlist name suggestion chips */
.name-suggestion-chip {
    transition: all 0.2s ease;
}

.name-suggestion-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.name-suggestion-chip:active {
    transform: translateY(0);
}

/* Performance warning banner */
#performance-warning {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#performance-warning button:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
} 