@import url('lib/tailwindcss/dist/preflight.css');
@font-face {
    font-family: 'audiowide-regular';
    src: url('fonts/audiowide-regular.ttf') format('truetype');
} .logosvg {
    display:none; 
    width:30px;
    background-color:blue;
    border-radius:0.4rem;
}
  .logosvg path {
    fill: #ffffff;
  }
:root {
   
    --chat-container-row:#F3F4F6;
     --chat-container-border:#E5E7EB;
    --input-box-primary:#FFFFFF;
    --background-gradient-1:rgb(240 242 245);
            --background-gradient-2:#fdfdfd;

    --logo-color:#2d2d2d;
    --white: #FFFFFF;
    --primary: #FFFFFF;
    --secondary: #FFFFFF;
    --text-primary: #000000;
    --text-secondary: #FFFFFF;   --sidebar: #f8f9fa;
      --banner-primary: #efefef;
       --banner-secondary: #FFFFFF;
    --inner-container:#efefef;
    --header: #FFFFFF;
    --footer: #FFFFFF;
    --input-darker: #00000040;
    --header-primary:#333;
    --user-message-textcolor:#1F2937;;
    --user-message-color:#0078d44f;
    --dropdown-selected:#0078d44f;
    --gradient-color-1: #4169E1; /* royal blue */
    --gradient-color-2: #8A2BE2; /* blue violet (purple) */
    --gradient-color-3: #4169E1; /* back to blue for text */
     --badge-bg-1: #4169e1b0;
    --button-bg-1: #FFFFFF;
    --button-bg-2: #4169E1;    --button-bg-3: #dce0e4;
    --border-primary:#ccc;
    --border-light:#0000001f;
     --gradient-color-1d:  #e00425;  /* red 500 */
  --gradient-color-2d:  #970741;  /* red 700 */
  --gradient-color-3d:  #f44336;
      --gradient-color-4d:  #b51b3e;
    
}
:root[data-theme="dark"] {
     --header-primary:#d5e0e0;
    --white:            #121212;
  --primary:          #1E1E1E;    --logo-color:#ffffff;
  --secondary:        #2C2C2C;
  --text-primary:     #E0E0E0;
  --text-secondary:   #B0B0B0;  --chat-container-row:    #2C2C2C;
  --chat-container-border: rgba(255, 255, 255, 0.12);
  --input-box-primary:     #1E1E1E;
  --background-gradient-1: rgb(30, 30, 30);
  --background-gradient-2: rgb(18, 18, 18);
  /* layout */
  --sidebar:          #181818;
  --banner-primary:   #222222;  --inner-container:#222222;
  --banner-secondary: #1F1F1F;
  --header:           #1E1E1E;    --input-darker: #00000040;
  --footer:           #1E1E1E;
--button-bg-3: #353535;
     --user-message-textcolor:#E0E0E0;;
  /* accents switched from blue→red */
  --user-message-color: rgb(48 48 48 / 63%); /* ≈#f44336b0 */
  --dropdown-selected:  rgb(48 48 48 / 63%);

  /* gradient stops */
  --gradient-color-1:  #e00425;  /* red 500 */
  --gradient-color-2:  #970741;  /* red 700 */
  --gradient-color-3:  #f44336;

  /* badges/buttons */
      --badge-bg-1:        rgb(180 5 53); /* ≈#f44336b0 */
  /*****--badge-bg-1:        rgba(244, 67, 54, 0.69); /* ≈#f44336b0 */
  --button-bg-1:       #2C2C2C;
  --button-bg-2:       #f44336;
      --button-bg-4:       #ffffff42;
    --border-primary:#ffffff38;
  /* divider */
  --border-light:      #ffffff24; /* ≈#ffffff1f */
}::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--secondary);
}
/* Overlay */
.custom-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

    .custom-modal.show {
        display: flex;
 
    }


.dropdown-container .btn-primary{
    width:100%;
        padding: 0.75rem 1rem;
    text-align:left !important;
    justify-content:start !important;
    border-radius:0px;
    background-color:#ffffff12 !important;
    
}

