/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.55) transparent;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

code, pre {
    font-family: 'Fira Code', monospace;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 0;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.55);
    border-radius: 9999px;
    border: 2px solid transparent;
    background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.85);
    background-clip: content-box;
}
::-webkit-scrollbar:horizontal {
    height: 0;
}

/* Animation Utilities */
.opacity-0 {
    opacity: 0;
}

.animate-in {
    animation: fadeIn 0.8s ease-out forwards;
}

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

/* Flex utilities for Hidden elements */
.hidden-force {
    display: none !important;
}

.flex-force {
    display: flex !important;
}

/* Chat window specific */
#chat-window {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#chat-window.hidden {
    display: none;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
}

#chat-window.flex {
    display: flex;
    transform: scale(1) translateY(0);
    opacity: 1;
}
