#chatbot-container {
    position: fixed !important;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: none;
    flex-direction: column;
    z-index: 1000;
}

#chatbot-header {
    background-color: #990000;
    color: white;
    padding: 10px;
    cursor: pointer;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    position: relative;
}

#chat-close-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
}

#chatbot-messages {
    height: 200px;
    overflow-y: auto;
    padding: 10px;
    background-color: #f9f9f9;
}

#chatbot-input-area {
    display: flex;
    padding: 10px;
    background-color: #fff;
    border-top: 1px solid #ddd;
    box-sizing: border-box; /* Ensures padding is included in the width */
}

#chatbot-input {
    flex-grow: 1;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 15px;
    margin-right: 10px;
    width: calc(100% - 70px); /* Adjust width to prevent overflow */
}

#chatbot-send-btn {
    padding: 5px 10px;
    background: linear-gradient(to bottom, #ff8080 0%, #990000 100%);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 60px; /* Define a fixed width for the button */
}

.chat-message {
    max-width: 60%;
    padding: 8px 10px;
    border-radius: 18px;
    margin-bottom: 5px;
    color: white;
}

.chat-message.user {
    background-color: #990000;
	text-align: right;
    align-self: flex-end;
}

.chat-message.bot {
    background-color: #E5E5EA;
    color: black;
	text-align: left;
    align-self: flex-start;
}

#chatbot-messages {
    display: flex;
    flex-direction: column;
}

.bot-spacing {
    margin-bottom: 20px; /* Adjust the space as needed */
}

/* Dark mode styles for chatbot container */

body.dark-mode #chatbot-messages,
body.dark-mode #chatbot-input-area,
body.dark-mode #chatbot-input,
body.dark-mode .chat-message.bot {
    background: rgba(55, 55, 55, 0.8); /* Slightly lighter/different shade for contrast */
    color: white; /* Text color for readability */
    border-color: rgba(80, 80, 80, 0.9); /* Border color for inputs and buttons */
}

