﻿/* Additional styling for the chat UI */
.chat-container {
    margin: 0 auto 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    padding: 10px 15px;
    border-bottom: 1px solid transparent;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

.chat-container > .chat-header {
    color: #333;
    background-color: #f5f5f5;
    border-color: #ddd;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background-color: #f8f9fa;
}

.chat-scroll-button {
    position: absolute;
    bottom: 25%;
    right: 50%;
    font-size: 18px;
    background-color: #5a636ccc;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
}

    .chat-scroll-button.visible {
        visibility: visible;
        opacity: 1;
    }

    .chat-scroll-button:hover {
        background-color: #0056b3;
    }

.message {
    margin-bottom: 10px;
}

    .message.user .text {
        background-color: #007bff;
        color: white;
        border-radius: 15px 15px 0 15px;
        padding: 8px 12px;
        display: inline-block;
        max-width: 80%;
    }

    .message.bot .text {
        background-color: #e9ecef;
        color: #333;
        border-radius: 15px 15px 15px 0;
        padding: 8px 12px;
        display: inline-block;
        max-width: 80%;
    }

.chat-input {
    padding: 10px;
    background-color: #fff;
    border-top: 1px solid #ddd;
    display: flex;
}

.chat-input textarea {
    flex: 1;
    resize: none;
}

.chat-input button {
    margin-left: 10px;
}
