* {
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.5) rgba(15, 23, 42, 0.5);
}

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

*::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
}

*::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.5);
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.7);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

h1, h2, h3 {
    font-family: 'Fredoka', cursive;
}

code, pre {
    font-family: 'JetBrains Mono', monospace;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.3); }
    50% { box-shadow: 0 0 40px rgba(139, 92, 246, 0.6); }
}

.animate-bounce {
    animation: float 3s ease-in-out infinite;
}

/* Sparkle cursor effect */
@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

/* Custom gradient text */
.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

/* Loading state */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth transitions */
* {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

button {
    transition: all 0.2s ease;
}

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

/* Focus styles */
button:focus-visible,
input:focus-visible {
    outline: 2px solid rgba(139, 92, 246, 0.6);
    outline-offset: 2px;
}

/* Glassmorphism */
.backdrop-blur-sm {
    backdrop-filter: blur(8px);
}

/* Message animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply to messages as they appear */
[class*="justify-"] > div {
    animation: slideIn 0.3s ease-out;
}