/* Variable Declarations */
:root {
    --green: #86BB71;
    --blue: #94C2ED;
    --orange: #E38968;
    --gray: #92959E;
}

/* Universal Box Sizing */
*, *:before, *:after {
    box-sizing: border-box;
}

.chat .chat-header {
    border-bottom: 2px solid white;
}

.chat .chat-header img {
    float: left;
}

.chat .chat-header .chat-about {
    float: left;
    padding-left: 1px;
    margin-top: 6px;
}

.chat .chat-header .chat-with {
    font-weight: bold;
    font-size: 16px;
}

.chat .chat-history .message {
    color: #000000;
    font-size: 16px;
    border-radius: 16px;
    margin-bottom: 20px;
    position: relative;
}

.chat .chat-history .input-message {
    background-color: #DCF8C6;
    margin-top: 10px;
    color: #000000;
}

.chat .chat-history .input-message:after {
    border-bottom-color: #DCF8C6;
    left: 93%;
}

.chat .chat-history .response-message {
    background-color: #f2f5f8;
}

.message.response-message {
    display: flex;
    flex-direction: column;
    background-color: white;
    padding: 5px;
    border-radius: 10px;
    margin-bottom: 5px;
    margin-right: 5px;
    width: fit-content; /* Set width to fit the content */
}

.message .response-message .message-content {
    flex: 1;
}

.message.response-message .message-time {
    font-size: 10px;
    align-self: flex-end;
}

.chat .chat-message textarea {
    width: 100%;
    border: none;
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
    resize: none;
    font-size: 18px;
}

.message-time {
    display: block;
    font-size: 10px;
    float: right;
    margin-left: 10px;
    margin-bottom: 5px;
}

/* Hide border even on hover */
.chat .chat-message textarea:hover {
    border-color: transparent;
}

.chat .chat-message button {
    float: right;
    color: var(--blue);
    font-size: 16px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    font-weight: bold;
    background: #F2F5F8;
}

/* Alignment Styling */
.align-left {
    text-align: left;
}

.align-right {
    text-align: right;
}

.float-right {
    float: right;
}

.chat .chat-history li {
    list-style-type: none;
    margin-left: -30px;
}

/*height*/
.chat-message {
    position: absolute;
    bottom: 10px;
    width: 100%;
    margin-bottom: 1px;
}

.chat-width-right {
    max-width: 95%;
    float: right;
}
.chat-bubble {
    position: fixed;
    z-index: 9999; /* Ensure the chat bubble appears on top of other content */
    bottom: 20px; /* Adjust as needed */
    right: 20px; /* Adjust as needed */
    background-color: #007bff;
    color: #fff;
    border-radius: 20px;
    padding: 10px 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.chat-bubble:hover {
    transform: scale(1.1);
}
