.chat-window {
    background-color: #f8f9fa;
}
.message {
    display: flex;
    padding: 5px;
    margin-bottom: 8px;
}
.message.user {
    justify-content: flex-end;
}
.message.bot {
    justify-content: flex-start;
}
.message .bubble {
    max-width: 60%;
    padding: 10px 15px;
    border-radius: 15px;
    position: relative;
}
.message.user .bubble {
    background-color: #007bff;
    color: white;
    border-bottom-right-radius: 0;
}
.message.bot .bubble {
    background-color: #e9ecef;
    color: black;
    border-bottom-left-radius: 0;
}

.chat-loading-bubble {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 40px;
    background-color: #e0e0e0;
    border-radius: 20px;
    position: relative;
}

.chat-loading-bubble .dot {
    width: 8px;
    height: 8px;
    margin: 0 2px;
    background-color: #007bff;
    border-radius: 50%;
    animation: dot 1.2s infinite ease-in-out;
}

.chat-loading-bubble .dot:nth-child(1) {
    animation-delay: -0.24s;
}

.chat-loading-bubble .dot:nth-child(2) {
    animation-delay: -0.12s;
}

.chat-loading-bubble .dot:nth-child(3) {
    animation-delay: 0;
}

@keyframes dot {
    0%, 100% {
        transform: scale(0);
    }
    50% {
        transform: scale(1);
    }
}
