/* Chatbox Container */
#chatbox-container {
    width: 350px;
    height: 500px;
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 80px;
    right: 20px;
    background-color: #33353a;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    overflow: hidden;
    z-index: 1000;
    display: none;
}

#chatbox-container.open-window{
    display: flex;
    transform: translateX(0);
    transition: transform 0.5s ease;
}

/* Header */
#chatbox-header {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #33353a;
    gap: 10px;
}

#chatbox-header .avatar-info {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}
#avatar-wrapper {
    position: relative;
}

#avatar {
    height: 40px;
    width: 40px;
    border-radius: 50%;
}

.avatar-info-container {
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center;
}

.avatar-description {
    margin: 0;
    font-size: 10px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 22px;
    background-color: #fff;
    opacity: 0.7;
}

#chatbox-header span {
    font-size: 14px;
    font-weight: normal;
}

/* Message Area */
#chatbox-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #ffffff;
}

/* Individual Messages */
.message {
    max-width: 80%;
    padding: 10px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.no-message {
    align-self: flex-end;
    color: #ffffff;
}

.text-white {
    color: #ffffff;
}

/* User Message */
.user-message {
    background-color: #ed2b2c;
    align-self: flex-end;
    color: #ffffff;
    border-radius: 1.125rem 1.125rem 2px 1.125rem;
}

/* Bot Message */
.bot-message {
    background-color: #f2f2f2;
    align-self: flex-start;
    color: #000000;
    border-radius: 1.125rem 1.125rem 1.125rem 2px;
}

/* Input Area */
#chatbox-input {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: white;
    border-top: 1px solid #ddd;
}

/* Textarea */
#chat-input {
    flex: 1;
    resize: none;
    padding: 10px;
    border: none;
    font-size: 14px;
    outline: none;
    height: 40px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Send Button */
#send-button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    width: 40px;
    height: 40px;
    background-color: #ed2b2c;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#send-button img {
    width: 20px;
}

#send-button:hover {
    background-color: #d23b3c;
}

/* Scrollbar Customization (Optional) */
#chatbox-messages::-webkit-scrollbar {
    width: 5px;
}

#chatbox-messages::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 10px;
}

#chatbox-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.bot-message ul {
    padding: 0;
    margin: 10px 0 0;
    list-style-type: none;
}

.bot-message ul li {
    margin: 5px 0;
}

.bot-message ul li a {
    color: #0277bd;
    text-decoration: none;
    font-size: 14px;
}

.bot-message ul li a:hover {
    text-decoration: underline;
}

.floating-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: #ED2C2C;
    color: #fff;
    font-size: 24px;
    padding: 12px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.floating-button:hover {
    transform: scale(1.1);
}

.floating-button:active {
     transform: scale(0.95);
}

#toggle-open-image {
    display: none;
}

#typing-indicator {
    background-color: #ffffff;
}

#typing-indicator .typing-text {
    font-size: 14px;
    padding-left: 15px;
}