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

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.border-none-important {
    border: none !important;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) 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;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.reload, #components-reconnect-modal button, #components-reconnect-modal a {
    color: green;
    font-weight: bold;
}

    .reload:hover, #components-reconnect-modal button:hover, #components-reconnect-modal a:hover {
        opacity: 0.8;
    }

.btm-nav {
    z-index: 50;
}

.app {
    padding-bottom: 4rem;
}

.animate-appearFromRight {
    animation: appearFromRight .3s ease-in-out;
}

@keyframes appearFromRight {
    0% {
        opacity: .3;
        transform: translate(15%)
    }

    to {
        opacity: 1;
        transform: translate(0)
    }
}

markdown-message ul, assistant-message ul {
    list-style-type: disc;
    margin-left: 1.5rem;
}

markdown-message h1, markdown-message h2, markdown-message h3, markdown-message h4, markdown-message h5, markdown-message h6 {
    font-size: revert;
    font-weight: revert;
}
/* Assistant */
/* Chat Assistant */
.chat-assistant .chat-container {
    position: sticky;
    bottom: 3rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 0.75rem;
    padding-bottom: 1.5rem;
    border-top-width: 1px;
    background-color: #F3F4F6;
    border-color: #E5E7EB;
}

.chat-assistant .citation {
    display: inline-flex;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    margin-top: 1rem;
    margin-right: 1rem;
    border-bottom: 2px solid #a770de;
    gap: 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    background-color: #ffffff;
}

    .chat-assistant .citation[href]:hover {
        outline: 1px solid #865cb1;
    }

    .chat-assistant .citation svg {
        width: 1.5rem;
        height: 1.5rem;
    }

    .chat-assistant .citation:active {
        background-color: rgba(0,0,0,0.05);
    }

.chat-assistant .citation-content {
    display: flex;
    flex-direction: column;
}

.chat-assistant .citation-file {
    font-weight: 600;
}

.chat-assistant .main-background-gradient {
    background: linear-gradient(to bottom, rgb(225 227 233), #f4f4f4 25rem);
}

.chat-assistant .chat-header-container {
    top: 3rem;
    padding: 1.5rem;
}

.chat-assistant .chat-header-controls {
    margin-bottom: 1.5rem;
}

.chat-assistant h1 {
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-assistant .new-chat-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: rgb(55, 65, 81);
}

@media (min-width: 768px) {
    .chat-assistant .chat-header-container {
        position: sticky;
    }
}

.chat-assistant .input-box {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid rgb(229, 231, 235);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    margin-top: 0.75rem;
}

    .chat-assistant .input-box:focus-within {
        outline: 2px solid var(--color-primary);
    }

.chat-assistant textarea {
    resize: none;
    border: none;
    outline: none;
    flex-grow: 1;
}

    .chat-assistant textarea:placeholder-shown + .tools {
        --send-button-color: #aaa;
    }

.chat-assistant .tools {
    display: flex;
    margin-top: 1rem;
    align-items: center;
}

.chat-assistant .tool-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.chat-assistant .send-button {
    color: var(--send-button-color);
    margin-left: auto;
}

    .chat-assistant .send-button:hover {
        color: black;
    }

.chat-assistant .attach {
    background-color: white;
    border-style: dashed;
    color: #888;
    border-color: #888;
    padding: 3px 8px;
}

    .chat-assistant .attach:hover {
        background-color: #f0f0f0;
        color: black;
    }

.chat-assistant .user-message {
    background: rgb(182 215 232);
    align-self: flex-end;
    min-width: 25%;
    max-width: calc(100% - 5rem);
    padding: 0.5rem 1.25rem;
    border-radius: 0.25rem;
    color: #1F2937;
    white-space: pre-wrap;
}

.chat-assistant .assistant-message, .chat-assistant .assistant-search {
    display: grid;
    grid-template-rows: min-content;
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.25rem;
}

.chat-assistant .assistant-message-header {
    font-weight: 600;
}

.chat-assistant .assistant-message-text {
    grid-column-start: 2;
}

.chat-assistant .assistant-message-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 9999px;
    width: 1.5rem;
    height: 1.5rem;
    color: #ffffff;
    background: #9b72ce;
}

    .chat-assistant .assistant-message-icon svg {
        width: 1rem;
        height: 1rem;
    }

