/* Confetti Animation Styles */
#confettiCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    display: none;
}

/* Success message enhancements for confetti integration */
.success-message {
    animation: successBounce 0.6s ease-out;
}

@keyframes successBounce {
    0% {
        transform: scale(0.3) rotate(-3deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.05) rotate(2deg);
    }
    70% {
        transform: scale(0.9) rotate(-1deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Celebration button effects */
.celebration-btn {
    position: relative;
    overflow: hidden;
}

.celebration-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transition: all 0.3s ease;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.celebration-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Quiz completion celebration styles */
.quiz-success {
    animation: quizSuccess 0.8s ease-out;
}

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

/* Confetti button specific styles */
#confettiTestBtn {
    position: relative;
    background: linear-gradient(45deg, #8b5cf6, #ec4899);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

#confettiTestBtn:hover {
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

#confettiTestBtn:active {
    transform: scale(0.95);
}