﻿.container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 70vh;
}

.sidebar {
    width: 300px;
    background: #f5f5f5;
    border-right: 1px solid #e0e0e0;
    padding: 20px;
    overflow-y: auto;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wdheader {
    background: #1E9FFF;
    color: white;
    padding: 15px 20px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

.chat-container {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f5f5f5;
}

.input-area {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
}

    .input-area input {
        flex: 1;
        padding: 10px 15px;
        border: 1px solid #dcdfe6;
        border-radius: 20px;
        font-size: 14px;
        margin-right: 10px;
    }

.btn-send {
    background: #1E9FFF;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .btn-send:hover {
        background: #0e8de9;
    }

.message {
    margin-bottom: 15px;
    display: flex;
}

.user-message {
    justify-content: flex-end;
}

.system-message {
    justify-content: flex-start;
}

.message-content {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 18px;
    font-size: 14px;
    position: relative;
}

.user-message .message-content {
    background-color: #95ec69;
    color: #000;
    border-top-right-radius: 4px;
}

.system-message .message-content {
    background-color: #ffffff;
    color: #333;
    border-top-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.message-time {
    text-align: center;
    color: #999;
    font-size: 12px;
    margin: 10px 0;
}

.qa-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.qa-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.qa-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 5px;
}

    .qa-item:hover {
        background: #e8f4ff;
    }

.sys-info {
    background: #e8f4ff;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 13px;
}

    .sys-info p {
        margin: 5px 0;
    }

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    background: #1E9FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.user-avatar {
    background: #ffa726;
}

.system-avatar {
    background: #e8e8e8;
}

.message-container {
    display: flex;
    margin-bottom: 15px;
}

    .message-container.user {
        flex-direction: row-reverse;
    }

        .message-container.user .avatar {
            margin-right: 0;
            margin-left: 10px;
        }
