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

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: #0f172a;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

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

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

/* Modal transition */
#auth-modal {
    transition: opacity 0.2s ease;
}

#auth-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

#auth-modal:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

/* Toast animation */
#toast {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#toast.hidden {
    transform: translateX(100%);
    opacity: 0;
}

#toast:not(.hidden) {
    transform: translateX(0);
    opacity: 1;
}

/* Input autofill fix for dark theme */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: white;
    -webkit-box-shadow: 0 0 0px 1000px #1e293b inset;
    transition: background-color 5000s ease-in-out 0s;
}
