/* Custom animations for message appearance */
@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply animation to messages */
.flex.justify-start > div, .flex.justify-end > div {
    animation: messageIn 0.3s ease-out forwards;
}

/* Delay animations for sequential appearance */
.flex.justify-start:nth-child(2) > div {
    animation-delay: 0.1s;
}

.flex.justify-end > div {
    animation-delay: 0.2s;
}

.flex.justify-start:nth-child(4) > div {
    animation-delay: 0.3s;
}

/* Custom scrollbar for message area */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c4c4c4;
    border-radius: 3px;
}

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