/* static/styles.css */

/* Stili per l'indicatore di digitazione */


body {
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
}

span {
    white-space: pre-line;
}

.chat-container {
    width: 60%;
    max-width: 800px;
    margin: 50px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.chat-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

.chat-box {
    height: 400px;
    overflow-y: scroll;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
    background-color: #fafafa;
}

.message {
    margin: 10px 0;
}

.message.user {
    text-align: right;
}

.message.bot {
    text-align: left;
}

.message .text {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 20px;
    max-width: 70%;
}

.message.user .text {
    background-color: #007bff;
    color: #fff;
}

.message.bot .text {
    background-color: #e5e5ea;
    color: #000;
}

#chat-form {
    display: flex;
    margin-top: 10px;
}

#message-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
}

#chat-form button {
    padding: 10px 20px;
    margin-left: 10px;
    border: none;
    background-color: #007bff;
    color: #fff;
    border-radius: 20px;
    cursor: pointer;
}

#chat-form button:hover {
    background-color: #0056b3;
}


.typing {
    font-style: italic;
    color: #555;
}

.typing .dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-left: 2px;
    background-color: #555;
    border-radius: 50%;
    animation: blink 1s infinite;
}

.typing .dot:nth-child(1) {
    animation-delay: 0s;
}

.typing .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}
