/* Custom styles for the iTunes CD Creator */

.itunes-header {
    background: linear-gradient(180deg, #f5f5f5 0%, #e8e8e8 100%);
    border-bottom: 1px solid #ccc;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: linear-gradient(90deg, #10b981 0%, #f59e0b 50%, #ef4444 100%);
    border-radius: 2px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: linear-gradient(145deg, #ffffff, #e0e0e0);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: linear-gradient(145deg, #ffffff, #e0e0e0);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.boost-button {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 5px rgba(249, 115, 22, 0.5); }
    to { box-shadow: 0 0 20px rgba(249, 115, 22, 0.8), 0 0 30px rgba(249, 115, 22, 0.6); }
}

.cd-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.cd-disc {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cd-disc.burning {
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.6);
}

.cd-hole {
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    border: 1px solid #9ca3af;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.play-button {
    transition: all 0.2s ease;
}

.play-button:hover {
    transform: scale(1.1);
}

.burn-button {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.volume-visualizer {
    display: flex;
    align-items: end;
    height: 60px;
    spacing: 2px;
    gap: 2px;
}

.volume-bar {
    width: 4px;
    background: #10b981;
    border-radius: 2px 2px 0 0;
    transition: all 0.3s ease;
    animation: bounce 0.5s ease infinite alternate;
}

.volume-bar:nth-child(even) {
    animation-delay: 0.1s;
}

.volume-bar:nth-child(3n) {
    animation-delay: 0.2s;
}

@keyframes bounce {
    from { transform: scaleY(0.8); }
    to { transform: scaleY(1.2); }
}

.volume-display {
    background: linear-gradient(145deg, #1f2937, #374151);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

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

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

/* Retro table styling */
table {
    border-collapse: separate;
    border-spacing: 0;
}

tr:hover {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.05), rgba(59, 130, 246, 0.1));
}

/* Glass morphism effects */
.bg-white {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

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

.animate-fadeIn {
    animation: fadeIn 0.5s ease-out;
}