#chatContainer {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: calc(100% - 60px);
    height: 550px;
    max-width: 400px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    opacity: 1;
    z-index: 51;
    transition: height 0.5s ease, opacity 0.4s ease;
}

#chatContainer.chat-close {
    height: 0;
    opacity: 0;
}

.chatbot-button {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    bottom: 30px;
    right: 30px;
    padding: 10px;
    border-radius: 40px;
    background-color: #0072CE;
    box-shadow: #00000026 0 4px 8px 0;
    border: 1px solid white;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.chatbot-button:hover {
    transform: scale(1.1);
}

.chatbot-button img {
    width: 32px;
    height: 32px;
}

#chatHeader {
    background-color: #0072CE;
    color: #fff;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    position: relative;
}

.chat-header-close {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 17px;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.chat-header-close:hover {
    transform: scale(1.1);
}

#chatbox {
    padding: 15px;
    overflow-y: auto;
    flex-grow: 1;
}

#userInputContainer {
    display: flex;
    border-top: 1px solid #ccc;
}

#userInput {
    width: 100%;
    padding: 10px;
    border: none;
    outline: none;
}

#sendButton {
    background-color: #0072CE;
    border: none;
    color: white;
    padding: 10px 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#sendButton:hover {
    background-color: #325D5F;
}

#messages {
    border-radius: 15px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

.message {
    margin-top: 15px;
    padding: 0 15px;
    border-radius: 10px;
    max-width: 85%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.message.show {
    opacity: 1;
}

.message.waiting {
    display: none;
    padding: 10px 15px;
    justify-content: center;
    align-items: center;
}

.message.waiting img {
    width: 20px;
    height: auto;
}

.message ul {
    padding-left: 25px;
}

.message li {
    margin-bottom: 15px;
}

.message p {
    margin: 15px 0;
    text-overflow: ellipsis;
    overflow: hidden;
}

.message li p {
    margin: 0;
}

.user {
    background-color: #0072CE;
    color: white;
    align-self: flex-end;
}

.bot {
    background-color: #f1f1f1;
    color: black;
    align-self: flex-start;
}

#sendButton > img {
    width: 20px;
    height: auto;
}

/* Scrollbar */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

@media (max-width: 900px) {
    .chatbot-button {
        bottom: 20px;
        right: 20px;
    }
}