﻿.page {
    position: relative;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row ::deep a, .top-row .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
    }

    .top-row a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

.loading-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.loading-content {
}

.header-actions-area {
    /*left: 0px;
    position: absolute;*/
    float: left;
    margin-left: 0px;
}

.header-title {
    float: left;
    margin-left: 10px;
    color: white;
    font-size: 1.7em;
    font-weight: 400;
}

.header-actions-area > * .btn {
    margin-left: 10px;
    margin-right: 10px;
}

        .header-actions-area > * .btn:focus {
            box-shadow: unset;
        }

.header-spring {
    flex: 1;
}

.d-flex.align-items-center > .custom-btn {
    --bs-btn-border-color: 0,0,0 !important;
    font-weight: bold;
}

.chat-container {
    height: 80%;
    flex: 1;
}

.input-area {
    width: calc(100% - 40px);
    position: relative;
    left: 15px;
    bottom: 0px;
    height: 80px;
}

.input-area-content {
    height: 100%;
}

.input-message {
    width: calc(100% - 120px) !important;
    height: 90%;
    border: 1px solid silver;
    border-radius: 10px;
    padding-left: 10px;
    float: left;
    font-size: 14px !important;
    background: #FFFFFF;
    box-shadow: 0 8px 16px #00000024, 0 0 2px #0000001f;
}

    .input-message:focus-visible {
        outline-style: none;
    }

label {
    font-size: 0.8em;
}

.btn.input-btn {
    position: relative;
    right: 0px;
    height: 71px;
    float: right;
    width: 55px;
    /*border: 1px solid #e8e8e8;*/
/*    background: #fffcea1a;*/
    font-size: 0.8em;
    top: 0px;
    box-shadow: 0 8px 16px #00000024, 0 0 2px #0000001f !important;
    font-size: 14px !important;
}


.input-btn-left {
    position: relative;
    right: 4px;
    height: 50px;
    float: left;
    width: 100px;
    border: 1px solid #e8e8e8;
    background: #fffcea;
    font-size: 0.8em;
    box-shadow: none !important;
}

.input-header {
    position: relative;
    bottom: 30px;
    height: 35px;
    float: right;
    width: 100px;
    border: 1px solid silver;
    background: white;
    border-radius: 10px;
    font-size: 0.8em;
}

.pov-header {
    /*background: #ffffe03b;*/
    padding: 20px;
    /*    border: 1px solid #ffa50045;
    margin-bottom: 20px;
    margin-top: -19px;
    margin-left: -34px;
    margin-right: -26px;*/
}

.pov-error {
    background-color: #ffcccc;
    padding: 20px;
    border: 1px solid red;
    margin-bottom: 20px;
    position: absolute;
    z-index: 100;
}

.input-param {
    margin-left: 10px;
    border: 1px solid silver;
    /* border-radius: 10px;*/
    padding-left: 2px;
    margin-right: 20px;
}

    .input-param:focus-visible {
        outline-style: none;
    }

.message-container {
    width: 100%;
    display: inline-block;
    font-size: 0.85em;
}

.message-content {
    /*border: 1px solid #6f6f6f1f;*/
    border-radius: 35px;
    padding: 15px 15px 10px 15px;
    max-width: 75%;
    margin-bottom: 10px;
}

    .message-content.message-user {
        float: right;
        background: #f5f5f52e;
        box-shadow: 0 2px 4px #00000024, 0 0 2px #0000001f;
        margin: 15px;
        padding: 18px 15px 0px 15px;
    }

    .message-content.message-assistant {
        float: left;
        background: #f5f5f52e;
        box-shadow: 0 2px 4px #00000024, 0 0 2px #0000001f;
        padding: 15px 15px 15px 15px;
        margin: 15px;
        /*cursor: pointer;*/
    }
        .message-content.message-assistant.streaming {
            padding: 0px 15px 15px 15px;
        }

    .message-content.message-custom {
        float: none;
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px 0 15px 0;
        margin: 15px 0;
        font-style: italic;
        text-align: center;
        display: inline-block;
    }

