body {
  flex-direction: column;
  background-color: transparent;
  overflow: hidden;
  font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: small;
  margin: 0;
  /*
  * Configure the z-index of the editor UI, so when inside a Bootstrap
  * modal, it will be rendered over the modal.
  */
  --ck-z-default: 100;
  --ck-z-panel: calc( var(--ck-z-default) + 999 );

  }

  .main-container {
    max-width: 100vw;
    margin:0;
    border-radius: 4px;
    border: 1px solid darkcyan;
    border-radius: 4px;
  }



  .grid-item {
      /* styling for each grid item */
      display: flex;
      justify-content: center;
      align-items: center;
      /* additional styling */
  }

  .middle-menu-icons {
    /* Adjust this height as necessary to fit your design */
    height: calc(100vh - 55px); /* Adjust 60px to the height of your navbar */    
    align-items: center;
  }
  .icon-block {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px; /* Adjust size as needed */
    height: 120px; /* Adjust size as needed */
    font-size: 80px; /* Adjust icon size as needed */
    color: darkcyan; /* Icon color */
    /* add shadow to the icons */
    box-shadow: 2px 2px 2px 0px lightgray;
    border: 1px solid darkcyan;
    border-radius: 5px;
  }
  .icon-block .icon-title {
    font-size: 14px;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    white-space: nowrap;
    background-color: lightblue;
    color: darkcyan;
    padding: 5px 10px 5px 10px;
    border-radius: 5px;
    transition: visibility 0.2s, opacity 0.2s;
    transform: translate(50%, 60px); /* Adjust for proper positioning */
  }
  .middle-menu-icons .nav-item:hover .icon-title {
    visibility: visible;
    opacity: 1;
  }

  #left-panel,
  #right-panel {
    height: calc(100vh - 55px); /* Adjust 60px to the height of your navbar */
    overflow-y: auto; /* Enable vertical scrolling if content overflows */
    overflow-x: hidden; 
  }

  #right-panel-content {
    height: calc(100% - 42px); /* Adjust 32px to the height of your right panel header */ 
    overflow-y: hidden; /* Enable vertical scrolling if content overflows */
    overflow-x: hidden;
    padding-top: 0;

  }

  .chart-table-container{
    display: flex;
    flex-direction: column;
    height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;
  }
  #right-panel-header-start-btns .btn{
    border-radius: 0;
    border: transparent;
    background-color: transparent;
    color: /*verydarkgray*/ #343a40;
    padding: 2px 8px 2px 0;
  }



  .data-table-btn-separator {
    margin: 0 4px 0 4px;
    background-color: transparent;
    border: transparent;
    color: gray;
    pointer-events: none; /* This will prevent the element from being clickable */
    opacity: 0.5; /* Optional: This will make the element look faded, suggesting it is disabled */

  }

  .row-icon {
    display: flex;
    color: gray;
    justify-content: flex-start;
    align-items: center;
    cursor: pointer;
  }

  .row-icon:hover {
    color: blue;
  }

  .data-table-btn:hover {
    color: lightgray;
    background-color: /*color of active button in DataTables*/ #007bff;

  }

  .data-table-btn:focus {
    color: #fff;
    background-color: #0056b3;
    border-color: #0041a1;
  }

  
  
  /* Mobile styles */
  @media (max-width: 767px) {
    #left-panel {
      padding: 6px 16px 6px 14px;
      width: 100%;
      border-bottom: 1px solid darkcyan;
    }
    #right-panel {
      padding: 6px 14px 6px 12px;
      width: 100%;

    }
  }

  /* Tablet styles */
  @media (min-width: 768px) and (max-width: 991px) {
    #left-panel {
      padding: 6px 6px 6px 14px;
      width: 40%;
      float: left;
      border-right: 1px solid darkcyan;
    }
    #right-panel {
      padding: 6px 14px 6px 12px;
      width: 60%;
      float: right;
    }
  }

  /* Desktop styles */
  @media (min-width: 992px) {
    #left-panel {
      padding: 6px 6px 6px 14px;
      width: 25%;
      float: left;
      border-right: 1px solid darkcyan;
    }
    #right-panel {
      padding: 6px 18px 6px 8px;
      width: 75%;
      float: right;
    }
  }

  
  #right-panel pre{
    font: inherit
    }

  .col-form-label{
    word-break: break-all;
    text-overflow: ellipsis;
  }

  .ckeditor{
    height: 60vh; /* Set the height you want */
  }

  .ckeditor .ck-content {
    height: calc(100% - 2px); /* Adjust this value to account for the toolbar height */
    /* For example, if the toolbar height is approximately 40px, use: */
    /* height: calc(100% - 40px); */
  }


  .form-label-header{
    text-overflow: ellipsis;
    padding: 0 4px 0 0;
    white-space: nowrap;
    overflow: hidden;
  }
  .input-header-wrapper{
    display: flex;
    border: 1px solid lightgray;
    border-radius: 4px;    
    align-items: center;
    margin: 0 2px 0 0;
    padding: 0 4px 0 4px;
    width: 20%;

  }

  .form-control-header {
    margin: 0 0 1px 0;
    padding: 0 2px 0 0;
    font: inherit;
    border-radius: 2px;
    overflow: hidden;  
    
    }
  .form-control-header select{
      width: 100%; /* This forces the select to fit its parent */
      /* If the text is too long, it will be truncated */
      text-overflow: ellipsis;
      padding: 3px 0 3px 2px;
      overflow: hidden;
      white-space: nowrap;
      border: hidden;
    }
  .form-control-header input {
      width: 100%; /* This forces the select to fit its parent */
      /* If the text is too long, it will be truncated */
      text-overflow: ellipsis;
      padding: 3px 0 3px 2px;
      overflow: hidden;
      white-space: nowrap;
      border: hidden;
      text-align: right;

    }
  


  .content-form {
    display: flex;
    flex-direction: column;
    height: calc(100% - 60px);
    overflow-y: auto;
    overflow-x: hidden;
  }

  .left-panel-header-btn {
    margin: 0 0 0 16px;
    padding: 2px 0 2px 0;
    border: none;
    background-color: transparent;
    color: gray;

  }

  .left_panel_header_btns .left-panel-header-btn {
    margin: 0 0 0 16px;
    padding: 0 0 0 0;
    border: none;
    background-color: transparent;
    color: gray;

  }

  .left_panel_header_btns .left-panel-header-btn:hover .fas {
    color: blue;
  }


  .btn-check {
    border: 1px solid red; /*#ced4da;*/
    }

  #container-chat {
    display: flex;
    justify-content: space-between;
    flex-direction: column; 
    margin: 8px 12px 0 0;
    height: calc(100% - 60px); 

  }

  #chat-messages{
    flex-direction: column;
    flex-grow: 1;
    overflow-y: auto; 
    
    width: 100%;
  }

  #user-message-input-form {
    display: flex;
    box-sizing: border-box;  
    margin: 2px 0 6px 0;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
  }
  #chat-input {
    padding: 6px;
    margin: 0;
    border-color: green;

  }
  .user-message-input {
    width: 96%;
    padding: 6px;
    border: 1px solid green;
    border-radius: 4px;
    box-shadow: 2px 2px 1px 0px lightgray;
  }

  .over-limit {
    color: red;
    align-self: flex-end;
  }

  .user-message-input:focus {
    outline: none;
  }

  .message-item .fa-user {
    color: lightgreen;
    margin: 0 0 0 12px;

  }

  #user-message-input-form button {
    border: none;
    align-content: center;
    color: green;
    background-color: transparent;

  }

  .user-message {
    margin-bottom: 10px;
    width: 60%;
    display: flex;
    justify-content: flex-end;
    margin-left: auto;
    padding: 4px 4px 4px 4px;
  }

  .user-message-text {
    display: flex;
    background-color: rgb(193, 253, 193);
    border-radius: 4px;
    padding: 6px 6px 8px 6px;
    color: black;
    max-height: 120px; /* 24px * 3 lines */
    overflow: hidden;
    text-overflow: ellipsis;
    font-family:'Segoe UI', Tahoma, Verdana, Arial, Helvetica, sans-serif;
    box-shadow: 1px 1px 1px 0px lightgray;
    width: 100%;
    overflow-y: auto; 
  }


  .modal.fade .modal-dialog{
    max-width: 100vw;
    max-height: 100vh;
    transition: none;
    transform: none;
  }


  /* Modal Content */
  .modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 4px;
    border: 1px solid #888;
    width: 80%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    border-radius: 4px; 
    font-size: x-small;
  }


  .modal-header {
    padding: 2px 16px;
    background-color: /*very light gray*/ #f8f9fa;
    color: darkgray;
    font-weight: bold;
  }


  .modal-body {
    padding: 2px 16px;
    background-color: #fefefe;
    color: black;
    height: calc(80vh - 10px);
  }

  .modal-footer {
    padding: 2px 16px;
    background-color: /*very light gray*/ #f8f9fa;
    color: darkgray;
  }

  .modal-fullscreen {
    width: 100vw;
    height: 100vh;
    max-width: none;
    margin: 0;
  }

  .modal-fullscreen .modal-content {
      height: 100%;
      border: 0;
      border-radius: 0;
      margin: 0;
      width: 100%;
  }

  .modal-fullscreen .modal-body {
    height: calc(100% - 50px); /* Adjust based on your modal-header and modal-footer height */
    overflow-y: hidden;
    margin: 0
  } 

  #fileViewerImage {
    display: block; /* Use block display */
    width: auto; /* Set width to auto */
    height: auto; /* Set height to auto */
    max-width: 100%; /* Maximum width is 90% of the container */
    max-height: 100%; /* Maximum height is 90% of the container */
    margin: auto; /* Auto margins for horizontal centering */
  
    /* Centering vertically */
    position: absolute; /* Use absolute positioning within a relative container */
    top: 50%; /* Position at 50% from the top */
    left: 50%; /* Position at 50% from the left */
    transform: translate(-50%, -50%); /* Offset the image by half its width and height */
    object-fit: contain; /* Ensure the image is scaled while maintaining its aspect ratio */
  }
  /* the following CSS is for the PDF viewer, pdf file is centered within the container, */

  .message-to-ai-container{
    border-top: 1px solid darkgray;
    border-bottom: 1px solid darkgray;
    padding: 6px 14px 6px 0;
  }

  .message-to-ai-label{
    color: rgb(119, 119, 119);
    font-weight: bold;
  }

  .message-to-ai-value{
    color: blue;
  }

  .checkbox-group{
    padding: 0 0 0 16px;
    width: 100%;
  }

  .slidecontainer{
    padding: 0 0 0 0;
    width: 100%;
  }

  .ai-message {
    margin-bottom: 10px;
    width: 100%;
    display: flex;
    justify-content: flex-start;

  }

  .ai-message-text {
    background-color: whitesmoke;
    text-align: left;
    color: rgb(0, 36, 36);
    padding: 6px 6px 6px 6px;
    font-family:'Segoe UI', Tahoma, Verdana, Arial, Helvetica, sans-serif;
    box-shadow: 1px 1px 1px 0px lightgray;
    border-radius: 4px;
  
  }

  .ai-message-text code {
    font-size: inherit;
    font-family: inherit;
    background-color: rgb(240, 240, 240);
    border-radius: 4px;
    padding: 1px 4px 1px 4px;
    color: inherit;
  }

  .ai-message-text .highlight {
    background-color: white;
    padding: 6px;
    margin: 3px;
    border-radius: 6px;
    font-size: x-small;
  }

  .ai-message-text span {
    font-size: xx-small;
  }

  .ai-message-text .c1 {
    font-size:x-small;
  }

  .ai-message img {
    display: flex;
    width: 20px;
    height: 20px;
    margin: 6px 6px 0 0;
  }

  .flashed-message {
    max-width: 100vw;
    border: 1px solid green;
    overflow: hidden;
    border-radius: 4px;
    font-size: x-small;
    height: 10vh;
    display: none;
  }

  .transition-height {
    transition: height cubic-bezier(1, 0, 0, 1) ease;
  }
  
  .container-item {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    }  

  .row.col-4 {
    border: 1px solid green;
    border-radius: 4px;
    padding: 10px 10px 10px 10px;

    }  

   .right-panel-header {
      display: flex;
      width: 100%;
      height: 32px;
      margin: 0 0 6px 2px;
      padding: 5px 0 5px 0;
      font-weight: bold;    
      align-items: center;  
      justify-content: space-between;
      border-bottom: 1px solid darkgray;
    }  

    .left-panel-header{
      display: flex;
      width: 100%;
      height: 32px;
      margin: 0 0 10px 2px;
      padding: 5px 0 5px 0;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid darkgray;
    }

  .left-panel-header-title {
    flex-grow: 1;
    color: gray;
    font-size: small;
    font-weight: bold;
  }

  .left-panel-header-btn-div {
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: gray;
  }


 .left-panel-header-btn, .right-panel-header-btn {
    margin: 0 0 0 16px;
    border: none;
    background-color: transparent;
    color: gray;
  }


  .left-panel-header-btn:hover, .right-panel-header-btn:hover {
    .fa, .fas, .far, .fa-regular, .fa-solid{
      color: blue;
      box-shadow: 1px 1px 1px 0px lightgray;
    }
  }

  .btn-display-option.active {
    background-color: lightgray;
}

  .form-control {
    width: 100%;
    margin: 0 0 6px 0;
    padding-left: 6px;
    font: inherit;
    border-radius: 4px;
    }  
  
  .form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
    }

  .select2-container--focus  {
    
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
  }

  p
    {
    display: flex;
    flex-direction: column;
    color: darkgray;
    font-size: inherit;
    }  

  .section h1 {
    display: flex;
    align-content: center;
    justify-content: center;
    color: darkgray;
    
    }

  
  .form-label {
    padding: 4px 0 0 0;
    word-wrap: break-word;
    }  

  .text-danger {
    margin-bottom: 8px;
  }

  .left-panel-item {
      display: flex;
      justify-content: space-between;  /* Optional: use if you want the items spread across the line */
      align-items: center;  /* Optional: use if you want the items vertically centered */
      border: 2px lightgray solid;
      border-radius: 4px;
      padding: 4px 4px 4px 0px;
      margin: 4px 0 4px 0;
      cursor: pointer;
    }

  .left-panel-item .item-info-span {
    padding: 2px 2px 2px 4px;
    white-space: nowrap;       /* Prevents the text from wrapping */
    overflow: hidden;          /* Hides the overflowed text */
    text-overflow: ellipsis;   /* Shows '...' to indicate there is more text */
    width: min-content;
    }  

  .left-panel-item .left-panel-item-btns {
    display: inline;
    white-space: nowrap;       /* Prevents the text from wrapping */
   }

  .left-panel-item.selected {
    border-color: blue; 
    }

  .btn-item-edit, .btn-item-delete {
    background-color: transparent;
    border: transparent;
    }


  .btn-message{
    background-color: transparent;
    border: transparent;
    padding: 0 0 0 0; 

  }

  .btn-item-score-ai-response-up:hover .fa-regular {
    color: red;
  }

  .btn-item-score-ai-response-down:hover .fa-regular {
    color: green;
  }

  .fas, .fa-solid{
    color: darkgray;
    transition-duration: 0.4s; /* Animation for hover */
    }

  .fa-regular {
    color: darkgray;
    margin: 0 0 0 0;
    display: inline-block;
    color: lightgray;
    transition-duration: 0.4s; /* Animation for hover */

    }

 
  .btn-item-edit:hover .fas, 
  .btn-item-delete:hover .fas, 
  .btn-item-delete-ai-response:hover .fa-regular,
  .btn-item-copy-ai-response:hover .fa-regular {
      color: blue;
    }

  .message-btn-grp {
    display: flex;
    padding: 6px 0 0 0;
    margin: 0 0 0 0;
    font-size: xx-small;
    color: lightgray;
    justify-content: right;
    }
  .btn-input-area{
    display: flex;
    padding: 6px 0 0 0;
    margin: 0 0 0 0;
    font-size: xx-small;
    color: lightgray;
    justify-content: left;

  }

  .ai-response-statics {
    display: flex;
    padding: 6px 0 0 0;
    margin: 0 0 0 0;
    font-size: xx-small;
    color: lightgray;
    align-items: flex-start;

  }

  .ai-message-btns {
    display: flex;
    flex-direction: column;
    width: 80%;

  }
  .btn-message:hover .fa-regular, .btn-message:hover .fa-solid {
    color: blue;
  }

  .tab-content {
    height: calc(100vh - 180px);
    overflow-y: auto;
    overflow-x: hidden;
  }

  .list-value, .list-label  {
    padding-top: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid lightgray;
  }

  .list-label  {
    padding-left: 14px;
    word-wrap: break-word;
  }

  #btn-item-cancel-update,  #btn-item-save-update, #btn-item-save-new, #btn-item-cancel-new {
      border: 1px solid; /* remove default button border */
      padding: 5px 20px 5px 20px; /* vertical and horizontal padding */
      margin: 10px 10px 0 0;
      border-radius: 4px; /* rounded corners */  
      width: 100px;
    }
  
    
  #btn-item-add:hover {
      background-color: #0046d5; /* change background color on hover */
      color: white;
    }

  .conv-details {
    display: inline-flexbox;
    border-bottom: 1px solid;
    border-color: green;
    height: fit-content;
    margin: 6px 0 6px 10px;
    padding: 6px 0 6px 0;
    width: 100%;
  }

  .navbar-brand {
    background-color: red;
    padding: 0 6px 0 6px;
    color: rgb(238, 238, 238);
    border-radius: 3px; 
    height: 24px;
    font-size: 16px;
    font-weight: bold;

  }

  .badge {
    display: flex;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
  }

  .navbar-text {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .dropdown-item{
    font-size: small;
  }

  .dropdown-toggle {
    color: black;

  }

  .container-right-panel {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 5px 0 5px 0; /* vertical and horizontal padding */
    margin: 0 0 10px 0;
    font-weight: bold;
    border-bottom: solid darkgray 1px;
    font-size: inherit;
  }

  .tab-content {
    padding-top: 10px;
  }

  /* Custom CSS to override Select2 width */
  span.select2.select2-container.select2-container--default {
    width: 100% !important;
  }

  .container-right-panel .form-control {
    width: 100%;
    margin: 0 0 8px 0;
    }  

  .container-right-panel .form-check {
    margin: 0 0 10px 0;
    }  

  .container-right-panel .form-label {
    width: 100%;
    padding: 4px 0 0 0;
    }  
  .text-danger {
    margin-bottom: 8px;
  }

.flash-message-box.info {
    border: 1px solid darkblue;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    background-color: lightblue;
    color: darkblue;
}

.flash-message-box.error {
    border: 1px solid darkred;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 10px;
    background-color: pink;
    color: darkred;
}

.empty-page{
  font: large italic;
  color: darkgray;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.btn-wrapper {
  border: solid 1px lightgray;
  border-radius: 4px;
  padding: 2px 3px 2px 3px;
  margin: 2px 2px 2px 2px;
  display: flex;
  word-wrap: none;

}

.btn-wrapper-header {
  border: solid 1px lightgray;
  border-radius: 4px;

  display: flex;
  word-wrap: none;
  font-size: x-small;

}

.btn-wrapper:hover .fa-tags{
  color: gray;
  pointer-events: none;

}

.select2-container .select2-selection--single {
  height: 22px;
  margin: 0 0 12px 0;
  border-radius: 2px;
  border: 1px solid;
  border-color: rgb(118, 118, 118), 
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 20px;
}
.select2-dropdown { 
  font-size: xx-small;
}

.select2-container .select2-selection--single .select2-selection__rendered {
  display: block;
  padding-left: 4px;
  padding-right: 20px;

}

.select2-container .select2-selection--multiple {
  border: var(--bs-border-width) solid var(--bs-border-color);
  border-radius: 4px;
  margin: 0 0 6px 0;

}

.margin-multiple {
  margin: 4px 0 6px 0;
}


#select2-select-tags-container{
  height: fit-content;
  padding: 0;
  margin:0;
}

.no-conversation {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  font-size: x-large;
  color: darkgray;

}

.btn {
  font-size: small;
}

.form-user-input-btn{
  display: flex;
  justify-content: space-between;
  margin: 0 40px 0 0;
  font-size: small;
}
.loader {
  border: 9px solid #f3f3f3; /* Light grey */
  border-radius: 50%;
  width: 18px;
  height: 18px;
  animation: spin 2s linear infinite;
  margin: 6px 0 0 0;
  background-color: #f3f3f3;
  display: block;
  transition: background-color 1s;
}


@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.success {
  background-color: lightgreen; /* Green */
  border-color: lightgreen; /* Green */
  transition: background-color 1s, border-color 1s;
}

.failure {
  background-color: #FF0000; /* Red */
  border-color: #FF0000;
}

.running {
  border-top: 9px solid lightgreen; /* Green */
}

.form-row {
  padding: 0 0 0 0;
  margin: 0 0 12px 0;
  border-bottom: 1px solid lightgray;
}
.total {
  font-size: x-small;
  font-weight: bold;
  margin: 0 0 0 10px;
  padding: 0 0 0 0;
}
.pagination {
  margin: 16px 0 10px 0;
  font-size: x-small;

}

.pagination-span {
  margin: 0 10px 0 0;
  padding: 0 0 0 0;
  font-size: x-small;
}

.btn-previous {
  margin: 0 10px 0 0;

}

.container-chart {
  height: 50vh;
}

.index-area {
  display: flex;
  flex-direction: column;
  height: 100vh;
  justify-content: center;
}

.negative {
  color: red;
}

/* Style for big thumbnails 
.thumbnail-view .file-item {
  width: 10%;
  padding: 10px;
  flex-direction: column;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  ;
}
*/



/*
.thumbnail-view img {
  width: 100px;
  height: 100px;
  margin-right: 10px;

}

*/
/* Style for list view 
.list-view .file-item {
  display: flex;
  align-items: center;
  padding: 5px;
  border-bottom: 1px solid #ccc;
}
*/

/* Style for grid view 
.grid {
  width: calc(33.333% - 20px);
  margin: 10px;
  float: left;
  text-align: center;

}
*/

/*
.grid-view img {
  height: 100px;
  max-width: 100%;
  height: auto;
}
*/




.selectable {
  cursor: pointer; /* Changes the cursor to indicate it can be clicked */
  outline: none; /* Removes the default focus outline */
}

.selectable:focus, .selectable:hover {
  border: 1px solid #007bff; /* Adds a blue border on focus or hover */
  box-shadow: 0 0 3px #007bff; /* Adds a slight shadow for visual feedback */
}