/* Header */
.custom-modal-header {
    display: flex;  flex: 0 0 auto;      /* don't let the header shrink */
  position: sticky;    /* optional: keeps header visible while scrolling */
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f5f5f50f;
    border-bottom: 1px solid var(--border-primary);
}
.custom-modal-body {
 max-height:500px;
  overflow-y: auto;
      min-height:0;   
  flex: 1 1 auto;          
   
}
#open-model-chat-button{
    display:none;
}
    .custom-modal-header h3 {
        margin: 0;
        font-size: 1rem;
margin-right:100px;
    }

.close-btn {
    color:#ff0000;
    font-weight:700;
    background: #d10b0b36;
    padding:4px 6px 2px 6px;
border-radius:4px;;
    border: none;margin-top:4px;
    font-size:0.8rem;
    cursor: pointer;
}
.close-btn i:after{

}

#import-new-ollama-btn i{
    margin-left:auto;
}
/* List */
.model-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.model-list > li{
    padding:0px 20px !important;
}
.model-list > li:hover, .model-list > li.isExpanded {background-color:#ffffff0f}
.model-list > li.isExpanded{
    padding-bottom:20px !important;
}
.model-title {
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    padding: 0.5rem 0;
}

    .model-title:hover {

    }

.model-desc {
    margin: 0.5rem 0;
    font-style: italic;
}

.version-text {
    margin-top: 0.5rem;
    font-weight: bold;
}

.dd-list {
    margin-left: 1rem;
    list-style: disc;
}

/* Trigger button */
.modal-open-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    background: #007bff;
    color: white;
    cursor: pointer;
}

    .modal-open-btn:hover {
        background: #0056b3;
    }

::-webkit-scrollbar-thumb {
  background-color: var(--primary);
  border-radius: 4px;
  border: 2px solid var(--secondary);
}
#app{
    width:100%;
}
#wipe{
    border-top:solid 1px;
        border-color: var(--border-light);
}
.main-content{
    color:var(--text-primary);
}
.new-chat-icon{
    color:var(--primary-color) !important;
}.code-toolbar{

}
hr{
    opacity:0.4;
}
pre[class*="language-"] {border-radius:1rem !important;
    overflow:hidden;
    position:relative !important;
    border:solid 1px var(--border-light);
                        }
.code-toolbar .toolbar > .toolbar-item >span{
    color:var(--white) !important;
    border:none !important;
    box-shadow:none !important;
    margin-right:auto !important;
}
div.code-toolbar > .toolbar {
    opacity:1 !important;
    right:unset;
    left:1rem;
}
:root[data-theme="dark"] .code-toolbar{
    filter:invert(1);
}
.code-toolbar{
    border-radius:1rem;
}
/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--secondary);
}
.chat-header-container{
    border-top:solid 1px;
 
    border-color:var(--border-primary)
}
/** .components-reconnect-dialog{
    background-color:var(--white)!important;
}*/
.version-text{
    font-weight:600;
    margin-bottom:5px;
}
.flex-col{
    display:flex; flex-direction:column;
}
.flex{
    display:flex;
}
    .modal-backdrop {
      position: fixed;
      inset: 0;
      z-index: 100;
      display: none;background: rgba(0,0,0,0.6);
    }

 .modal-backdrop.show{
     display:block;
 }
#ollama-import-modal > h3{
    padding:10px;
}
#ollama-import-modal .hidden{
    display:none;
}span.group-hover\:underline {
font-weight:600;
    background:var(--chat-container-row);
    padding:0px 10px 2px 10px;
    border-radius:1rem;
    
}
.model-desc-xyz{
    margin-top:10px;
    margin-bottom:10px;
}
.dd-list{
    background-color: #ffffff14;
    border-radius:1rem;
    border:solid 1px var(--border-primary);
    overflow:hidden;
    margin:20px 0px 0px 0px;
}.dd-list a{
    position:relative;
}
.dd-list li:hover{
    background-color:#ffffff14;
}
.dd-list a::after {
      font-family: "uicons-bold-rounded"; /* replace with the actual icon font family */
  content: "\e67e"; /* Unicode for fi-br-download */
  font-style: normal; 
  font-weight: normal;
  display: inline-block;
  margin-left: 6px;
  font-size: 14px;
  vertical-align: middle;
    position:absolute;
    right:10px;
}#global-settings-modal .form-label{font-weight:500;
                                   margin-bottom:10px;
                                   display:inline-block}

