#chatgpt-float-button {
    display: block;
    position: fixed;
    bottom: -8px;
    right: -4px;
	width: 150px;
    height: 150px;
    cursor: pointer;
    z-index: 9999;
}

#chatgpt-float-button rect {
    fill: #0575E6 !important;
}

#chatgpt-float-button:hover {
    transform: scale(1.1);
}


#chatgpt-chatbox {
    position: fixed;
    bottom: 10px;
    right: 20px;
    width: 400px;
    max-height: 545px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: 'Open Sans';
    z-index: 10000;
    transition: transform 0.3sease-in-out, opacity 0.3sease-in-out;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
}

#chatgpt-chatbox.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

#chat-header {
    background-image: url("https://staging.budgetfitplan.nl/wp-content/uploads/2025/02/fitbot-group-1.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    padding-right: calc(1.5em + 0.75rem);
    padding: 20px 19px 20px 25px;
}

#chat-heading{
    font-family: 'Open Sans';
    font-size: 30px;
    font-weight: 700;
	line-height: 25px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    color: #FFFFFF;
}

#chat-text{
    font-family: 'Open Sans';
    font-size: 14px;
    font-weight: 400;
    line-height: 19.07px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    color: #FFFFFF;
}

#chat-close {
    float: right;
    border: none;
    border-radius: 50%;
    background: transparent;
}

#chat-close:hover {
    transform: scale(1.1);
}

#chat-output {
    height: 340px;
    overflow-y: auto;
    padding: 15px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

#chat-input-area {
    display: flex;
    align-items: center;
    padding: 12px;
    border-top: 1px solid #ddd;
    background: #fff;
    position: relative;
    gap: 8px;
}

#emoji-btn, #file-btn, #image-btn, #send-chat {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

#emoji-btn:focus, #file-btn:focus, #image-btn:focus, #send-chat:focus {
    border:  none !important;
    outline-width: none !important;
    outline-style:  none !important;
}

#chat-input {
    flex-grow: 1;
    padding: 19px 40px 10px 15px;
    resize: none;
    outline: none;
    font-size: 14px;
    transition: border 0.3s ease;
    border: none;
}

.chat-message {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 10px;
}

.bot-heading {
    font-weight: 600;
    font-size: 16px;
    color: #0D082C;
    margin-left: 55px;
    line-height: 20px;
    font-family: 'Open Sans';    
}

.bot-container {
    display: flex;
    /* align-items: center; */
    gap: 10px;
}

.bot-icon svg {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}

.message-text {
    padding: 12px 14px;
    max-width: 330px;
    font-family: 'Open Sans';
    font-weight: 400;
    font-size: 14px;
    line-height: 19.34px;
    word-wrap: break-word;
    display: inline-block;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.message-text a {
    font-weight: 600;
    text-decoration: underline !important;
}

.message-time {
    font-size: 12px;
    color: gray;
    margin-top: 3px;
}

.user {
    align-self: flex-end;
}

.bot {
    align-self: flex-start;
}

.user .message-text {
    background: #007bff;
    color: white;
    border-radius: 8px 0px 8px 8px;
}

.bot .message-text {
    background: #F1F7FF; 
    color: #0D082C;
    border-radius: 0px 8px 8px 8px;
}

.user .message-time {
    display: flex;
    justify-content: start;
    margin-left: 3px;
}

.bot .message-time {
    display: flex;
    justify-content: end;
    margin-right: 3px;
}

#emoji-btn {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 20px;
    margin-left: 5px;
}

.chat-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
}

.chat-loader .dot {
    width: 8px;
    height: 8px;
    margin: 0 3px;
    background-color: gray;
    border-radius: 50%;
    animation: blink 1.4s infinite;
}

.chat-loader .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.chat-loader .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}


.emoji-tray {
    position: fixed;
    bottom: 96px;
    right: 20px;
    max-width: 427px;
    display: none;
    z-index: 10000; 
    background: #FFFFFF;
    border: 1px solid #ccc;
    overflow: auto;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

.emoji-tray.visible {
    display: block;
}


.preview-image {
    max-width: 50%;
    height: auto;
    border: 1px solid #ccc;
    margin: 10px 0;
}

.chat-image {
    max-width: 50px;
    height: auto;
    margin: 5px;
}

#file-preview{
    position: fixed;
    bottom: 96px;
    right: 20px;
    max-width: 427px;
    display: none;
    z-index: 10000; 
    background: #FFFFFF;
    border: 1px solid #ccc;
    overflow: auto;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

#file-preview .visible {
    display: block;
}

@media screen and (max-width: 475px) {
    #chatgpt-chatbox {
        width: 95%; 
        max-width: 95%;
        height: 90vh;
        bottom: 20px;
        right: 2.5%;
        left: 2.5%;
    }

    #chat-header {
        padding: 10px 9px 10px 13px;
    }

    #send-chat svg {
        height: 30%;
    }

    #chatgpt-float-button rect {
        fill: #2B2E45 !important;
    }
}


