#chat-widget-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chat-button {
    width: 100px; /* Tăng kích thước để robot rõ hơn */
    height: 100px;
/*    border-radius: 50%;*/
/*    background-color: #ffffff; /* Nền trắng để robot nổi bật */
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
/*    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);*/
    transition: all 0.3s ease;
    overflow: hidden; /* Đảm bảo animation không tràn ra ngoài */
}

css
Copy Code
.export-button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.export-button:hover {
    opacity: 1;
}

.export-button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.export-button svg {
    width: 20px;
    height: 20px;
}
.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

#robot-animation {
    width: 80%; /* Điều chỉnh kích thước của robot */
    height: 80%;
}
.chat-button svg {
    width: 30px;
    height: 30px;
    color: white;
}

.chat-window {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 40px rgba(0, 0, 0, 0.16);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
}

.chat-header {
    padding: 20px;
    background: #0084ff;
    color: white;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
}

.close-button svg {
    width: 20px;
    height: 20px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.user-message, .bot-message {
    margin: 10px 0;
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    word-wrap: break-word;
}

.user-message {
    background: #0084ff;
    color: white;
    margin-left: auto;
}

.bot-message {
    background: #f0f0f0;
    color: #333;
    margin-right: auto;
}

.bot-message h3 {
    margin: 20px 0 15px 0;
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.bot-message p {
    margin: 10px 0;
}

.bot-message strong {
    font-weight: bold;
}

.bot-message br {
    display: block;
    margin: 5px 0;
}
.bot-message ul, .bot-message ol {
    margin-left: 20px;
}

.bot-message li {
    margin: 5px 0;
}

.chat-input-container {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: flex-end;
    background: white;
}

.chat-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 10px 15px;
    margin-right: 10px;
    resize: none;
    max-height: 100px;
    outline: none;
    font-family: inherit;
}

.send-button {
    background: none;
    border: none;
    color: #0084ff;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-button:disabled {
    color: #ccc;
    cursor: not-allowed;
}

.send-button svg {
    width: 24px;
    height: 24px;
}



.export-button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.export-button:hover {
    opacity: 1;
}

.export-button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.spinning {
    animation: spin 1s linear infinite;
}

/* Thêm media query cho thiết bị có virtual keyboard */
@media (max-width: 480px) {
    .chat-window {
        width: 100%;
        height: 90vh; /* Sử dụng vh thay vì % */
        bottom: 0;
        right: 0;
        border-radius: 0;
        position: fixed;
        display: flex;
        flex-direction: column;
    }

    /* Ẩn nút chat khi chat window đang mở */
    .chat-window[style*="flex"] + .chat-button {
        display: none;
    }

    .chat-button {
        width: 50px;
        height: 50px;
        bottom: 10px;
        right: 10px;
    }

    .chat-button svg {
        width: 25px;
        height: 25px;
    }
       /* Đảm bảo messages container không bị che khuất */
    .chat-messages {
        flex: 1;
        overflow-y: auto;
        padding: 20px;
        padding-bottom: 60px;
    }

    .chat-input-container {
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        padding: 10px;
        border-top: 1px solid #eee;
        z-index: 1001;
    }

    .chat-button {
        width: 80px;
        height: 80px;
/*        bottom: 20px;
        right: 20px;*/
    }



    /* Điều chỉnh vị trí input container khi có virtual keyboard */
/*    .chat-input-container {
        position: sticky;
        bottom: 0;
        background: white;
        padding: 10px;
        z-index: 1001;
    }*/

 
}
.header-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}
    /* Thêm class mới cho trạng thái keyboard visible */
    .keyboard-visible .chat-messages {
        margin-bottom: 0;
    }

    .keyboard-visible .chat-input-container {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
    }
}