#global-settings-modal .form-control{
    background-color:var(--input-darker);
}
.config-dd-selected{
  /* pick ONE of these width limits */
  max-width: 24ch;            /* ≈ 24 characters */
  /* or: width: 200px;        /* fixed px */
  /* or: max-width: 40%;      /* relative */

  min-width:0;                /* needed inside flex for truncation */
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  display:inline-block;
  flex:1 1 auto;              /* let it shrink before the arrow */
}

.model-dd-selected{
  /* pick ONE of these width limits */
  max-width: 24ch;            /* ≈ 24 characters */
  /* or: width: 200px;        /* fixed px */
  /* or: max-width: 40%;      /* relative */

  min-width:0;                /* needed inside flex for truncation */
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  display:inline-block;
  flex:1 1 auto;              /* let it shrink before the arrow */
}
.chat-header-controls .btn-default{
    white-space:nowrap;
}
#toggleThemeBtn{
    margin-right:10px;
}
#settings-btn{
    white-space:nowrap;
  
}
#global-settings-modal .global-sec-1{
    
}#global-settings-modal .global-sec-2{
    
}#global-settings-modal .global-sec-3{
     gap:10px;
}
#global-settings-modal summary{ 
}
#global-settings-modal .global-sec-1, #global-settings-modal .global-sec-2, #global-settings-modal .global-sec-3,#global-settings-modal .global-sec-4{
    display:flex;
    margin-top:10px;
   
}

#global-settings-modal .global-sec-1 .btn, #global-settings-modal .global-sec-2 .btn, #global-settings-modal .global-sec-3 .btn,  #global-settings-modal .global-sec-4 .btn{
    display:flex;
    flex:1;
    text-align:center;
    justify-content:center;    
}
 #global-settings-modal .model-files-folder{
     margin-top:20px;
 }

#global-settings-modal .global-sec-2 .btn-danger{
    width:100%;
    min-width:100%;
    margin-left:0px;
   
}#global-settings-modal .advanced-details{
    margin-top:20px;
}
 #global-settings-modal .global-sec-2{
     display:flex;
     margin-top:20px;
     gap:10px;
     flex-wrap:wrap;
     border-top: solid 1px #80808040;
    padding-top: 15px;
 }
#global-settings-modal{
    height:fit-content;
}
#ollama-import-modal{
    height:fit-content;
    width:fit-content;
  max-width:500px;
}
#ollama-import-modal li{
    padding:10px;
    border-top:solid 1px var(--border-light) !important;
}
#global-settings-modal .custom-modal-body{
    padding:20px;
} 
#global-settings-modal .advanced-details .form-control{
    min-height:200px;    margin-top:10px;
}
.sidebar-footer .btn-sidebar-footer{
    margin-left:0px;
    width:100%;
    display:flex;
    justify-content:center;
}
.message-list-container{
 /*  min-height:500px;*/
}
.custom-modal {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: fit-content;

  width: 90vw;
  max-height: 90vh;
  overflow: auto;
  background: var(--chat-container-row);
  border: 1px solid var(--border-light);
  border-radius: 10px;
}
.user-message{
    background-color:var(--user-message-color) !important;
    color:var(--user-message-textcolor) !important;
}
.chat-container{
    background-color:var(--chat-container-row) !important;
    border-color:var(--chat-container-border) !important;
}
.chat-container form .input-box{
    background:var(--input-box-primary) !important;
    border-color:var(--border-light) !important ;
}
.chat-container form .input-box:focus-within{
        outline: 2px solid var(--gradient-color-1) !important;
}.range-temp {
    opacity:0.8;
  accent-color: hsl(347 95% 55% / 1); /* simplest cross-browser way in modern browsers */
}

