/* @font-face {
    font-family: "fabbricadigitale";
    src: url("/static/frontend/fonts/fabbricadigitale-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "fabbricadigitale";
    src: url("/static/frontend/fonts/fabbricadigitale-Semibold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal
}

@font-face {
    font-family: "fabbricadigitale";
    src: url("/static/frontend/fonts/fabbricadigitale-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal
}

@font-face {
    font-family: "fabbricadigitale";
    src: url("/static/frontend/fonts/fabbricadigitale-Black.woff2") format("woff2");
    font-weight: 900;
    font-style: normal
} */

@font-face {
    font-family: "fabbricadigitale";
    src: url("/static/frontend/fonts/fabbricadigitale-Regular.woff2") format("woff2");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "fabbricadigitale";
    src: url("/static/frontend/fonts/fabbricadigitale-Regular.woff2") format("woff2");
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "fabbricadigitale";
    src: url("/static/frontend/fonts/fabbricadigitale-Regular.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "fabbricadigitale";
    src: url("/static/frontend/fonts/fabbricadigitale-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "fabbricadigitale";
    src: url("/static/frontend/fonts/fabbricadigitale-Semibold.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "fabbricadigitale";
    src: url("/static/frontend/fonts/fabbricadigitale-Semibold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "fabbricadigitale";
    src: url("/static/frontend/fonts/fabbricadigitale-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "fabbricadigitale";
    src: url("/static/frontend/fonts/fabbricadigitale-Black.woff2") format("woff2");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "fabbricadigitale";
    src: url("/static/frontend/fonts/fabbricadigitale-Black.woff2") format("woff2");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --conversation-bar-height: 0px;
    /* --input-section-height: 64px; */
    --header-section-height: 56px;
    --sidebar-width: 280px;
    --resourcessidebar-width: 280px;
    --sidebar-profile-section-height: 100px;
    /* --bs-border-radius: 0.5rem;
    --bs-border-radius-sm: 0.5rem; */
    /* --sidebar-width: 0px; */
    --bs-border-radius-sm: 0.5rem;
    --bs-border-radius: 0.75rem;
    --bs-border-radius-xl: 1.25rem;
    --bs-border-radius-lg: 0.75rem;

    --bs-body-font-family: "Nunito", sans-serif;
    --bs-body-font-weight: 400;

    /* --bs-body-font-family: "fabbricadigitale"; */
}

[data-bs-theme="light"] {
    --bs-border-color: var(--bs-gray-400);
}

body {
    background-color: var(--bs-gray-200);
}

[data-bs-theme="dark"] body {
    background-color: #111111;
}

.table-transparent {
    --bs-table-bg: transparent;
}

html {
    height: 100%;
}

body {
    height: 100%;
}

.br-20 {
    border-radius: 20px;
}

.popover-lg {
    max-width: 400px;
}

.show_dark {
    display: none;
}

[data-bs-theme="dark"] .show_light {
    display: none;
}

[data-bs-theme="dark"] .show_dark {
    display: unset;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

/* .btn.btn-xsm {
    --bs-btn-padding-y: .25rem;
    --bs-btn-padding-x: .5rem;
    --bs-btn-font-size: .75rem;
} */

.side-link {
    height: 40px;
    /* justify-content: space-between; */
    text-decoration: none;
}

.side-link-sm {
    height: 32px;
}

.btn:not(.btn-link) {
    height: 40px;
}

.btn-sm:not(.btn-link) {
    height: 32px;
}

.btnicon>i {
    vertical-align: middle;
}

/* .side-link:hover {
    background-color: #e9ecef;
} */

/* .side-link.active { */
/* color: #212529; */
/* background-color: #e9ecef;
} */

.sidebar {
    /* position: fixed;
    top: 0;
    left: 0;
    bottom: 0; */
    overflow-x: hidden;
    width: var(--sidebar-width);
    transition: 0.3s;
}

.sidebar-profile-section {
    height: var(--sidebar-profile-section-height);
}

.sidebar-top-section {
    height: calc(100% - var(--sidebar-profile-section-height));
}



.main {
    box-sizing: border-box;
    height: 100%;
    /* position: fixed; */
    /* left: var(--sidebar-width); */
    overflow-x: hidden;
    /* width: calc(100% - var(--sidebar-width)); */
    transition: 0.3s;
    /* flex-grow: 1; */
}

/* .main-resourcessidebar-show {
    width: calc(100% - var(--sidebar-width) - var(--resourcessidebar-width));
    transition: 0.3s;
  } */

.resourcessidebar {
    /* position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 0;
    transition: 0.3s; */
    overflow-x: hidden;
    width: var(--resourcessidebar-width);
    transition: 0.3s;
}

/* .resourcessidebar-show {
    transition: 0.3s;
} */

.sidebar-hide {
    width: 0;
    transition: 0.3s;
    padding: 0 !important;
}

#additional_conversation_types.hide {
    height: 0;
    overflow: hidden;
}

/* #conversations_bar {

} */

/* .chat_section {
    height: calc(100% - (var(--input-section-height) + var(--header-section-height)));
    overflow-y: auto;
} */

.input_section {
    height: var(--input-section-height);
}

.header_section {
    height: var(--header-section-height);
}

.bg-theme-darker {
    background-color: var(--bs-gray-300);
}

[data-bs-theme="dark"] .bg-theme-darker {
    /* background-color: var(--bs-dark-bg-subtle); */
    background-color: #000000;
}

.bg-theme {
    background-color: var(--bs-body-bg);
}

.hover-theme:hover {
    background-color: var(--bs-gray-200);
}

[data-bs-theme="dark"] .hover-theme:hover {
    background-color: #151515;
}

.side-link.active, .side-link:active {
    background-color: var(--bs-gray-300);
}

[data-bs-theme="dark"] .side-link.active, [data-bs-theme="dark"] .side-link:active {
    background-color: #000000;
}

#new-source-dropdown .dropdown-item {
    vertical-align: middle;
    height: 50px;
    margin: 0;
}

.dropdown-menu .dropdown-divider {
    margin: 0;
    /* height: 1px;
overflow: hidden; */
}

.large-shadow {
    box-shadow: 0 5px 50px 0 rgba(0, 0, 0, 0.25);
}

.small-shadow {
    box-shadow: 0 5px 30px 0 rgba(0, 0, 0, 0.15);
}

[data-bs-theme="dark"] .large-shadow {
    box-shadow: 0 5px 50px 0 rgba(255, 255, 255, 0.25);
}

[data-bs-theme="dark"] .small-shadow {
    box-shadow: 0 5px 30px 0 rgba(255, 255, 255, 0.15);
}

@keyframes shake {
    20% {
        transform: rotate(4px);
    }

    40% {
        transform: translateX(-4px);
    }

    60% {
        transform: translateX(4px);
    }

    80% {
        transform: translateX(-4px);
    }
}

input.is-invalid {
    animation: shake 300ms;
}

.shake {
    animation: shake 300ms;
}

.details-summary-select {
    position: relative;
    margin: 0;
    padding: 0;
    overflow: visible;
    height: 38px;
    user-select: none;
}

.details-summary-select summary {
    /* padding-y: auto; */
    display: flex;
    align-items: center;
}

.details-summary-options-container {
    max-height: 175px;
    overflow-y: auto;
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
}

.details-summary-option {
    cursor: pointer;
}

.show-on-parent-hover {
    visibility: hidden;
}

[data-conversation-id]:hover>.show-on-parent-hover {
    visibility: visible;
}

[div-for-resource]:hover>.show-on-parent-hover {
    visibility: visible;
}

[div-for-collection]:hover>.show-on-parent-hover {
    visibility: visible;
}

[data-conversationtemplate-id]:hover>.show-on-parent-hover {
    visibility: visible;
}


::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    background: var(--bs-border-color);
    border-radius: 8px;
}

::-webkit-scrollbar-corner {
    background-color: transparent;
    border: 0;
}

.message-content :last-child {
    margin-bottom: 0;
}

#conversation_list {
    overflow-y: hidden;
}

#conversation_list:hover {
    overflow-y: auto;
}

#resourcessidebar_container {
    overflow-y: hidden;
}

#resourcessidebar_container:hover {
    overflow-y: auto;
}

.summary-tree-details[open]>summary>span {
    display: none;
}

.summary-tree-details[open]>summary {
    list-style-type: '-';
}

.summary-tree-details>summary {
    list-style-type: '+';
}

.hljs {
    background-color: white;
    border-radius: var(--bs-border-radius);
    padding-top: 0px;
}

[data-bs-theme="dark"] .hljs {
    background-color: black;
}

.language-json .hljs-attr,
.language-javascript .hljs-attr,
.language-javascript .hljs-property {
    color: #e06c75;
}

.language-javascript .hljs-literal {
    color: #d19a66;
}

.language-json .hljs-keyword {
    color: #56b6c2;
    ;
}

.bg-image {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top;
}

.bg-glass {
  background: rgba(255, 255, 255, 0.15); /* translucent */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Safari */
}
