body {
    font-family: "Poppins", sans-serif;
}

#chatbot {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 100%;
    max-width: 450px;
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    border-radius: 10px;
    display: none;
    flex-direction: column;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 999999;
}

#chatbot-header {
    background-color: #007bff;
    color: white;
    padding: 10px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#chatbot-header > span {
    font-size: 20px;
    font-weight: 700;
}

#chatbot-messages {
    padding: 10px;
    height: 200px;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.message {
    margin: 5px 0;
    padding: 8px;
    border-radius: 10px;
    display: inline-block;
    max-width: 80%;
    word-wrap: break-word;
}

.message.bot {
    background-color: #e1e1e1;
    align-self: flex-start;
}

.message.user {
    background-color: #007bff;
    color: white;
    align-self: flex-end;
}

.send-message {
    display: flex;
    padding: 15px;
}

#chatbot-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 10px 0 0 10px;
    outline: none;
}

#send-btn {
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
}

#open-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
}

#close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

/* Media Queries for Responsiveness */
@media (max-width: 600px) {
    #chatbot {
        width: 100%;
        left: 0;
        border-radius: 10px 10px 0 0;
    }
}

@media (max-width: 400px) {
    #send-btn {
        width: 50px;
        padding: 10px 5px;
        font-size: 14px;
    }

    #chatbot-header > span {
        font-size: 18px;
    }

    .message {
        padding: 6px;
    }

    .message.bot, .message.user {
        width: 90%;
    }
}