/* For finer control */
.range-temp::-webkit-slider-thumb {
  background: #e63946;   /* thumb color */
}
.range-temp::-webkit-slider-runnable-track {
 
}

.range-temp::-moz-range-thumb {
  background: #e63946;
}
.range-temp::-moz-range-track {
  background: #2c2c2c;
}

.spinner-message{
    text-align:center;    text-align: center;
    font-size: 1.25rem;
    color: #999;

}#sidebarText{
    margin-left:2px;
    padding-top:1px;
    font-size:1.05rem ;
    color:var(--logo-color);
    font-family:sans-serif;
    letter-spacing:0.2px;
    font-weight:600;
    opacity:0.88;
}
html[data-theme="dark-old"] #sidebarText {
      background: linear-gradient(135deg, var(--gradient-color-1), var(--gradient-color-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
    opacity:1;
     font-family:audiowide-regular;
    font-size: 1.3rem;
    margin-top: 3px;
    margin-bottom: 3px;

    filter:brightness(1.2);
    color:white;
    
}
.logo{
    
}
.message-list{
    flex-grow:1;
    flex:1; 
}
#chat-container-outer{
    display:flex;
     flex:1;   
    flex-grow:1;
    
}
.chat-container-inner{
 position:relative;
    display:flex;
 flex:1;  
    flex-direction:column;
    flex-grow:1;
        max-height: 100vh;
    overflow-y: scroll;
}.assistant-message-icon{
padding:0px;   
    background: linear-gradient(135deg, var(--gradient-color-1), var(--gradient-color-2)) !important;
    background:transparent !important;
}
.assistant-message-icon .icon{
    fill:white !important;
    color:white !important;
    width:1.4rem!important;
    height:1.4rem !important;
}
.chat-options-sidebar {
    display:flex; flex-direction:column;
    position: relative;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--sidebar);
    border-left: 1px solid var(--border-light);
    padding-top:1rem;
    overflow-y: auto;
    overflow-x:hidden;
    box-shadow: 2px 0 5px rgba(0,0,0,0.03);
    transition: transform .3s ease-in-out;
}
.chat-options-sidebar > h3{
    margin-left:1rem;;
    font-weight:500;
}
    .chat-options-sidebar.collapsed {
        transform: translateX(100%);
    }

    .chat-options-sidebar h3,
    .chat-options-sidebar h4 {
        margin-bottom: 0.75rem;
        color: var(--header-primary);
        font-family: "Segoe UI", sans-serif;
    }
.loader-inner{
    
    display: flex;
    vertical-align: middle;
    align-items: center;

}


.chat-options-sidebar section{
    padding: 0.4rem 1rem;
}
.loader-inner .lds-ellipsis{
    margin:0px !important;
    opacity:0.5;
   transform:scale(0.3) translate(-100%, 20%);
}

.btn:hover, .reingest-btn:hover,.wipe-btn:hover{
    filter:brightness(0.9);
}
html[data-theme="dark"] .btn:hover, html[data-theme="dark"] .reingest-btn:hover, html[data-theme="dark"] .wipe-btn:hover {
    filter: brightness(1.2);
}

.chat-options-sidebar textarea{
    min-height:100px;
}
.description-text-1{
    font-size:1.9rem;
    margin-top:50px;
}
.reingest-btn,
.save-database-btn, .wipe-btn{

 flex-grow:1;
    flex:0;
    font-size:14px;
    margin-left:0px;
    text-align:center;
  justify-content:center;  
    width:100%;
    border-radius:1rem;
    padding:0.2rem 0rem;
    margin:0.5rem 0rem;
    font-weight:500;
}.wipe-btn{
    color:var(--black);
    background-color: #f51d1d9e;
}.btn.btn-danger{
    background-color: #ff56569e;
}
.reingest-btn{
    background-color: #ff56569e;
}.save-database-btn{
    background-color:var(--button-bg-4);}