.chat-assistant .assistant-search {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.chat-assistant .assistant-search-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 1.5rem;
    height: 1.5rem;
}

    .chat-assistant .assistant-search-icon svg {
        width: 1rem;
        height: 1rem;
    }

.chat-assistant .assistant-search-content {
    align-content: center;
}

.chat-assistant .assistant-search-phrase {
    font-weight: 600;
}

/* Default styling for markdown-formatted assistant messages */
.chat-assistant .assistant-message-text ul {
    list-style-type: disc;
    margin-left: 1.5rem;
}

.chat-assistant .assistant-message-text ol {
    list-style-type: decimal;
    margin-left: 1.5rem;
}

.chat-assistant .assistant-message-text li {
    margin: 0.5rem 0;
}

.chat-assistant .assistant-message-text strong {
    font-weight: 600;
}

.chat-assistant .assistant-message-text h3 {
    margin: 1rem 0;
    font-weight: 600;
}

.chat-assistant .assistant-message-text p + p {
    margin-top: 1rem;
}

.chat-assistant .assistant-message-text table {
    margin: 1rem 0;
}

.chat-assistant .assistant-message-text th {
    text-align: left;
    border-bottom: 1px solid silver;
}

.chat-assistant .assistant-message-text th, .chat-assistant .assistant-message-text td {
    padding: 0.1rem 0.5rem;
}

.chat-assistant .assistant-message-text th, .chat-assistant .assistant-message-text tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.05);
}

.chat-assistant .assistant-message-text pre > code {
    background-color: white;
    display: block;
    padding: 0.5rem 1rem;
    margin: 1rem 0;
    overflow-x: auto;
}

.chat-assistant .message-list-container {
    margin: 2rem 1.5rem;
    flex-grow: 1;
}

.chat-assistant .message-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.chat-assistant .no-messages {
    text-align: center;
    font-size: 1.25rem;
    color: #999;
    margin-top: calc(40vh - 18rem);
}

chat-messages > div:last-of-type {
    /* Adds some vertical buffer to so that suggestions don't overlap the output when they appear */
    margin-bottom: 2rem;
}

.chat-assistant .suggestions {
    text-align: right;
    white-space: nowrap;
    gap: 0.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
    display: flex;
    margin-bottom: 0.75rem;
}
/* END : Chat Assistant */

/* Token Usage */
.token-usage-container {
    transition: all 0.2s ease-in-out;
}

    .token-usage-container:hover {
        transform: scale(1.02);
    }

.token-usage-glow {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.token-usage-warning-glow {
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.token-usage-error-glow {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}
/* END: Token Usage */

/* lds-ellipsis - Used under CC0 license */

.lds-ellipsis {
    color: #666;
    animation: fade-in 1s;
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.lds-ellipsis,
.lds-ellipsis div {
    box-sizing: border-box;
}

.lds-ellipsis {
    margin: auto;
    display: block;
    position: relative;
    width: 80px;
    height: 80px;
}

    .lds-ellipsis div {
        position: absolute;
        top: 33.33333px;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: currentColor;
        animation-timing-function: cubic-bezier(0, 1, 1, 0);
    }

        .lds-ellipsis div:nth-child(1) {
            left: 8px;
            animation: lds-ellipsis1 0.6s infinite;
        }

        .lds-ellipsis div:nth-child(2) {
            left: 8px;
            animation: lds-ellipsis2 0.6s infinite;
        }

        .lds-ellipsis div:nth-child(3) {
            left: 32px;
            animation: lds-ellipsis2 0.6s infinite;
        }

        .lds-ellipsis div:nth-child(4) {
            left: 56px;
            animation: lds-ellipsis3 0.6s infinite;
        }

@keyframes lds-ellipsis1 {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes lds-ellipsis3 {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(0);
    }
}

@keyframes lds-ellipsis2 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(24px, 0);
    }
}

/* END: Used under CC0 license */
/* END: Assistant */