.message-container-actions {
    position: relative;
    top: 31px;
    font-size: 0.9em;
    border: 1px solid silver;
    padding: 2px 6px;
    border-radius: 9px;
    display:none;
    cursor: pointer;
}

    .message-container-actions > .bi {
        margin-right: 4px;
    }

    .message-container-actions.message-assistant {
        right: 3px;
        float: left;
    }

    .message-container-actions.message-user {
        right: 3px;
        float: right;
    }

    .message-container-actions:hover {
        background: silver;
        color: black;
    }

    .message-container:hover > .message-container-actions {
        display: block;
    }

.message-from {
    font-weight: 600;
}

.message-outer-wrapper {
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column-reverse;
    padding-left: 36px;
    padding-right: 36px;
}

.messages-wrapper {
    /* height: calc(100% - 222px); */
    /* overflow-y: scroll; */
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    min-height: calc(100% - 222px);
    z-index: 0;
}

.message-loading-gif {
    max-height: 64px;
    max-width: 64px;
    /*float: left;*/
    display: block;
    /*    margin-left: -15px;
    margin-bottom: -14px;*/
    max-height: 40px;
    margin-top: -7px;
}

.message-footers {
/*    float: left;*/
    margin-top: 10px;
    font-size: 1.0em;
}

.message-duration {
    font-weight: 600;
}

.message-has-citations {
    font-weight: 300;
    text-align: left;
    text-decoration: underline;
    opacity: 0.75;
    cursor: pointer;
}

.message-citations {
    padding-left: 17px;
    padding-top: 2px;
}

    .message-citations > * sup {
        margin-right: 4px;
    }

    .message-citation-item > a {
/*        color: #26267f;*/
    }

.message-citation-link {
    cursor: pointer;
}

    .message-citation-link:hover {
        text-decoration: underline;
    }

.dialog-citations-header {
    font-weight: 600;
    margin-bottom: 20px;
}

.k-dialog-content > * .message-content.message-assistant {
    float: unset;
    max-width: unset;
    max-height: 280px;
    overflow-y: hidden;
    text-overflow: ellipsis;
}

.k-window.k-dialog.telerik-blazor {
    max-width: 800px;
    min-width: 500px;
    font-size: 1.0em;
    max-height: 90%;
}

.app-title {
    font-size: 15px;
    font-weight: 500;
    color: darkblue;
}

.app-version {
    font-size: 9px;
    position: absolute;
    top: 36px;
}

.k-panelbar > .k-panelbar-header > .k-link {
    background: white !important;
    color: gray !important;
    padding-block: 0.5rem !important;
}

.k-panelbar.telerik-blazor {
    margin-left: -33px;
    margin-top: -19px;
    margin-right: -25px;
}

.bg-container {
    position: absolute;
    top: 100px;
    /* background: pink; */
    /* top: 50px; */
    left: 1px;
    width: 100%;
    z-index: 0;
}

.bg-info {
    width: 500PX;
    /* position: absolute; */
    /* left: 1px; */
    margin: auto;
    background-color: transparent !important;
    max-width: fit-content;
}

.bg-img {
}

.bg-powered-by {
    position: absolute;
    display: none;
}

.bg-hi {
    font-size: 32px;
}

.input-disclaimer {
    position: absolute;
    bottom: -25px;
    right: 10px;
    font-size: 0.8em;
    color: gray;
    font-style: italic;
}

.use-mic-area {
    display: none;
    border: 1px solid #c0c0c03b;
    padding: 10px;
    font-size: large;
    border-radius: 10px;
    height: 50px;
    box-shadow: 0 2px 4px #00000024, 0 0 2px #0000001f;
}

.form-check-input:checked {
    background-color: green !important;
    border-color: green !important;
}

.use-mic-switch {
    float: left;
    margin-right: 30px;
}

