/* General Styles */
body {
    font-family: Arial, sans-serif;
    /* background-color: #121212;
    margin: 0;
    padding: 0;
    color: #fff; */
}

/* Floating Chat Icon - Always Fixed at Bottom Right */
#chatbot-icon {
    position: absolute !important;  
    bottom: 20px;                /* ✅ Locks it to the bottom */
    right: 20px;                 /* ✅ Locks it to the right */
    width: 60px;
    height: 60px;
    background-color: #1e88e5;
    color: white;
    font-size: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    z-index: 9999; /* ✅ Ensures it's above everything */
}

#chatbot-icon:hover {
    background-color: #1565c0;
    transform: scale(1.5);
}

/* Chatbot Container */
#chatbot-container {
    position: fixed;
    bottom: 150px;
    right: 15px;
    /* left: 5px; */
    width: 450px;
    height: 750px;
    background-color: #1f1f1f;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Hide Chatbot Initially */
.hidden {
    display: none !important;
}

/* Chatbot Header */
#chatbot-header {
    background-color: #1e88e5;
    color: white;
    padding: 15px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
}

#close-btn, #expand-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    margin-left: 10px;
}

#expand-btn {
    font-size: 18px;
}

/* Chatbot Body */
#chatbot-body {
    flex: 1;
    padding: 0px;
    overflow-y: auto;
}

/* Chatbot Messages */
#chatbot-messages {
    display: flex;
    flex-direction: column;
}

.message {
    margin: 10px;
    padding: 10px 20px; /* Increased padding for larger message box */
    border-radius: 8px;
    max-width: 80%;
    /* font-size: 16px;  */
}

.message.user {
    margin: 10px;
    margin-left: 5px;
    background-color: #b5e0e3;
    color: rgb(10, 10, 10);
    align-self: flex-end;
}

.message.bot {
    margin: 10px;
    background-color: #333;
    color: white;
    align-self: flex-start;
}

/* Input Section */
#chatbot-input-container {
    size: 100%;
    display: flex;
    padding: 10px;
    border-top: 1px solid #444;
    background-color: #2c2c2c;
    flex-direction: row; /* Keep the default order */
}

#send-btn {
    padding: 10px 15px;
    background-color: #1e88e5;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    /* font-size: 14px; */
    margin-left: 10px; /* Add margin-right to create space between the button and input */
}

#send-btn:hover {
    background-color: #1565c0;
}

#chatbot-input {
    flex: 1;
    padding: 15px; /* Increased padding for larger text box */
    border: 1px solid #444;
    border-radius: 10px;
    background-color: #333;
    color: white;
    font-size: 16px; /* Increased text size */
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 968px) {
    #chatbot-container {
        width: 100%;
        height: 10%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }

    #chatbot-header {
        font-size: 16px;
        padding: 10px;
    }

    #close-btn, #expand-btn {
        font-size: 18px;
        margin-left: 5px;
    }

    #chatbot-input-container {
        padding: 5px;
    }

    #send-btn {
        padding: 8px 12px;
        font-size: 14px;
    }

    #chatbot-input {
        padding: 8px;
        font-size: 14px;
    }

    #expand-btn {
        display: none;
    }
}