﻿@import url("https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css");
:root {
    --preset-top: 96px;
    --preset-left: 96px;
    --main-color: blue;
}

#novi-chat-bot-icon {
    position: fixed;
    border-radius: 50%;
    height: 64px;
    width: 64px;
    background-color: var(--main-color);
    color: white;
    top: calc(100vh - var(--preset-top));
    left: calc(100vw - var(--preset-left));
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2147483647;
}

    #novi-chat-bot-icon svg {
        padding: 16px;
    }

#novi-chat-bot-welcome-prompt {
    position: fixed;
    bottom: calc(var(--preset-top) - 18px);
    right: calc(var(--preset-left) - 32px); /*32px;*/
    background-color: white;
    padding: 8px;
    width: 250px;
    font-size: 22px;
    font-family: sans-serif;
}

    #novi-chat-bot-welcome-prompt::after {
        position: fixed;
        bottom: 98px;
        right: 64px;
        content: "";
        border-top: 16px solid white;
        border-left: 16px solid transparent;
    }

#novi-chat-bot-welcome-prompt-dismiss-button {
    position: absolute;
    height: 24px;
    width: 24px;
    top: -12px;
    right: -12px;
    background-color: lightgray;
    border-radius: 50%;
    cursor: pointer;
    color: darkgray;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    #novi-chat-bot-welcome-prompt-dismiss-button:hover {
        color: black;
        border: solid 1px black;
        background-color: darkgray;
    }

#novi-chat-bot-dialog {
    display: none;
    background-color: white;
    height: 65%; /* 700px; */
    width: 25%; /* 450px; */
    position: fixed;
    bottom: calc(var(--preset-top) - 64px);
    right: calc(var(--preset-left) - 64px);
    flex-direction: column;
    border-radius: 8px;
}

@media (max-width: 800px) {
    #novi-chat-bot-dialog {
        width: 90%;
    }
}


#novi-chat-bot-dialog-header {
    background-color: var(--main-color);
    color: white;
    padding: 10px;
    font-size: 22px;
    font-family: math;
    border-radius: 8px 8px 0 0;
}

    #novi-chat-bot-dialog-header > div {
        display: inline-block;
        font-family: sans-serif;
    }

.novi-chat-bot-dialog-header-button {
    float: right;
    cursor: pointer;
    text-align: center;
    width: 26px;
}

    .novi-chat-bot-dialog-header-button > svg {
        height: 13px;
        width: 13px;
    }

    .novi-chat-bot-dialog-header-button:hover {
        outline: solid 1px white;
    }

#novi-chat-bot-dialog-disclaimer {
    font-family: sans-serif;
    padding: 0px;
    overflow: hidden;
    overflow-y: scroll;
    height: 0px;
}

#novi-chat-bot-dismiss-disclaimer-button {
    margin: 12px 2px 2px 2px;
    background-color: white;
    border: solid 1px var(--main-color);
    color: var(--main-color);
    padding: 9px;
    border-radius: 4px;
    cursor: pointer;
    float: right;
}

    #novi-chat-bot-dismiss-disclaimer-button:hover {
        background-color: var(--main-color);
        border: solid 1px white;
        color: white;
    }

#novi-chat-bot-dialog-body {
    flex: 1;
    background-color: #dde6e8;
    overflow-y: auto;
}

    #novi-chat-bot-dialog-body::-webkit-scrollbar {
        width: .75em;
    }

    #novi-chat-bot-dialog-body::-webkit-scrollbar-track {
        -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    }

    #novi-chat-bot-dialog-body::-webkit-scrollbar-thumb {
        background-color: darkgrey;
        outline: 1px solid slategrey;
    }
/* Use the ID to center or hide the animation */
#novi-chat-bot-dialog-waiting {
    display: flex; /* Changed to Flex for centering */
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 10px;
    background: #dde6e8;
    /* To hide by default, change 'flex' to 'none' */
    display: flex;
}

/* These remain classes because they are reused for all three dots */
.loading-dots {
    display: flex;
    gap: 8px;
}

    .loading-dots div {
        width: 8px;
        height: 8px;
        background-color: var(--main-color); /* Change your color here */
        border-radius: 50%;
        animation: bounce 1.4s infinite ease-in-out both;
    }

    .loading-dots .dot1 {
        animation-delay: -0.32s;
    }

    .loading-dots .dot2 {
        animation-delay: -0.16s;
    }

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1.0);
    }
}

#novi-chat-bot-dialog-waiting1 {
    background-color: #dde6e8;
    text-align: center;
    display: none;
}

    #novi-chat-bot-dialog-waiting1 > img {
        height: 32px;
        width: 32px;
        margin: 2px 4px;
    }

#novi-chat-bot-dialog-footer {
    height: 72px;
    display: flex;
    background-color: #dde6e8;
    display: inline-flex;
    height: 100%;
    height: 72px;
    justify-content: center;
    border-radius: 0px 0px 8px 8px;
}

    #novi-chat-bot-dialog-footer > div {
        display: inline-flex;
        height: 40px;
        width: 40px;
        padding: 4px;
        cursor: pointer;
        margin: auto 12px auto 0;
        color: white;
        background: var(--main-color);
        border-radius: 50%;
    }

    #novi-chat-bot-dialog-footer svg {
        padding: 8px;
    }

#novi-chat-bot-text-input {
    padding: 0;
    box-sizing: border-box;
    flex: 1;
    border: solid 1px lightgrey;
    margin: 12px;
    height: 48px;
    background-color: white;
    border-radius: 48px;
    outline: none;
    padding-left: 8px;
}

    #novi-chat-bot-text-input:focus, #novi-chat-bot-text-input:hover {
        border: solid 1px black;
    }

.novi-chat-bot-message-bot {
    margin: 8px;
    visibility: hidden;
}

    .novi-chat-bot-message-bot > div:first-child {
        display: flex;
        padding: 8px;
        background-color: white;
        border-radius: 6px;
    }

.novi-chat-bot-message-bot-pic {
    height: 32px;
    width: 32px;
    border-radius: 50%;
    margin: auto 8px 8px 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: darkgrey;
}

    .novi-chat-bot-message-bot-pic svg {
        height: 24px;
        width: 24px;
        color: white;
    }

.novi-chat-bot-message-bot-text {
    flex: 1;
    font-family: sans-serif;
    font-size: 14px;
}

.novi-chat-bot-message-bot-button {
    margin: 2px;
    background-color: white;
    border: solid 1px var(--main-color);
    color: var(--main-color);
    padding: 9px;
    border-radius: 4px;
    cursor: pointer;
    text-align: left;
    outline: none;
}

    .novi-chat-bot-message-bot-button:hover {
        margin: 2px;
        background-color: var(--main-color);
        border: solid 1px white;
        color: white;
        padding: 9px;
        border-radius: 4px;
        cursor: pointer;
    }

.novi-chat-bot-message-bot-button-wrapper {
    margin: 8px;
}

.novi-chat-bot-message-user {
    display: flex;
    flex-direction: row-reverse;
}

.novi-chat-bot-message-user-text {
    padding: 12px;
    margin: 8px 16px 8px 8px;
    color: white;
    border-radius: 8px;
    background-color: var(--main-color);
    position: relative;
    font-family: sans-serif;
}

    .novi-chat-bot-message-user-text:after {
        content: "";
        border-left: solid 16px var(--main-color);
        position: absolute;
        border-top: solid 16px transparent;
        left: calc(100% - 6px);
        top: calc(100% - 16px);
    }