.use-mic-status {
    float: right;
    display: none;
    padding: 12px 30px 10px 30px;
    margin: -10px;
    height: 48px;
    border-radius: 0px 10px 10px 0px;
    text-align: center;
    font-size: 15px;
    min-width: 150px;
}

    .use-mic-status.ListeningNow {
        display: block;
        background: #43c143;
        color: white;
    }

    .use-mic-status.AwaitingReply {
        display: block;
        background: #8fa7bc;
        color: white;
    }

    .use-mic-status.SpeakingReply {
        display: block;
        background: #D63929;
        color: white;
    }




.btn:hover {
    border-color: silver !important;
}

.btn:focus {
    box-shadow: none;
}

.page {
    position: relative;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row {
    /*background-color: #f7f7f7;*/
    border-bottom: 1px solid #d6d5d5;
    /*justify-content: flex-end;*/
    height: 5.5rem;
    display: flex;
    align-items: center;
}

    .top-row ::deep a, .top-row .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
    }

    .top-row a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

/*@media (max-width: 640.98px) {
    .top-row:not(.auth) {
        display: none;
    }

    .top-row.auth {
        justify-content: space-between;
    }

    .top-row a, .top-row .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {*/
/*.page {
    flex-direction: row;
}

.sidebar {
    width: 250px;
    height: 100vh;
    position: sticky;
    top: 0;
}

.top-row {
    position: sticky;
    top: 0;
    z-index: 1;
}

.top-row, article {
    padding-left: 2rem !important;
    padding-right: 1.5rem !important;
}*/
/*}*/


