﻿.msg-bubble {
    margin-bottom: 8px;
    padding: 6px 12px;
    border-radius: 12px;
    display: inline-block;
    max-width: 80%;
    transition: all 0.3s ease;
}

.msg-user {
    background-color: #d1e7dd;
    align-self: flex-end;
}

.msg-bot {
    background-color: #f8f9fa;
    align-self: flex-start;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

.typing-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    margin: 0 2px;
    background: #007bff;
    border-radius: 50%;
    animation: blink 1s infinite;
}

    .typing-dot:nth-child(2) {
        animation-delay: 0.2s;
    }

    .typing-dot:nth-child(3) {
        animation-delay: 0.4s;
    }

@keyframes blink {
    0%,80%,100% {
        opacity: 0;
    }

    40% {
        opacity: 1;
    }
}

.loader-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.loader {
    display: flex;
    gap: 5px;
}

    .loader div {
        width: 10px;
        height: 10px;
        background: #007bff;
        border-radius: 50%;
        animation: bounce 0.6s infinite alternate;
    }

        .loader div:nth-child(2) {
            animation-delay: 0.2s;
        }

        .loader div:nth-child(3) {
            animation-delay: 0.4s;
        }

@keyframes bounce {
    to {
        transform: translateY(-10px);
        opacity: 0.5;
    }
}

.suggestions-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.suggestion-item:hover {
    background-color: #f0f0f0;
    cursor: pointer;
}

.messages-window {
    height: 50vh; /* altezza iniziale */
    max-height: 50vh; /* altezza massima */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    transition: height 0.3s ease; /* animazione dolce */
}