.btn.btn-primary, .btn.btn-outline-primary{
  
   background-color:var(--button-bg-3);
 flex-grow:1;
    flex:0;
    margin-left:0px;
    text-align:center;
  justify-content:center;  
}
#section-save{
    display:flex;

    border-top:solid 1px;    border-color: var(--border-light);
    background-color: var(--banner-primary);
    flex-direction:column;
    margin-top:auto;
}
.section-save-inner{
    display:flex; margin:20px 0px;; 
    flex-direction:column;
}
.chat-none-1{
margin-top:20px; opacity:0.8;
}
.loader-inner .spinner-message{
    text-align:left;
    font-size:1rem;
}
.nav-link-t{
       border-top:solid 1px;
    padding:0.4rem 1rem;
    
  background-color:var(--banner-primary);
    
    border-bottom: solid 1px;
    border-color: var(--border-light);
} 
.chat-options-sidebar h4 i{
 font-size:0.8rem;
}
.chat-options-sidebar h4 {
   
    font-size:0.9rem;
    border-top:solid 1px;
    padding:0.4rem 1rem;
    margin:0 -1rem;
  background-color:var(--banner-primary);
    
    border-bottom: solid 1px;
    border-color: var(--border-light);
}.chat-options-sidebar h4 .header-text-1{
    margin-left:10px;
    font-weight:500;
line-height:1.2rem;
    vertical-align:top
}
.model-config-section >h4{
    padding:0.5rem 2rem;
}

    .chat-options-sidebar dl {
        margin: 01rem 0;
    }

    .chat-options-sidebar dt {
        font-weight: 600;
      
        font-size: 0.9rem;
    }

    .chat-options-sidebar dd {
        margin: 0.25rem 0 1rem;
    }


#tools-options-cont{
    display:flex;
    flex-direction:row;
    white-space:nowrap;
    gap:5px 5px;
    flex-wrap:wrap;
    
}
.chat-options-sidebar #non-config-settings{
    margin-top:10px;
}
.form-range {
    height: 2rem;
    display:flex;
    width:calc(100%);
}
.range-temp{
    margin-right:10px;
} 
.temp-op-inner{
    display:flex;
}

.form-control {
    width: 100%;
    height: 2.2rem;
    padding: 0.35rem 0.6rem;
    font-size: 0.9rem;
    border-radius: 4px;
    border: 1px solid var(--border-primary);
    transition: border-color 0.2s;
    
}.chat-options-sidebar .chat-model-container{
    margin-left:0px;
} 
.chat-options-sidebar .model-selector .arrow{
    margin-left:auto;
    font-size:0.8em;
}
.chat-options-sidebar .model-selector{
    

     display: flex;
   padding: 0.35rem 0.6rem;
    gap: 0.2rem;   height:fit-content;
    align-items: center;
    border-radius: 1rem;
       border: 1px solid var(--border-primary);
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight:400;
     border-radius: 4px;
    margin-left:0px;
    background-color: transparent;
}

    .form-control:focus {
        border-color: var(--gradient-color-1);
        outline: none;
        box-shadow: 0 0 3px rgb(171 6 57 / 60%);
    }
.chat-options-sidebar i.text-muted{
    font-size:0.7rem;
}
.text-muted {
    font-size: 0.8rem;
}
#logo{

}think{
     font-style: italic;
  /* either use opacity: */
  opacity: 0.6;
}
think {
  display: block;
  position: relative;
  cursor: pointer;
 margin-bottom:15px;
}
think .more {
  display: none;
  margin-top: 0.5em;
}
think .toggle {
  display: inline-block;
  margin-left: 0.5em;
  color: #007bff;
  text-decoration: underline;
  cursor: pointer;
}.chat-history-list .session-item .nav-link{
   
  display: inline-block;    /* or block */
  width: 20ch;              /* ~20 characters */
  white-space: nowrap;      
  overflow: hidden;         
  text-overflow: ellipsis;  padding: 0rem 0rem;
    text-align:left;
   min-width: 0; align-items:start; 
}
.chat-history-list .session-item{
padding: 0.65rem 1.25rem;
    justify-content:start;
} 

.sub-menu {
    display: none;
    padding-left: 0em;
}

