body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}
.chat-box img {
    border-radius: 50%;
}
.chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 120px;
    height: 120px;
    background: url('icon.gif') no-repeat center center;
    /* background: url('<?= Url::base(); ?>/themes/library/assets/img/icon.gif') no-repeat center center; */
    background: url('https://library.kmutnb.ac.th/th/themes/library/assets/img/bot.gif') no-repeat center center;
    background-size: cover;
    border: none;
    cursor: pointer;
}
.chat-popup {
    position: fixed;
    bottom: 140px;
    right: 20px;
    width: 350px;
    max-width: 90%;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    overflow: hidden;
}
.chat-header {
    background: #0084ff;
    color: white;
    padding: 12px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
}
.close-chat {
    float: right;
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
}
.chat-box {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    max-height: 300px;
}
.message {
    margin-bottom: 10px;
    padding: 12px;
    border-radius: 15px;
    max-width: 75%;
    word-wrap: break-word;
    font-family: 'italic', serif;
    font-size: 14px;
}
.user-message {
    background: #0084ff;
    color: white;
    align-self: flex-end;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
}
.ai-message {
    background: #e4e6eb;
    color: black;
    align-self: flex-start;
}
.ai-message strong {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
}
.loading-message {
    font-style: italic;
    color: #666;
}
.input-box {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
    background: white;
}
.input-box input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    font-family: 'Inter', sans-serif;
}
/* .input-box button {
    margin-left: 10px;
    padding: 10px 14px;
    border: none;
    background: #0084ff;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
} */
.input-box button {
    margin-left: 10px;
    padding: 10px 14px;
    border: none;
    background: #0084ff;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    display: none; /* เพิ่มบรรทัดนี้เพื่อซ่อนปุ่มตั้งแต่เริ่ม */
}
.input-box button:hover {
    background: #0073e6;
}
.quick-btn {
    margin: 4px 6px 4px 0;
    padding: 6px 12px;
    border: none;
    background: #f0f0f0;
    color: #333;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}
.quick-btn:hover {
    background: #ddd;
}