@keyframes confetti-fall {
    0% {
        transform: translateY(-100%) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.confetti {
    position: absolute;
    top: -50px;
    font-size: 2rem;
    animation: confetti-fall 3s ease-out forwards;
    pointer-events: none;
    z-index: 100;
}

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

*::-webkit-scrollbar-track {
    background: #1e293b;
    border-radius: 4px;
}

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

*::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Input range styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-track {
    background: #475569;
    height: 0.5rem;
    border-radius: 0.25rem;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: #3b82f6;
    height: 1.5rem;
    width: 1.5rem;
    border-radius: 50%;
    margin-top: -0.5rem;
}

input[type="range"]::-moz-range-track {
    background: #475569;
    height: 0.5rem;
    border-radius: 0.25rem;
}

input[type="range"]::-moz-range-thumb {
    background: #3b82f6;
    height: 1.5rem;
    width: 1.5rem;
    border-radius: 50%;
    border: none;
}

/* Smooth transitions */
textarea, input, button, select {
    transition: all 0.2s ease;
}

button:active {
    transform: scale(0.98);
}

/* Loading animation for streaming text */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}