/* assets/css/chatbot-widget.css */

.chatbot-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 400px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background-color: #f8f9fa;
}

.message {
    margin-bottom: 10px;
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    word-wrap: break-word;
}

.bot-message {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    align-self: flex-start;
    margin-right: auto;
}

.user-message {
    background-color: #dcf8c6;
    align-self: flex-end;
    margin-left: auto;
    text-align: right;
}

.message-content {
    line-height: 1.4;
}

.chatbot-input-container {
    display: flex;
    padding: 10px;
    background-color: #f0f0f0;
    border-top: 1px solid #e0e0e0;
}

.chatbot-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    margin-right: 10px;
    font-size: 14px;
}

.chatbot-send-button {
    padding: 10px 15px;
    background-color: #4e73df;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.chatbot-send-button:hover {
    background-color: #3a5dd0;
}

/* Estilo para quando o bot está digitando */
.typing-indicator {
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 10px;
    margin-bottom: 10px;
    width: fit-content;
    display: flex;
    align-items: center;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    background-color: #606060;
    border-radius: 50%;
    display: inline-block;
    margin: 0 2px;
    animation: typing 1s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .message {
        max-width: 90%;
    }
}