/* Custom styles for Spotify Stats */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Glassmorphism effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

/* Hover effects */
.hover-scale {
    transition: transform 0.2s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

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

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: rgba(34, 197, 94, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(34, 197, 94, 0.7);
}

/* Table styles */
.table-row-hover {
    transition: background-color 0.2s ease;
}

.table-row-hover:hover {
    background-color: rgba(34, 197, 94, 0.1);
}

/* Upload area styles */
.upload-area {
    border: 2px dashed rgba(34, 197, 94, 0.5);
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: rgba(34, 197, 94, 0.8);
    background-color: rgba(34, 197, 94, 0.05);
}

.upload-area.dragover {
    border-color: rgba(34, 197, 94, 1);
    background-color: rgba(34, 197, 94, 0.1);
    transform: scale(1.02);
}

/* Loading spinner */
.spinner {
    border: 3px solid rgba(34, 197, 94, 0.2);
    border-top: 3px solid rgba(34, 197, 94, 1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Chart container responsive */
.chart-container {
    position: relative;
    height: 250px;
    width: 100%;
    max-height: 250px;
}

/* Canvas size constraints */
canvas {
    max-height: 250px !important;
}

/* Chart wrapper for better responsive behavior */
.chart-wrapper {
    position: relative;
    height: 250px;
    width: 100%;
    overflow: hidden;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .text-5xl {
        font-size: 2.5rem;
    }
    
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Custom button styles */
.btn-spotify {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    transition: all 0.3s ease;
}

.btn-spotify:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.3);
}

/* Card styles */
.card-spotify {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(34, 197, 94, 0.3);
    transition: all 0.3s ease;
}

.card-spotify:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(34, 197, 94, 0.5);
}

/* Text selection */
::selection {
    background-color: rgba(34, 197, 94, 0.3);
    color: white;
}

/* Focus styles */
.focus-spotify:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}
