/* chatbot.css - style cơ bản */
.simple-chatbot-wrap {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    max-width: 1100px;
    margin: 20px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Sidebar thám tử */
.chatbot-sidebar {
    width: 280px;
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.chatbot-sidebar .avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.chatbot-sidebar h3 {
    margin: 8px 0 4px;
    font-size: 20px
}

.chatbot-sidebar p {
    color: #666;
    font-size: 14px;
    line-height: 1.5
}

/* Khung chat */
.chatbot-main {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 420px;
}

.chatbot-messages {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: linear-gradient(180deg, #fff, #fbfbfb);
}

.msg {
    max-width: 68%;
    padding: 10px 14px;
    border-radius: 16px;
    display: inline-block;
    font-size: 14px;
    line-height: 1.4
}

.msg.bot {
    background: #f1f1f1;
    align-self: flex-start;
    border-bottom-left-radius: 4px
}

.msg.user {
    background: #2db179;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    text-align: right
}

.msg .time {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 6px
}

/* Input area */
.chatbot-input {
    padding: 12px 16px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 8px;
    align-items: center;
}

.chatbot-input input[type="text"] {
    flex: 1;
    padding: 12px;
    border-radius: 999px;
    border: 1px solid #e6e6e6;
    font-size: 14px;
}

.chatbot-input button {
    background: #2db179;
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 999px;
    cursor: pointer
}

/* small screen */
@media(max-width:900px) {
    .simple-chatbot-wrap {
        flex-direction: column;
        padding: 10px
    }

    .chatbot-sidebar {
        width: 100%
    }

    .chatbot-main {
        width: 100%
    }
}