html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    background-color: #f7f7f7 !important;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.assistant-button {
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 3px;
    padding-bottom: 3px;
    background-color: #78787800;
    border-radius: 20px;
    color: #858585 !important;
    outline: 1px solid #35434E;
    box-shadow: 0px 2px 6px 0px #f3f3f3;
    outline: 1px solid #e6e6e6;
    transition: all 0.1s ease-in;
    cursor: pointer;
}

.assistant-button:hover {
    background-color: #f1f1f1 !important;
}

.assistant-button.selected {
    background-color: #f1f1f1 !important;
}

.context-selection-buttons.buttons-hidden .assistant-button:not(.selected){
    opacity:0.5 !important;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMz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I2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.chat-delete-button {
    height: 30px;
    width: 30px;
    box-shadow: 0px 2px 6px 0px #d7d7d7;
    border-radius: 25px;
    background-color: #78787800;
    cursor: pointer;
    transition: all 0.1s ease-in;
    outline: 1px solid #e1e1e1;
    color: #bfbfbf !important;
    transition: all 0.1s ease-in;
}

.chat-delete-button:hover {
    background-color: #eeeeee !important;
    color: #b4b4b4 !important;
}

.input-container {
    outline: 1px solid #e8e8e8;
    width: 70%;
    border-radius: 25px;
    box-shadow: 0px 0px 5px #ececec;
    background-color: white;
    height: 50px;
}

.chat-container {
    width: 70%;
    outline: 1px solid #e8e8e8;
    max-width: 70%;
    border-radius: 18px;
    box-shadow: 0px 0px 5px #ececec;
    background-color: white;
    overflow-x: hidden;
}


.input-submit-button {
    box-shadow: 0px 2px 6px 0px #e7e7e7;
    height: 100%;
    aspect-ratio: 1/1;
    border-radius: 25px;
    background-color: #35434E;
    cursor: pointer;
    transition: all 0.1s ease-in;
    color: white;
}

.input-submit-button.disabled {
    color: #828282 !important;
    background-color: #e7e7e7 !important;
}

.switch-container {
    border-radius: 15px;
    top: 10px;
    left: 10px;
    padding: 10px;
    background-color: #f3f3f3;
    box-shadow: 0px 2px 6px 0px #c9c9c9;
}

input-submit-button:hover {
    background-color: transparent !important;
    outline: 1px solid #5b6469 !important;
}

input-submit-button:hover i {
    color:#5b6469  !important;
}

.input-box {
    width: 90%;
    border: 0px;
    font-size: 14px;
    color: #515151;
}

.input-box:focus-visible {
    border: 0px !important;
    outline:0px !important;
}

.message-icon-container {
    height: 27px;
    width: 27px;
    min-height: 27px;
    min-width: 27px;
    outline: 1px solid #e3e3e3;
    border-radius: 15px;
    box-shadow: 0px 2px 6px 0px #eaeaea;
    color: #c1c1c1;
    font-size: 12px;
}

.edustat-icon-container {
    height: 25px;
    width: 25px;
    min-height: 25px;
    min-width: 25px;
    filter: drop-shadow(1px 3px 2px #e8e8e8);
}

.message-bubble {
    font-size: 12px;
    box-shadow: 0px 2px 6px 0px #f7f7f7;
    background-color: #3d667d;
    word-break: break-all;
    white-space: normal;
}

.bubbles-container{
    transition: 0.1s padding ease-in;
}

.message-bubble.user-bubble {
    background-color: #ededed !important;
    border-top-right-radius: 5px;
    color: #060606 !important;
    border-bottom-right-radius: 20px;
    border-bottom-left-radius: 20px;
    border-top-left-radius: 20px;
}

.message-bubble.assistant-bubble {
    box-shadow: none !important;
    color: #060606 !important;
    background-color: #ffffff !important;
}

.reaction-container{
    left:10px;
    bottom: -25px;
}

.message-bubble.invalid-message {
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    border-bottom-left-radius: 20px;
    border-top-left-radius: 5px;
    background-color: #ed6363 !important;
}

.message-loading-bubble {
    bottom: 40px;
    left: 50px;
    background-color: #5b6469;
    box-shadow: 0px 2px 6px 0px lightgray;
    border-radius: 20px;
    height: 35px;
    width: 60px;
    min-height: 35px;
    min-width: 60px;
}

.input-submit-button.disabled{
    opacity: 0.5 !important;
    cursor : not-allowed !important;
    pointer-events : none !important;
}


.reaction-icon {
    font-size:15px;
    transition: all 0.1s ease-in;
    cursor:pointer;
}

.reaction-icon:hover {
    transform: scale(1.05);
}

.end-conversation-text {
    color: #414141;
    font-size: 12px;
    text-align: center;
    width: 20%;
}

.separation-line {
    width: 40%;
    height: 2px;
    background-color: lightgray
}

.reaction-container.disabled{
    pointer-events:none !important;
    opacity:0.3;
}

.loader {
    border-radius: 5px;
    width: 100%;
    height: 5px;
    position: relative;
    bottom: 20px;
}

.loaderBar {
    width: 40%;
    height: 5px;
    position: absolute;
    border-radius: 5px;
    background-color: #4096e42e;
    animation: borealisBar 1s linear infinite;
}

.bubble-user.animate {
    transform: scale(0);
    transform-origin: right center;
    animation: scaleIn 0.25s ease-in-out forwards;
}

.bubble-assistant.animate {
    transform: scale(0);
    transform-origin: left center;
    animation: scaleIn 0.25s ease-in-out forwards;
}

.shining-link {
    font-size:12px;
    position: relative;
    display: inline-block;
    overflow: hidden;
    margin-left:10px;
}

.shining-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 70%;
    height: 100%;
    background: linear-gradient( 120deg, transparent, rgba(255, 255, 255, 0.4), transparent );
    animation: shine 2s infinite;
}
.typing-cursor {
    animation: blink 1s infinite;
    color: white;
    font-weight: bold;
}

.indicator-reference {
    height:30px;
    border-radius: 20px;
    font-size: 12px;
    background-color: #f3f3f3;
    color: gray !important;
    text-decoration: none !important;
    max-width: 180px;
}
.indicator-reference::after {
    content: "";
    position: absolute;
    bottom: 100%; 
    left: 0;
    width: 100%;
    height: 20px; 
}

.remaining-indicators-tag {
    height: 20px;
    width: 20px;
    min-height: 20px;
    min-width: 20px;
    font-size: 10px;
    border-radius: 20px;
    position:relative;
    background-color: #e6e4e4;
}

.indicator-reference:hover {
    background-color: #ededed !important;
}

.indicator-reference:hover .indicator-list-container,
.indicator-list-container:hover {
    pointer-events: auto;
    opacity: 1;
}


.indicator-list-container {
    padding:10px;
    left:10px;
    outline: 1px solid #e4e4e4;
    box-shadow: 0px 2px 6px 0px #e4e4e4;
    position: absolute;
    bottom: 40px;
    background-color: #ffffff;
    border-radius: 10px;
    width: 250px;
    opacity:0;
    display:flex;
    flex-direction: column;
    gap:8px;
    pointer-events:none;
    height: 120px;
    transition:0.1s opacity ease-in;
}

.indicator-list-container-header {
    height: 25px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid #ededed;
}

.indicator-list-container-body {
    height: 55px;
}

.indicators-arrows-container .indicators-arrow {
    border-radius: 5px;
    padding: 4px;
    transition: 0.1s all ease-in;
}

.indicators-arrows-container .indicators-arrow:hover {
    background-color: #f2f2f2;
}

.loading-item {
    width: 30px;
    height: 30px;
    box-shadow: 0px 2px 6px 0px #d7d7d7;
    border-radius: 25px;
    background-color: white;
    outline: 1px solid #e1e1e1;
    color: #bfbfbf;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.loading-item.finish{
    background-color: #f0f0f0 !important;
}

.loading-item.active {
    color: #041d33 !important
}

.loading-item.active::after {
    opacity: 1;
}

.loading-item::after {
    filter: drop-shadow(2px 4px 6px #ABABAB);
    opacity: 0;
    content: "";
    position: absolute;
    top: -2.5px;
    left: -2.5px;
    width: 35px;
    height: 35px;
    border-radius: 20px;
    border: 2px solid transparent;
    border-top-color: #041d33;
    animation: spin 1s linear infinite;
    transition: opacity 0.2s ease-in;
}



.loading-items-container{
    gap:10vw;
    bottom:3px;
}

.loading-bar {
    height: 3px;
    width: 100%;
    background-color: #f1f1f1;
    top: 50%;
    display:flex;
    justify-content:center;
    flex-direction:row;
}


.loading-bar > *{
    width:50%;
    height:100%;
}

.loading-bar-item.active {
    background: linear-gradient(90deg, rgba(0, 120, 215, 0) 0%, rgb(187 187 187 / 80%) 50%, rgba(0, 120, 215, 0) 100%);
    background-size: 200% 100%;
    animation: glow-move 1.5s linear infinite;
    border-radius: 2px;
}

.message-log-button {
    border-radius: 7px;
    width: 25px;
    height: 25px;
    color: #ababab;
    display: flex;
    justify-content: center;
    align-items: center;
    transition:0.2s background-color ease-in;
    cursor:pointer;
}

.message-log-button.active {
    color: #0a007c !important
}

.message-log-button:hover {
    background-color: #f1f1f1;
}

@keyframes glow-move {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}


@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }

    100% {
        left: 150%;
    }
}


/* Define the keyframes */
@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.loading-text {
    z-index: 1000;
    color: #454545;
    padding-bottom: 3px;
    padding-top: 3px;
    padding-right: 20px;
    padding-left: 20px;
    border-radius: 5px;
    box-shadow: 0px 2px 6px 0px #e8e8e8;
    width: fit-content !important;
    background-color: white;
}


@keyframes borealisBar {
    0% {
        left: 0%;
        right: 100%;
        width: 0%;
    }

    10% {
        left: 0%;
        right: 75%;
        width: 40%;
    }

    90% {
        right: 0%;
        left: 75%;
        width: 40%;
    }

    100% {
        left: 100%;
        right: 0%;
        width: 0%;
    }
}