/* Chat Button */
#chatbot-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: #fff;
    padding: 14px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 9999;
    font-size: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}


/* Chatbox */
#chatbot {
    position: fixed;
    bottom: 80px;
    left: 20px;
    width: 320px;
    background: #ffffff;
    border-radius: 18px;
    z-index: 9999;
    font-family: 'Segoe UI', sans-serif;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    overflow: hidden;
}


/* Header */
.chat-header {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: #fff;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
}


/* Chat Body */
#chat-body {
    height: 220px;
    overflow-y: auto;
    padding: 15px;
    background: #f4f7fb;
    display: flex;
    flex-direction: column;
}


/* 🔥 MODERN MESSAGE STYLE (MAIN FIX) */
.msg {
    background: #ffffff;
    padding: 10px 14px;
    margin-bottom: 10px;
    border-radius: 14px;
    font-size: 13px;
    max-width: 85%;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    animation: fadeIn 0.3s ease;
}


/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Buttons Area */
#chat-buttons {
    padding: 12px;
    background: #fff;
    border-top: 1px solid #eee;
}


/* Buttons */
#chat-buttons button {
    margin: 4px;
    padding: 8px 14px;
    border-radius: 20px;
    border: none;
    background: #eef3ff;
    cursor: pointer;
    font-size: 13px;
    transition: 0.2s;
}

#chat-buttons button:hover {
    background: #4facfe;
    color: #fff;
}


/* Inputs */
#chat-buttons input {
    width: 100%;
    margin-bottom: 6px;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ddd;
}


/* Submit button */
#chat-buttons button:last-child {
    width: 100%;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: #fff;
}


/* Mobile */
@media (max-width: 768px) {
    #chatbot {
        left: 10px;
        width: 95%;
    }

    #chatbot-btn {
        left: 10px;
    }
}