body {
    font-family: 'Lato', sans-serif;
}
.message-bubble {
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    word-wrap: break-word;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.3s ease-out forwards;
    width: -moz-fit-content;
    width: fit-content;
}
@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.user-message {
    background-color: #6366f1;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 0.25rem;
}
.dark .user-message {
    background-color: #4f46e5;
}
.model-message {
    background-color: #f3f4f6;
    color: #374151;
    align-self: flex-start;
    border-bottom-left-radius: 0.25rem;
    max-width: 90%;
}
.dark .model-message {
    background-color: #1f2937;
    color: #ffffff;
}
.error-message {
    background-color: #ef4444;
    color: white;
    align-self: center;
    font-weight: 500;
    max-width: 90%;
}
:not(.dark) .prose-light-fix {
    color: #374151;
}
:not(.dark) .prose-light-fix h1,
:not(.dark) .prose-light-fix h2,
:not(.dark) .prose-light-fix h3,
:not(.dark) .prose-light-fix h4,
:not(.dark) .prose-light-fix h5,
:not(.dark) .prose-light-fix h6 {
    color: #111827;
}
:not(.dark) .prose-light-fix a {
    color: #4f46e5;
}
.model-message pre {
    background-color: #282c34; 
    color: #abb2bf;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1em;
    margin-bottom: 1em;
    overflow-x: auto;
    position: relative;
}
#sidebar {
    transition-property: transform, width, margin, padding, border;
    transition-duration: 0.3s;
    transition-timing-function: ease-in-out;
}
@media (max-width: 768px) {
    #sidebar {
        transform: translateX(-100%);
        position: absolute;
        z-index: 50;
        height: 100%;
    }
    #sidebar.open {
        transform: translateX(0);
    }
    #sidebar-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 40;
    }
}
@media (min-width: 769px) {
    #sidebar.desktop-hidden {
        width: 0 !important;
        padding-left: 0;
        padding-right: 0;
        border-left: none;
        border-right: none;
        overflow: hidden;
    }
}
#user-input {
    overflow-y: auto;
}
#user-input::-webkit-scrollbar {
    width: 6px;
}
#user-input::-webkit-scrollbar-track {
    background: transparent;
}
#user-input::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 3px;
}
.dark #user-input::-webkit-scrollbar-thumb {
    background: #4b5563;
}
