#chat-bot-container {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.chat-icon {
    width: 75px !important; /* FORCED BIGGER ICON */
    height: 75px !important; /* FORCED BIGGER ICON */
    cursor: pointer;
    background-color: transparent;
    border: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-icon::before {
    content: '';
    position: absolute;
    top: -8px !important; /* Adjusted for new size */
    left: -8px !important; /* Adjusted for new size */
    width: 91px !important; /* FORCED BIGGER YELLOW BACKGROUND */
    height: 91px !important; /* FORCED BIGGER YELLOW BACKGROUND */
    border-radius: 50%;
    background-color: yellow;
    z-index: -1;
}

.chat-icon img {
    max-width: 75px !important; /* FORCED BIGGER IMAGE */
    max-height: 75px !important; /* FORCED BIGGER IMAGE */
    display: block;
}

.pre-message {
    color:#075e54;
    font-weight: bold;
}

.chat-bot-container .pre-message {
    color: #075e54 !important;
    font-size: 14px;
    text-align: left;
    padding: 4px 8px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    width: fit-content;
    white-space: nowrap;
    pointer-events: none;
    margin-bottom: 5px;
    margin-left: 0;
}

.chat-box {
    display: none;
    position: absolute;
    bottom: 90px; /* ADJUSTED: To move chat box up above the new 75px icon (60px icon was 70px bottom) */
    left: 0;
    background: white;
    border: 1px solid #ccc;
    width: 350px;
    max-width: calc(100vw - 40px);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    width: 600px;
    height: 500px;
}

.chat-box.open {
    display: block;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.chat-header span {
    flex: 1;
    font-weight: bold;
    font-size: 20px;
}

.chat-close {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    color: #888;
    transition: color 0.3s;
    line-height: 1;
    padding: 4px 10px;
    border-radius: 4px;
}

.chat-close:hover {
    color: #333;
}

.chat-messages {
    height: 350px;
    overflow-y: auto;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 5px;
}

.chat-message-wrapper {
    display: flex;
    margin-bottom: 5px;
}
.chat-message-content {
    display: flex;
    align-items: flex-start;
}

.chat-message-wrapper .avatar {
    width: 50px !important; /* AVATAR SIZE (50px) */
    height: 50px !important; /* AVATAR SIZE (50px) */
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
    align-self: flex-start;
}
.user-message-wrapper {
    justify-content: flex-end;
}
.user-message-wrapper .avatar {
    margin-left: 8px;
    margin-right: 0;
}
.user-message, .bot-message {
    padding: 10px;
    border-radius: 8px;
    word-break: break-word;
    margin-top: 0;
    margin-bottom: 0;
    flex: 1;
}


.user-message {
    background-color: #e0f7fa;
    text-align: right;
    margin-left: 5px;
}

.bot-message {
    background-color: #f5f5f5;
    text-align: left;
    margin-right: 5px;
}
.chat-input {
    display: flex;
    height: 50px;
}

.chat-input input {
    flex: 1;
    padding: 0px;
    border: 1px solid #ccc;
    border-radius: 8px 0 0 8px;
}

.chat-input button {
    padding: 10px 12px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-size: 16px;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    #chat-bot-container {
        left: 10px;
        bottom: 10px;
    }
    .chat-icon {
        width: 65px !important; /* Adjusted mobile icon size */
        height: 65px !important; /* Adjusted mobile icon size */
    }

    .chat-icon::before {
        width: 79px !important; /* Adjusted mobile background size */
        height: 79px !important; /* Adjusted mobile background size */
        top: -7px !important;
        left: -7px !important;
    }

    .chat-icon img {
        max-width: 65px !important; /* Adjusted mobile image size */
        max-height: 65px !important; /* Adjusted mobile image size */
        display: block;
    }

    .chat-box {
        width: calc(100vw - 20px);
        bottom: 80px; /* ADJUSTED: To move chat box up above the new mobile icon */
        left: 10px;
        padding: 10px;
        border-radius: 6px;
    }

    .chat-header span {
        font-size: 18px;
    }
    .chat-close{
        font-size: 18px;
        padding: 2px 6px;
    }
    .chat-messages{
        height: 370px;
    }
    .chat-input input {
        padding: 8px;
    }
    .chat-input button {
       padding: 8px 10px;
        font-size: 14px;
    }
}
.copy-button {
    background: none;
    border: none;
    cursor: pointer;
    color: #777;
    font-size: 0.8em;
    padding: 0;
    margin-left: 5px;
    vertical-align: middle;
}

.copy-button:hover {
    color: #333;
}

.bot-message {
    display: inline-block; /* Use inline-block instead */
}