/* Custom animations and styles */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

/* Custom scrollbar for better UX */
::-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;
}

/* Beat grid styling */
.grid-cols-32 {
    grid-template-columns: repeat(32, minmax(0, 1fr));
}

/* Responsive design */
@media (max-width: 768px) {
    .grid-cols-32 {
        grid-template-columns: repeat(16, minmax(0, 1fr));
    }
    
    .grid-cols-\[200px_1fr\] {
        grid-template-columns: 150px 1fr;
    }
}

/* Audio level indicator animation */
@keyframes audioLevel {
    0%, 100% { height: 20%; }
    50% { height: 80%; }
}

.audio-level-bar {
    animation: audioLevel 0.5s ease-in-out infinite;
}

/* Glow effect for active beats */
.beat-glow {
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
}