/* Vùng chứa chatbot */
#chatbot-ai-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
}

/* Nút mở chat */
#chatbot-ai-toggle {
    background: linear-gradient(to right, #007bff, #00c6ff);
    color: white;
    border: none;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    font-size: 24px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
#chatbot-ai-toggle:hover {
    transform: scale(1.05);
}

/* Khung chat */
#chatbot-ai-box {
    width: 380px;
	height: 500px; /* Thêm dòng này */
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    margin-top: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', sans-serif;
}
#chatbot-ai-box.hidden {
    display: none;
}

/* Header */
#chatbot-ai-header {
    background: #007bff;
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
}

/* Vùng tin nhắn */
#chatbot-ai-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    /* max-height: 300px; */ /* Xoá dòng này */
}

/* Tin nhắn bot */
.message.bot {
    background: #f1f3f5;
    color: #333;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    width: fit-content;
    max-width: 85%;
}

/* Tin nhắn người dùng */
.message.user {
    background: #d1ecf1;
    color: #004085;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    margin-left: auto;
    width: fit-content;
    max-width: 85%;
    text-align: right;
}


/* Vùng nhập tin nhắn */
#chatbot-ai-input-area {
    display: flex;
    border-top: 1px solid #eee;
    padding: 8px;
    gap: 8px;
    align-items: center;
    background: #f9f9f9;
}

/* Ô nhập */
#chatbot-ai-input {
    flex: 1;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    height: 42px;
    box-sizing: border-box;
}

/* Nút gửi */
#chatbot-ai-send {
    background: #007bff;
    color: white;
    border: none;
    padding: 0 16px;
    height: 42px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s ease;
}
#chatbot-ai-send:hover {
    background: #0056b3;
}

/* Popup chào hỏi */
#chat-greeting.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}