.has-sub.active > .sub-menu {
    display: block;
}
    .main-content{
    display:flex;
    flex-direction:row;
    position:relative;
    flex-grow:1;
}
.gradient-bg-1 {
    background: linear-gradient(135deg, var(--gradient-color-1), var(--gradient-color-2));
}

.gradient-text-1 {
    background: linear-gradient(135deg, var(--gradient-color-2), var(--gradient-color-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.model-selector{
     display: flex;
    padding: 0.25rem 0.75rem;
    gap: 0.25rem;   height:fit-content;
    align-items: center;
    border-radius: 1rem;
    border: 1px solid var(--button-bg-1);
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
    margin-left:0px;
    background-color: var(--button-bg-1);
}
#settings-btn{
    margin-left:auto;
}
.btn {
    display: flex;
    height:fit-content;
    padding: 0.25rem 0.75rem;
    gap: 0.25rem;
    align-items: center;
    border-radius: 1rem;
    border: 1px solid var(--button-bg-1);
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
    margin-left: 10px;
    background-color: var(--button-bg-1);
}
.session-item{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-grow:1;
    width:100%;
}.session-item .btn i{ color:#494949; font-size:0.6rem;}

.session-item .btn{
   
    
    background:transparent;
    border:none;
  margin-left:auto;
    
    line-height:normal;
    
}

.toggle-theme-btn {
  display: inline-flex;       /* makes the button a flex container */
  align-items: center;        /* vertical centering */
  justify-content: center;    /* horizontal centering */
  /* optional: force it square if you like */
padding-top:0.35rem;
padding-bottom:0.15rem;
}
.btn-1{
    background-color: var(--button-bg-1);
}
.btn-2{
    background-color: var(--button-bg-2);
}
    
.btn-default {
    display: flex;
    padding: 0.25rem 0.75rem;
    gap: 0.25rem;
    align-items: center;
    border-radius: 1rem;
    color:white;
   
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--gradient-color-1), var(--gradient-color-2));
}

    .btn-default:hover {
        background-color: #E5E7EB;
    }
/**look at google fonts*/



html {
    min-height: 100vh;
}


html, .main-background-gradient {
       background: linear-gradient(to bottom, var(--background-gradient-1), var(--background-gradient-2) 25rem);
}

body {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
} /*.main-content{
    padding-top:2px;
}
.main-content::after {
        content: '';
        background-image: linear-gradient(to right, var(--gradient-color-1), var(--gradient-color-2) 15%, var(--gradient-color-3) 85%, red);
        width: 100%;
        height: 2px;
        position: fixed;
        top: 0;
    }
 */
.chat-options-sidebar::after{

        content: '';
               background-image: linear-gradient(to right, var(--gradient-color-1), var(--gradient-color-2) 15%, var(--gradient-color-3) 85%, red);
        width: 100%;
        height: 2px;
        position: fixed;
        top: 0;
    
}
    /*html::after {
        content: '';
        background-image: linear-gradient(to right, #3a4ed5, #3acfd5 15%, #d53abf 85%, red);
        width: 100%;
        height: 2px;
        position: fixed;
        top: 0;
    }
 Container & positioning */
.dropdown-container {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 100;
    max-height: 250px;
    overflow-y: auto;
    transition: opacity 0.2s ease, transform 0.2s ease;
    opacity: 0;
    transform: translateY(-0.5rem);
}
.arrow i {
    transition: transform 0.2s ease;
}

.model-selector.open .arrow i {
    transform: rotate(180deg); /* Rotate the arrow when open */
}
    .dropdown-container.show {
        opacity: 1;
        transform: translateY(0);
    }

    .dropdown-container.hidden {
        pointer-events: none;
    }

/* Utility item */
.dropdown-item,
.model-dropdown-item,
.config-dropdown-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
background:var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
  
}
.config-dropdown-item {
    white-space:nowrap
}
.badge{
    color:white;
       font-size:12px;
    border: solid 1px;
    padding:1px 5px;
    border-radius:4px;
}
.badge.badge-1{
    display:flex;
    
    border:none;
    max-width:fit-content;
    
    background-color:var(--badge-bg-1);
}

