/* ======= NÚT MỞ CHATBOT ======= */
#ai-chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 25px; /* Bo tròn giống nút nhấn */
    cursor: pointer;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
}
#ai-chat-toggle:hover {
    background: #0056b3;
    transform: scale(1.05); /* Hiệu ứng phóng to khi hover */
}

/* ======= HỘP CHAT ======= */
#ai-chat-box {
    position: fixed;
    bottom: 70px; /* Cách nút toggle một khoảng */
    right: 20px;
    width: 320px;
    max-width: 90%;
    background: white;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: none; /* Ẩn mặc định */
    animation: fadeIn 0.3s ease-in-out;
    z-index: 1000;
}

/* ======= HEADER ======= */
#ai-chat-header {
    background: #007bff;
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    position: relative;
}
#ai-chat-close {
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
    font-size: 16px;
}
#ai-chat-close:hover {
    color: #ffcccc; /* Hiệu ứng khi hover nút đóng */
}

/* ======= VÙNG CHAT ======= */
#ai-chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 10px;
    background: #f1f1f1;
    display: flex;
    flex-direction: column;
}
.user-message, .bot-message {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 10px;
    margin: 5px 0;
}
.user-message {
    align-self: flex-end;
    background: #007bff;
    color: white;
}
.bot-message {
    align-self: flex-start;
    background: #e5e5e5;
    color: black;
}

/* ======= Ô NHẬP VÀ NÚT GỬI ======= */
#ai-chat-input-container {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ccc;
    background: white;
}
#ai-chat-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
#ai-chat-send {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 12px;
    margin-left: 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}
#ai-chat-send:hover {
    background: #0056b3;
}

/* ======= ANIMATION ======= */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ======= CSS CHO ADMIN WORDPRESS ======= */
.wrap-bot h1 {
    color: #2271b1;
}
.wrap-bot form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
}
.wrap-bot input[type="password"],
.wrap-bot select {
    width: 400px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}