#chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #a2190b;
    font-size: 25px;
    color: white;
    padding: 20px 20px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Chat Container */
#chat-container {
    display: none;
    flex-direction: column;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    max-height: 500px;
    background: white;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
}

/* Chat Header */
#chat-header {
    display: flex;
    align-items: center;
    background: #a2190b;
    color: white;
    padding: 20px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom: 4px solid black;
}

    #chat-header img {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        margin-right: 10px;
    }

    #chat-header button {
        margin-left: auto;
        background: none;
        border: none;
        color: white;
        font-size: 16px;
        cursor: pointer;
    }

/* Chat Box */
#chat-box {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    max-height: 400px;
    min-height: 360px;
    display: flex;
    flex-direction: column;
}

/* Chat Messages */
.message {
    max-width: 90%;
    padding: 10px;
    border-radius: 10px;
    margin: 5px 0;
    font-size: 14px;
    font-family: math;
    display: flex;
    align-items: center;
}

.user-message {
    align-self: flex-end;
    background: #e0e0e0;
    color: black;
    border-top-right-radius: 0;
}

.bot-message {
    align-self: flex-start;
    background: #a2190b;
    color: white;
    border-top-left-radius: 0;
}

.message img {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    margin-right: 10px;
}

/* Input Field */
#chat-input {
    display: flex;
    padding: 10px;
}

#user-input {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Suggestions Box */
#suggestions {
    position: absolute;
    bottom: 60px;
    /* Adjusted to stay above input */
    left: 10px;
    width: 90%;
    background: #a0e340;
    border-radius: 5px;
    display: none;
    z-index: 10000;
    max-height: 150px;
    overflow-y: auto;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    padding: 5px;
}

    /* Suggestion Items */
    #suggestions div {
        padding: 10px;
        cursor: pointer;
        font-size: 14px;
        border-bottom: 1px solid #e0e0e0;
        transition: background 0.3s ease-in-out;
    }

        /* Last item has no border */
        #suggestions div:last-child {
            border-bottom: none;
        }

        /* Hover Effect */
        #suggestions div:hover {
            background: #a2190b;
            margin-left: 3px;
            color: white;
        }

.gototop {
    position: fixed;
    bottom: 100px !important;
    right: 30px !important;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: 0.5s;
    -o-transition: 0.5s;
    transition: 0.5s;
}