.chat-model-description{
    white-space:nowrap;
    opacity:0.8;
    font-size:12px;
    border: solid 1px;
    padding:1px 5px;
    border-radius:4px;
}

 
.config-id{
    display:none;
}
.dropdown-item:hover,
.model-dropdown-item:hover,
.config-dropdown-item:hover {
    filter: brightness(0.95);
    /* background: rgba(0, 0, 0, 0.04);*/
}

html[data-theme="dark"] .dropdown-item:hover,
html[data-theme="dark"] .model-dropdown-item:hover,
html[data-theme="dark"] .config-dropdown-item:hover {
    filter: brightness(1.4);
    /* background: rgba(0, 0, 0, 0.04);*/
}

    .model-dropdown-item.running .chat-model-name::after {
        content: "●";
        color: #28a745;
        font-size: 0.6em;
        margin-left: 0.5rem;
    }

    .config-dropdown-item.selected {
        font-weight: 600;
        background: rgba(65, 105, 225, 0.1);
    }


/* Selector & arrow */
.chat-header-container .chat-model-container{
    position:relative;
    margin-left:10px;   z-index:10; 
}
.chat-options-sidebar .chat-model-container{
    position:relative;
 
}

    .model-selector:hover,
    .config-selector:hover {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

.arrow {
    margin-left: 0.5rem;
    display: flex;
    align-items: center;
    font-size: 0.9em;
    transition: transform 0.2s ease;
}
/* rotate on open */
.dropdown-container.show + .model-selector .arrow,
.dropdown-container.show + .config-selector .arrow {
    transform: rotate(180deg);
}

.model-dropdown.hidden,.config-dropdown.hidden { display: none; }
.model-dropdown.show,.config-dropdown.show   { display: block;  }
.model-selector {
  cursor: pointer;
  display: flex;
   
  align-items: center;
}
.chat-header-controls{
    margin-bottom:0px !important;
}
.chat-header-container{
    padding:0.9rem !important;
 
    display:flex;
     z-index:10;
}
assistant-message h1{
    margin:10px 0px;
    font-size:1.4rem;
}
assistant-message h2{
    margin:10px 0px;
        font-size:1.1rem;
}


.arrow {
  margin-left: 0.5rem;
}

h1 {
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 600;
}

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+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."
    }



.btn-subtle {
    display: flex;
    padding: 0.25rem 0.75rem;
    gap: 0.25rem;
    align-items: center;
    border-radius: 0.25rem;
    border: 1px solid #D1D5DB;
    font-size: 0.875rem;
    line-height: 1.25rem;
}
  html .btn-subtle:hover {
        background-color:var(--chat-container-row);
          filter: brightness(0.9);
    }
    html[data-theme="dark"] .btn-subtle:hover {
        background-color:var(--chat-container-row);
          filter: brightness(1.2);
    }

.page-width {
    max-width: 1024px;
    margin: auto;
}
#chat-completion-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Adjust spacing between config items */
    padding: 15px;
    border-top: 1px solid #eee; /* Subtle separator */
}

.config-item {
    display: flex;
    font-size:small;
    align-items: center;
     /* Each item takes full width by default */
    margin-bottom: 0px; /* Space between items */
}

.config-title {color: #555;
    font-weight: 500;
    margin-right: 5px;
}
@media (max-width: 768px) {
    .config-item {
        flex-basis: 100%; /* Stack items on smaller screens */
    }
}
@media (max-height: 768px) {
    .custom-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: fit-content;

  width: 90vw;
  max-height: 90vh;
  overflow: auto;
  background: var(--chat-container-row);
  border: 1px solid var(--border-light);
  border-radius: 10px;
} 
}
.config-value {
    color: #555;
}
.sidebar.windows-os .sidebar-logo{
    display:none;
}
/* in site.css */
.sidebar {
  position: relative;
  top: 0; left: 0;
  width: 240px;
  height: 100vh;
    overflow-y:scroll;
  display: flex;
  flex-direction: column;
  background-color: var(--sidebar);

  /*box-shadow: 2px 0 8px rgba(0,0,0,0.15);*/
    border-right:solid 1px var(--border-light);
  z-index: 100;
}
.sidebar-logo > a{ display:inline-flex;
    flex-direction:row;}
