/* Custom animations and effects */

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

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

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

@keyframes confettiFall {
    to {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes disco {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(360deg); }
}

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

.animate-bounce-in {
    animation: bounceIn 0.5s ease-out;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.upload-zone {
    border: 3px dashed #FF6B6B;
    transition: all 0.3s ease;
}

.upload-zone:hover {
    border-color: #4ECDC4;
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(78, 205, 196, 0.3);
}

.strawberry-spinner {
    font-size: 64px;
    animation: spin 2s linear infinite;
    display: inline-block;
}

.confetti-particle {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confettiFall 3s ease-in forwards;
}

body.disco-mode {
    animation: disco 3s linear infinite;
}

body.disco-mode .glass-panel {
    animation: disco 2s linear infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .glass-panel {
        padding: 16px !important;
    }
    
    h1 {
        font-size: 2.5rem !important;
    }
}

/* Smooth transitions */
* {
    transition: transform 0.2s ease;
}

button:active {
    transform: scale(0.95) !important;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FF6B6B, #FF8787);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #FF8787, #4ECDC4);
}