/* Chatbot Container */
#chatbot-container {
    position: fixed;
    bottom: 70px;
    right: 10px;
    z-index: 9999;
    font-family: 'poppins', sans-serif;
}

/* Chatbot Main Box */
#chatbot {
    display: none;
    width: 320px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

/* Chatbot Header */
#chatbot-header {
    background: #4CAF50;
    color: #ffffff;
    padding: 15px;
    font-weight: bold;
    text-align: center;
    font-size: 16px;
    letter-spacing: 1px;
    border-bottom: 1px solid #3e8e41;
}

/* Chat Messages */
#chatbot-messages {
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
    background: #f9f9f9;
}
#close-chatbot {
    position: absolute;
    right: 10px;
    
    border: none;
    font-size: 24px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

#close-chatbot:hover {
    color: #e74c3c; /* Change color on hover */
}

/* Bot and User Messages */
.bot-message, .user-message {
    margin: 12px 0;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.6;
}

.bot-message {
    background: #e6f4ea;
    color: #333333;
    text-align: left;
    max-width: 80%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-message {
    background: #4CAF50;
    color: #ffffff;
    text-align: right;
    margin-left: auto;
    max-width: 80%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Typing Indicator */
#chatbot-typing-indicator {
    font-style: italic;
    color: #888888;
    padding: 10px;
    font-size: 12px;
    text-align: left;
}

/* Input Field */
#chatbot-input {
    border: none;
    border-top: 1px solid #e0e0e0;
    padding: 12px 16px;
    width: calc(100% - 32px);
    font-size: 14px;
    outline: none;
    background: #ffffff;
    border-radius: 0 0 12px 12px;
}

/* Chatbot Icon */
#chatbot-icon {
    cursor: pointer;
    width: 70px;
    height: 70px;
    background: #4CAF50;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease-in-out;
}

#chatbot-icon:hover {
    transform: scale(1.1);
}

#chatbot-icon img {
    width: 28px;
    height: 28px;
}

/* Scrollbar Styling */
#chatbot-messages::-webkit-scrollbar {
    width: 8px;
}

#chatbot-messages::-webkit-scrollbar-thumb {
    background: #cccccc;
    border-radius: 8px;
}

#chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #aaaaaa;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    /* Adjust chatbot size on smaller screens */
    #chatbot {
        width: 270px; /* Make the chatbot slightly smaller on mobile */
    }

    /* Make chatbot icon smaller on mobile */
    #chatbot-icon {
        width: 60px;
        height: 60px;
    }

    #chatbot-icon img {
        width: 8px;
        height: 8px;
    }

    /* Adjust close button size */
    #close-chatbot {
        font-size: 20px; /* Smaller close button on mobile */
        top: 5px;
        right: 5px;
    }

    /* Make the header font size smaller */
    #chatbot-header {
        font-size: 14px;
        padding: 12px;
    }

    /* Adjust message padding and font size */
    .bot-message, .user-message {
        padding: 10px 14px;
        font-size: 12px;
    }

    /* Adjust input field size */
    #chatbot-input {
        padding: 10px 14px;
        font-size: 12px;
    }
}