.sidebar-logo {
  padding: 0.9rem 0.8rem;
  font-size: 1.4rem; 
  font-weight: bold;
  display: flex;
    flex-direction:row;
    
  align-items: center;
}
.sidebar-logo img {
  height: 25px;
  margin-right: 0.5rem;
}
.sidebar .nav-link{
    font-size:0.9rem;
}

.sidebar-nav {
  flex: 1;
}
.nav-link {
  display: flex;
  align-items: center;
  padding: 0.4rem 1.25rem;
  font-size: 1rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}
.nav-link i {
  width: 20px;
  margin-right: 0.75rem;
  text-align: center;
}
.nav-link:hover, .session-item:hover {
  background: rgba(255,255,255,0.1);
}
.session-item .nav-link:hover {
  background: transparent;
}
.sidebar-footer {
  padding: 1rem 1.25rem;
    position:sticky;
    bottom:0px;
    background-color:var(--sidebar);
  border-top: 1px solid rgba(255,255,255,0.2);
}
.sidebar-footer a {
  display: flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.sidebar-footer i {
  display:flex;
  margin-right: 0.3rem;
}
.ingestion-folder, .database-setting{
   background:var(--inner-container);
    border:solid 1px var(--border-light);
    border-radius:1rem;
    padding: 0.5rem 1rem;
    margin:1rem 0px;
}
.chat-history-list .session-item.active{
    order:-1;
    background-color:var(--dropdown-selected)
}
.chat-history-list .session-item:hover{
    filter:brightness(0.6);
}
.chat-history-list .sub-menu{
    display:flex !important;
    flex-direction:column;
}
.model-config-section .tokencount-op-inner{
   background:var(--inner-container);;
    border:solid 1px var(--border-light);
    border-radius:1rem;
    padding: 0.2rem 1rem  1rem 1rem;
    margin: 1rem 0px;
}
.model-config-section .tokencount-op-inner .form-control, .model-config-section .tokencount-op-inner .model-selector{
    background-color:var(--white);
}
.database-setting .form-control, .ingestion-folder .form-control {
    background-color:var(--white);
}


.alt1 {
    display: flex;
    align-content: center;
    align-items: center;
    vertical-align: middle;
}
..alt1 dt, .subexplorer {
    margin-top: 0px;
    margin-bottom: 0px !important;
}
.explore-sub-cont, .describe-db {
    display: flex;
    align-content: center;
    align-items: center;
    vertical-align: middle;
}
.explore-sub-cont dt, .subexplorer{
    margin-top:0px;
    margin-bottom:0px !important;
}.subexplorer{
    margin-top:0px;
    margin-bottom:0px !important;
    margin-left:10px !important;
}
.path-dt{
    display:flex;
}.database-setting .name-dt{
    display:flex;
}
.add-db-btn, .add-ingest-btn{
    width:100%;
    margin-left:0px;
    text-align:center;
    justify-content:center;
}
.database-setting .btn, .ingestion-folder .btn{
    border:none;
    margin-bottom:0px;
    margin-left:auto;
    font-size:0.6rem;
    padding:0px;
    background:transparent;
  
    text-align:center;
    justify-content:center;
}
.model-label > .fi-br-info{
    display:none;
}
.model-config-block>dd{
   
}
.model-config-block{
     border-bottom:solid 1px var(--border-light);
    padding:0rem 1rem;;
}
.chatoption-subblock label{
        font-weight: 600;
    font-size: 0.9rem;
    margin:0.5rem 0rem 0.2rem 0;
    
    display:inline-block;;
}
.model-label{
    padding:0.5rem 0rem;
    opacity:0.8;
    font-weight:00 !important;
   
}
.chat-options-sidebar section.model-config-section{
    padding: 0rem;
    margin:0rem;
    margin-bottom:-0.5rem;
}
.model-config-section>dl{
    margin:0pc;
}
.model-label > .fi-br-angle-down, .model-label > .fi-br-angle-up{
    margin-left:auto;
}