﻿.chat-messages {
    max-height: 500px;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background-color: #f9f9f9;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.chat-bubble {
    max-width: 75%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 1rem;
    line-height: 1.5;
    word-wrap: break-word;
    white-space: pre-wrap;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: relative;
}

    .chat-bubble.user {
        align-self: flex-end;
        background-color: #e3f2fd;
        color: #0d47a1;
        text-align: right;
    }

    .chat-bubble.assistant {
        align-self: flex-start;
        background-color: #f1f8e9;
        color: #33691e;
        text-align: left;
    }

    .chat-bubble small {
        display: block;
        font-size: 0.75rem;
        color: #666;
        margin-top: 6px;
    }

    .chat-bubble img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        margin-top: 10px;
    }
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-bubble {
    animation: fadeInUp 0.4s ease-out;
}
.typing-indicator {
    font-style: italic;
    color: #999;
    margin-left: 0.5rem;
    margin-bottom: 1rem;
    animation: blink 1.2s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 0.2;
    }

    50% {
        opacity: 1;
    }
}

.chat-messages {
    scroll-behavior: smooth;
}