@media (min-width: 0px) {
    .bb-page {
        flex-direction: row !important;
        overflow: hidden;
    }

    .bb-top-row-sticky {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row, article {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

.form-check-input {
    height: 30px !important;
    width: 50px !important;
    margin-right: 10px !important;
    margin-top: 0px !important;
}

.form-control.input-message:focus {
    box-shadow: 0 8px 16px #00000024, 0 0 2px #0000001f;
    border-color: silver;
}

.bb-top-row > * .dropdown-menu-start[data-bs-popper] {
    right: auto !important;
    left: -85px !important;
}

.message-content-footer {
    border-top: 1px solid #c0c0c047;
    margin-top: 15px;
    padding-top: 5px;
    color: #bdbbbb;
    font-style: italic;
    font-size: 0.92em;
}

.footer-copyright {
    float: left;
    font-size: 0.9em;
    cursor: pointer;
}

.footer-msg {
    float: right;
    font-style: italic;
    /*color: #8f8e8e;*/
    font-size: 0.9em;
}

.company-logo {
    /* position: absolute;*/
    top: 0px;
    left: 0px;
    /*height: 50px;*/
    margin: 6px;
    float: left;
   /* background: #ffffff29;*/
    padding-left: 15px;
    padding-right: 15px;
    /* ensure it fits for small res */
/*    max-width: 170px;*/
    max-height: 50px;
}

.message-chat-expander-icon {
    height: 12px;
    opacity: 0.4;
    margin-right: 5px;
}

.citation-reference-card > .card-body > .card-text {
    font-size: 0.85em;
}

.bb-table {
    font-size: 0.9em !important;
}

    .bb-table > * .btn {
        font-size: 0.9em;
    }

.alert-primary .alert-link {
    color: var(--bs-alert-link-color);
}

a.alert-link {
    cursor: pointer;
    text-decoration: none;
}

.alert {
    font-size: 0.9em;
}


.bb-footer {
    position: relative;
    bottom: 0px;
    width: 100%;
    height: 60px;
    padding: 10px !important;
    /*  margin-top: 20px;*/
}

.bb-page > * article.p-4 {
    height: calc(100% - 120px);
    padding: 0px !important;
}

.bb-top-row {
    height: 75px;
    border-bottom-width: 0px;
}

/*  Bugfix for Bootstrap! */
.table {
    color: var(--bs-body-color);
}

.message-area-left-functions {
    float: left;
}

.message-area-function {
    height: 30px;
    background: #fffcea1a;
    width: 40px;
/*    border-radius: 18px 0px 0px 18px !important;*/
    border-radius: 18px !important;
    padding: 0px !important;
    margin-left: 5px;
    background: #FFFFFF;
    box-shadow: 0 8px 16px #00000024, 0 0 2px #0000001f;
    margin-right: 10px;
}

    .message-area-function:focus {
        box-shadow: 0 8px 16px #00000024, 0 0 2px #0000001f;
    }

    .message-area-function > img {
        width: 18px;
        height: 18px;
    }

.message-area-function.speaker {
    display: block;
}

    .message-area-function.microphone {
        margin-top: 2px;
        margin-bottom: 5px;
        box-shadow: 0 0px 16px #00000024, 0 0 2px #0000001f;
    }
.active.message-area-function {
    background: #43c143 !important;
    border-color: lightgreen !important;
}

.message-area-left-functions > * .me-4 {
    margin-right: 0px !important;
}

.side-bar-area {
    width: 380px;
    /*border-right: 1px solid silver;*/
    transition: opacity .3s ease, display .3s ease allow-discrete; /* <-- check this line */
    background: rgba(var(--bs-tertiary-bg-rgb),var(--bs-bg-opacity)) !important;
    max-height: 100vh;
}

.side-bar-area.False {
    display: none;
}

    .side-bar-area > .table-responsive {
        height: 100%;
    }

    .side-bar-area > .d-flex.justify-content-between.align-middle.mt-2 {
        background: rgba(248,249,250, var(--bs-bg-opacity)) !important;
    }

.notification-viewing {
    border-radius: 0px !important;
    margin-bottom: 0px !important;
}

.side-bar-area > * .bb-grid-pagination-text {
    display: none;
}

.table > :not(:last-child) > :last-child > * {
    border-bottom-color: silver;
}

.table > :not(caption) > * > * {
    border-bottom-color: transparent !important;
}

.footer-user {
    margin-left: 10px;
    font-size: 0.9em;
    padding-left: 20px;
    float: left;
}

.side-bar-area > .table-responsive {
    height: 100%;
}

.history-row-content {
/*    border: 1px solid #6f6f6f1f;
    padding: 9px 0px 9px 14px;
    border-radius: 9px;
    font-size: 0.85em;
    background: #f5f5f52e;
    box-shadow: 0 2px 4px #00000024, 0 0 2px #0000001f;
    display: block;
    margin: 5px 20px 0px 15px;*/
}

.history-row-content-text {
    display: inline-block;
    width: 260px;
    max-height: 60px;
    overflow: hidden;
    /* text-overflow: ellipsis; */
    /*text-wrap: auto;*/
    /* white-space: nowrap; */
}

.history-row-content-actions {
    display: inline-block;
    margin-top: -5px;
}


.history-row-content > .bi.bi-chat-dots {
    vertical-align: top;
    color: darkgrey;
    margin-right: 4px;
}

.dropdown-item {
    padding: 2px 15px;
    font-size: 0.9em;
}

.rename-form-container > * label {
    font-size: 0.9em;
}

.rename-form-container > * .form-control {
    font-size: 0.9em;
}

.chat-background-image {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 1.0;
}


    .chat-background-image > img {
        display: block;
        margin: auto;
        pointer-events: none;
        max-height: 500px;
        max-width: 500px;
        margin-top: 140px;
    }

    .chat-background-image.inprogress {
        opacity: 0.05;
    }

.chat-input-area {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    flex-wrap: wrap;
    padding-left: 50px;
    padding-top: 10px;
    padding-bottom: 5px;
    padding-right: 50px;
}

.chat-input-seperator {
    flex: 1;
    flex-basis: 100%;
    margin: 0px 20px 20px 15px;
    height: 3px;
}

.chat-input-text {
    flex: 1;
    margin-right: 15px;
    margin-bottom: 12px;
}

    .chat-input-text > textarea {
        height: 55px;
        border-radius: 30px;
        padding-left: 25px;
        padding-top: 13px;
        overflow: hidden;
    }

.chat-input-send {
}

.chat-input-actions {
    flex-basis: 100%;
    padding-bottom: 10px;
    padding-left: 0px;
}

    .chat-input-actions > .btn {
        margin-right: 15px;
    }

.menu-button > .dropdown-toggle::after {
    display: none;
}

.chat-all {
    display: flex;
    flex-direction: column;
    /*align-items: stretch;*/
    width: 100%;
    height: calc(100% - 45px);
    /*flex-wrap: wrap;*/
}

.chat-headers {
}

.chat-messages {
    flex: 1;
    height: 100%;
}

.chat-footers {
}

.history-items-container {
    height: calc(100% - var(--chat-theme-light-header-height) - var(--chat-theme-light-footer-height));
    overflow-y: auto;
    padding-bottom: 50px;
}

.side-bar-footer {
    width: 100%;
}

.history-items-label {
    margin-top: 30px;
    font-size: 0.7em;
    text-align: center;
}

.history-items-loadmore {
    color: rgba(var(--bs-link-color-rgb), 1);
    text-decoration: underline;
    padding-top: 20px;
    text-align: center;
    cursor: pointer;
    font-size: 0.7em;
}

.history-items-search {
    /* border-color: var(--chat-theme-light-header-bottom-border-color); */
    /*background: #ffffff;*/
    height: calc(var(--chat-theme-light-header-height) - 0px);
    /* margin-bottom: 2px; */
    padding: 20px 30px 30px 30px;
    border-bottom: 1px solid transparent;
}

    .history-items-search > .history-items-search-entry {
        border-radius: 30px;
        padding-left: 34px;
        padding-right: 34px;
        font-size: 0.85em;
        width: 275px
    }

    .history-items-search > .history-items-search-icon {
        position: absolute;
        left: 42px;
        top: 27px;
        color: silver;
    }

    .history-items-search > .history-items-search-clear {
        position: absolute;
        left: 279px;
        top: 25px;
        color: silver;
        cursor: pointer;
    }

        .history-items-search > .history-items-search-clear:hover {
            color: black;
        }

    .history-items-search > .history-items-close-icon {
        position:absolute;
        top: 25px;
        left: 320px;
        cursor: pointer;
    }

    .dropdown-divider {
        background-color: #f5f5f5;
    }

.history-row-content-details {
    margin-left: 5px;
    margin-top: -15px;
    margin-bottom: 7px;
    font-size: 0.85em;
    color: darkgray;
}


@media (min-width: 0px) {
    .d-lg-none {
        display: none !important;
    }
}

@media (min-width: 0px) {
    .ps-lg-2 {
        padding-left: .5rem !important;
    }
}

@media(max-width: 700px) {
    .company-logo {
        display: none;
    }
}

.chat-headers > * .alert-link {
    margin-right: 5px;
}

.toast {
    /*background: white;*/
}

.header-msg {
    flex: 1;
    text-align: center;
    font-size: 0.9em;
}

.modal-dialog > * h5 {
    font-size: 1.0rem;
}

input[type="file"] {
    display: none;
}

.custom-file-upload {
    border: 1px solid #ccc;
    display: inline-block;
    padding: 6px 12px;
    cursor: pointer;
}

    .custom-file-upload.True {
        visibility: hidden;
    }

    .chat-upload-message {
        font-size: 0.9em;
        margin-bottom: 50px;
    }

.custom-file-upload:hover {
    background: whitesmoke;
    border: 1px solid #ba613b;
}

.debug-markdown {
    font-size: 0.85em;
}


table.citation-table {
}

tr.citation-row {
}

td.citation-col-title {
    padding-right: 25px;
    width: 40%;
    vertical-align: top;
}

td.citation-col-value {
    padding-right: 10px;
}
.app-info {
    padding-bottom: 30px;
   padding-left: 35px;
}

.app-info-title {
    padding-left: 112px;
    font-size: 1.3em;
    margin-bottom: 20px;
}

.app-info-text {
    margin-top: 30px;
    font-size: 0.9em;
    color: gray;
}

.table > :not(caption) > * > * {
    background: transparent;
}

.rename-form-container > * .col-form-label > .text-danger {
    display: none;
}