﻿#chatbox-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

#chatbox-header {
    background: #007bff;
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: bold;
}

#chatbox-messages {
    height: 200px;
    overflow-y: auto;
    padding: 10px;
}

#chatbox-input {
    width: 70%;
    padding: 5px;
    border: none;
    outline: none;
}

#chatbox-send {
    margin-left: 10px; /* Tạo khoảng cách với ô nhập */
    width: 30%;
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

/* Giao diện hộp chat */
#chatbox-container {
    width: 320px;
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: none; /* Mặc định ẩn */
    animation: fadeIn 0.3s ease-in-out;
}

/* Hiệu ứng mở */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Header */
#chatbox-header {
    background: #007bff;
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#chatbox-close {
    cursor: pointer;
    font-size: 18px;
    margin-right: 10px;
}

/* Nội dung tin nhắn */
#chatbox-messages {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
}

/* Input & Button */
#chatbox-input-container {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
}

#chatbox-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#chatbox-send {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 5px;
}


/* Nút mở chatbot */
#chatbox-toggle {
    width: 80px; /* Kích thước nút */
    height: 80px;
    background-color: white; /* Đặt nền trắng */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: fixed;
    bottom: 20px;
    right: 20px;
    border-radius: 50%; /* Làm tròn hoàn toàn */
    overflow: hidden; /* Cắt phần dư nếu có */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Hiệu ứng bóng */
}

    /* Ảnh chatbot */
    #chatbox-toggle img {
        width: 110%; /* Phóng to ảnh để lấp đầy hình tròn */
        height: 110%;
        object-fit: cover; /* Đảm bảo ảnh lấp đầy khung */
    }



