
.chat-ai .open-sidebar {
  position: absolute;
  display: none;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  top: 20px;
  left: 0;
  width: 50px;
  height: 50px;
  background-color: #2e3137;
  border-radius: 0 5px 5px 0;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
  z-index: 2;
}
.chat-ai .open-sidebar i {
  color: #fff;
  font-size: 20px;
}
.chat-ai .open-sidebar:hover {
  background-color: #292c31;
}
.chat-ai .conversations {
  position: relative;
  display: flex;
  flex-flow: column;
  align-items: center;
  height: 100%;
  z-index: 2;
}

.chat-ai .content .messages .message .wrapper .details .text pre code {color: white;}

.chat-ai .conversations .list {
  display: flex;
  flex-flow: column-reverse;
  flex: 1;
  overflow-y: auto;
  width: 100%;
  height: 100%;
  padding: 20px 0;
}
.chat-ai .conversations .list .conversation {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 4px 16px;
  color: #000;
  font-weight: 600;
  margin: 0 auto 5px auto;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  margin: 5px 0px;
}
.chat-ai .conversations .list .conversation i {font-size: 25px;}
.chat-ai .conversations .list .conversation.active {color:var(--bs-primary)}

.chat-ai .content {
  position: relative;
  width: 100%;
  min-height: 250px;
}
/*.chat-ai .content::after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 200px;
  width: 100%;
  background: linear-gradient(to top, #ffffff 50%, transparent);
}*/
.chat-ai .content .welcome {
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  font-size: 20px;
  padding-top: 30px;
  padding-bottom: 30px;
}
.chat-ai .content .welcome h1 {
  display: flex;
  align-items: center;
  margin: 0;
  font-size: 25px;
  font-weight: 300;
}
.chat-ai .content .welcome h1 span {
  color: var(--bs-primary);
}
.chat-ai .content .welcome h1 .ver {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 35px;
  width: 55px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  border-radius: 5px;
  margin-left: 15px;
  font-weight: 500;
  background-color: #383c42;
  background-clip: border-box;
  -webkit-background-clip: border-box;
  -moz-background-clip: border-box;
  -webkit-text-fill-color: currentcolor;
  -moz-text-fill-color: currentcolor;
}
.chat-ai .content .welcome p {
  margin: 0;
  text-align: center;
  font-size: 14px;
  padding: 20px 25%;
}
.chat-ai .content .welcome p a {
  color: #c5c8ce;
  font-size: inherit;
  text-decoration: none;
  border-bottom: 1px dotted #c5c8ce;
}
.chat-ai .content .welcome p a:hover {
  color: #e1e2e5;
}
.chat-ai .content .welcome .open-database {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  padding: 12px 15px;
  background-color: #316bc2;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: background-color .2s ease;
}
.chat-ai .content .welcome .open-database i {
  margin-right: 8px;
}
.chat-ai .content .welcome .open-database:hover {
  background-color: #2e64b6;
}
.chat-ai .content .messages {
  display: flex;
  flex-flow: column;
  flex-direction: column-reverse;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding-bottom: 60px;
  min-height: 300px;
  justify-content: flex-end;
}

.chat-ai .content .messages .text h1 {
font-size: 25px;
font-weight: 700;
}
.chat-ai .content .messages .text h2 {
  font-size: 22px;
  font-weight: 700;
  }
  .chat-ai .content .messages .text h3 {
    font-size: 19px;
    font-weight: 700;
    }
    .chat-ai .content .messages .text h4 {
      font-size: 16px;
      font-weight: 700;
      }
      .chat-ai .content .messages .text h5 {
        font-size: 13px;
        font-weight: 700;
        }

.chat-ai .content .messages .conversation-title {
  display: flex;
  align-items: center;
  justify-content: center;
  word-break: break-all;
  padding: 10px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f3f3f3;
}
.chat-ai .content .messages .conversation-title h2 {
margin: 0;
line-height: 15px;
}
.chat-ai .content .messages .conversation-title h2 .text {
  font-size: 18px;
  font-weight: 600;
  color:var(--bs-primary);
  padding: 5px 10px;
}
.chat-ai .content .messages .conversation-title h2 .text:focus-visible {
  outline: none;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.chat-ai .content .messages .conversation-title h2 i {
  cursor: pointer;
  position: relative;
  font-size: 18px;
  top: 3px;
  margin-left: 10px;
  color: #bbbbbb;
}
.chat-ai .content .messages .conversation-title h2 i:hover {
  color: var(--bs-primary);
}
.chat-ai .content .messages .message {
  padding: 25px;
}
.chat-ai .content .messages .message .wrapper {
  display: flex;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}
.chat-ai .content .messages .message .wrapper .avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  max-width: 50px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #efefef;
  font-weight: 500;
}
.chat-ai .content .messages .message .wrapper .details {
  flex: 1;
}
.chat-ai .content .messages .message .wrapper .details .date {
  font-size: 12px;
  font-weight: 500;
  padding: 0 25px;
  color: #8f9196;
}
.chat-ai .content .messages .message .wrapper .details .text {
  padding: 5px 25px;
  width: 100%;
}
.chat-ai .content .messages .message .wrapper .details .text pre {
  display: block;
  width: 100%;
  padding: 15px 20px;
  border-radius: 5px;
  background-color: #2d2f34;
  margin: 0;
}
.chat-ai .content .messages .message .wrapper .details .text pre code {
  text-indent: 40px;
  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  font-size: 14px;
}
.chat-ai .content .messages .message .wrapper .details .text .tokens {
  display: inline-block;
  padding: 2px 5px;
  border-radius: 4px;
  background-color: #ebebeb;
  font-size: 10px;
  font-weight: 500;
  margin-top: 6px;
  color: #8b8b8b;
}
.chat-ai .content .messages .message.assistant {
  background-color: #fbfbfb !important;
  border-radius: 8px;
}
.chat-ai .content .messages .message.assistant .wrapper .avatar {
  background: rgb(255,126,0);
background: -moz-linear-gradient(180deg, rgba(255,126,0,1) 0%, rgba(255,66,0,1) 100%);
background: -webkit-linear-gradient(180deg, rgba(255,126,0,1) 0%, rgba(255,66,0,1) 100%);
background: linear-gradient(180deg, rgba(255,126,0,1) 0%, rgba(255,66,0,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ff7e00",endColorstr="#ff4200",GradientType=1);
  color: white;
  font-size: 20px;
  font-weight: 600;
}
.chat-ai .content .messages .message.assistant .wrapper .text .blink {
  animation: blink 1s infinite;
}
@keyframes blink {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.chat-ai .content .message-form {
  position: relative;
  width: 85%;
  display: inline-block;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  border-radius: 5px;
  z-index: 1;
}



.chat-ai .error-toast, .chat-ai .success-toast {
  display: flex;
  padding: 12px 15px;
  max-width: 100%;
  position: fixed;
  top: 25px;
  right: 25px;
  background-color: #ffc3c3;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-left: 3px solid #df4747;
  font-weight: 500;
  font-size: 14px;
  color: #bb3c3c;
  opacity: 1;
  transition: opacity 5s ease;
}
.chat-ai .success-toast {
  background-color: #c3ffdc;
  border-left: 3px solid #4bcc81;
  color: #50ad77;
}
.chat-ai-modal {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  display: none;
  z-index: 999999;
  align-items: center;
  justify-content: center;
}
.chat-ai-modal .content {
  border-radius: 5px;
  overflow: hidden;
  transform: scale(0.5);
  background-color: #3c4047;
  box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.03);
  width: 400px;
}
.chat-ai-modal .content .heading {
  display: flex;
  padding: 20px;
  margin: 0;
  font-weight: 500;
  justify-content: space-between;
  color: #fff;
  border-bottom: 1px solid #464a52;
  align-items: center;
}
.chat-ai-modal .content .heading .modal-close {
  font-size: 24px;
  line-height: 24px;
  padding-bottom: 4px;
  cursor: pointer;
  color: gray;
}
.chat-ai-modal .content .heading .modal-close:hover {
  color: white;
}
.chat-ai-modal .content .footer {
  display: flex;
  border-top: 1px solid #464a52;
  background-color: #40444c;
  padding: 20px;
}
.chat-ai-modal .content form {
  display: flex;
  flex-flow: column;
  padding: 20px;
}
.chat-ai-modal .content form.file-manager-editor {
  padding: 0;
}
.chat-ai-modal .content form label {
  color: #fff;
  padding-bottom: 10px;
  font-size: 14px;
}
.chat-ai-modal .content form input {
  width: 100%;
}
.chat-ai-modal .content form input, .chat-ai-modal .content form select {
  font-size: 14px;
  border: none;
  border-radius: 4px;
  padding: 0 8px;
  height: 38px;
  margin-bottom: 15px;
  background-color: #535963;
  color: #b1b3b5;
}
.chat-ai-modal .content form input[type="checkbox"] {
  width: auto;
}
.chat-ai-modal .content form .group {
  display: flex;
}
.chat-ai-modal .content form .group > :first-child {
  margin-right: 10px;
}
.chat-ai-modal.large .content {
  width: 900px;
}
.chat-ai-modal.medium .content {
  width: 600px;
}
.chat-ai-modal.open {
  display: flex;
}
.chat-ai-modal.open .content {
  transform: scale(1);
  transition: all 0.2s ease;
}
.chat-ai-modal .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  appearance: none;
  cursor: pointer;
  border: 0;
  background-color: #316bc2;
  color: #fff;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  height: 38px;
}
.chat-ai-modal .btn:hover {
  background-color: #2e64b6;
}
.chat-ai-modal .btn.alt {
  color: #fff;
  background-color: #31343a;
}
.chat-ai-modal .btn.alt:hover {
  background-color: #2f3237;
}
.chat-ai-modal .btn.disabled {
  pointer-events: none;
  background-color: #b1b3b4;
}
.chat-ai-modal .btn.disabled:hover {
  background-color: #a9abad;
}
.chat-ai-modal .btn.right {
  margin-left: auto;
}

#messagescont {flex-direction: column;}
#messagescont .message {position: relative;}
.mactions {position: absolute;right: 12px;top:15px}
.mactions a:hover {color: black;}
.mactions i {margin: 0 2px;}

.tempbar {
  margin-bottom:25px;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
}


.tempbar h3 {
  display: flex;
  align-content: center;
  align-items: flex-end;
  font-size: 16px;
  justify-content: space-between;
  width: 110px;
  margin:0px;
}
.tempbar img {width:18px;}

.tempbar i {margin-left: 4px;
  margin-top: 1px;
  font-size: 20px;
  cursor: pointer;
  color: #ffc20d;}


input[type=range] {
  outline: 0;
  border: 0;
  border-radius: 8px;
  width: 230px;
  max-width: 100%;
  transition: box-shadow 0.2s ease-in-out;
  display: inline-block;
  margin: 0 8px;
}

  input[type=range] {
    overflow: hidden;
    height: 15px;
    -webkit-appearance: none;
    background-color: #ddd;
  }
  input[type=range]::-webkit-slider-runnable-track {
    height: 15px;
    -webkit-appearance: none;
    color: #444;
    -webkit-transition: box-shadow 0.2s ease-in-out;
    transition: box-shadow 0.2s ease-in-out;
  }
  input[type=range]::-webkit-slider-thumb {
    width: 30px;
    -webkit-appearance: none;
    height: 15px;
    cursor: ew-resize;
    background: #fff;
    box-shadow: -340px 0 0 320px var(--bs-primary), inset 0 0 0 40px #040606;
    border-radius: 8px;
    -webkit-transition: box-shadow 0.2s ease-in-out;
    transition: box-shadow 0.2s ease-in-out;
    position: relative;
    cursor: pointer;
  }

  input[type=range]::-moz-range-thumb {
    width: 30px;
    -webkit-appearance: none;
    height: 15px;
    cursor: ew-resize;
    background: #fff;
    box-shadow: -340px 0 0 320px var(--bs-primary), inset 0 0 0 40px #040606;
    border-radius: 8px;
    -webkit-transition: box-shadow 0.2s ease-in-out;
    transition: box-shadow 0.2s ease-in-out;
    position: relative;
    cursor: pointer;
  }

  input[type=range]:active::-webkit-slider-thumb {
    background: #fff;
    box-shadow: -340px 0 0 320px var(--bs-primary), inset 0 0 0 3px var(--bs-primary);
  }

  input[type=range]:active::-moz-range-thumb {
    background: #fff;
    box-shadow: -340px 0 0 320px var(--bs-primary), inset 0 0 0 3px var(--bs-primary);
  }

input[type=range]::-moz-range-progress {
  background-color: var(--bs-primary);
  height: 15px;
  -webkit-appearance: none;
  color: #444;
  -webkit-transition: box-shadow 0.2s ease-in-out;
  transition: box-shadow 0.2s ease-in-out;
}
input[type=range]::-moz-range-track {
  background-color: #dedddd;
}
input[type=range]::-ms-fill-lower {
  height: 15px;
  -webkit-appearance: none;
  color: #444;
  -webkit-transition: box-shadow 0.2s ease-in-out;
  transition: box-shadow 0.2s ease-in-out;
  background-color: var(--bs-primary);
}
input[type=range]::-ms-fill-upper {
  background-color: #dedddd;
}

#num {
    background: var(--bs-primary);
    display: inline-block;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 14px;
    color: white;
    font-weight: 600;
    line-height: 13px;
    width: 36px;
    text-align: center;
}

label.customupload input[type="file"] {
  display: none;
}

.customupload {
  position: relative;
  background-size: cover;
  padding: 9px 8px;
  margin: 0px 8px;
  display: inline-block;
  line-height: 14px;
  min-width: 44px;
  min-height: 45px;
}

.customupload :invalid + span {
  color: #A44;
}
.customupload :valid + span {
  color: #4A4;
}

.curemove {
  display: none;
  position: absolute;
  z-index: 999;
  right: -3px;
  top: -11px;
  border: 0;
  background: white;
  width: 21px;
  height: 22px;
  padding: 0px;
  text-align: center;
  border-radius: 17px;
  color: #e97878;
}

.graphicai {
  width:31%;
  display: inline-block;
    margin: 1%;
    position: relative;
    overflow: hidden;
}
.graphicai img {
  border-radius:10px;
  width: 100%;
  cursor: zoom-in;
 }

 .graphicai .overlay {
  -webkit-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
  display: flex;
  height: auto;
  position: absolute;
  bottom: -50%;
  width: 100%;
  border-radius: 10px;
  justify-content: space-between;
  align-items: center;
  color: white;
  background: rgba(0, 0, 0, 0.55);
  padding: 15px;
 }
 .graphicai .overlay p {margin: 0;    font-size: 12px;}
 .graphicai:hover .overlay {
  bottom: 0%;
 }
 .graphicai .overlay i {font-size: 35px;}
 .graphicai .overlay a {color: white;}
 .graphicai .overlay a:hover {color:#ccc;}

 .graphicai.empty {
  border: 1px solid #ff7e00;
  border-radius: 10px;
 }

 .chat-ai .content .messages.graphics .message.assistant .wrapper .details .text {
  padding: 5px 10px;
}

.graphicai .blinko {
  display: flex;
  text-align: center;
  min-height: 150px;
  flex-direction: column;
  align-items: center;
    justify-content: center;
}
.graphicai .blinko img {width: 40px !important;position:absolute;}

button.gwbutton, button.pasteto {
  padding: 8px !important;
}
button.gwbutton i {
margin: 0;
font-size: 18px;
 }
 button.gwbutton:disabled {
  color:#d3d3d3;
 }


 button.gwbutton .spinner-border {
  margin: 0 !important;
 }

 #page-template .graphicai {
  width: 20%;
 }
 .gwelement {width: 100%;padding: 0px 20px;margin-top: 10px;}

 .gwelement .graphicai .overlay {
bottom:0;
padding: 5px 15px;
 }
 .gwelement .graphicai .overlay i {
  font-size: 22px;
}

 #page-template .graphicai .blinko {
  min-height: 90px;
 }


 #customuploadfiles {position: relative;}
#upfiles {
  position: absolute;
  top: 15px;
  width: 100%;
  text-align: center;
  left: 0;
  font-weight: 700;
    font-size: 16px;
}

 .attachfiles {
  display: block;
  margin-top: 4px;
 }
 .attachfiles a {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 8px;
  background: #f4f4f4;
  font-size: 12px;
  font-weight: 500;
  margin-right: 10px;

 }

.hinttxtoch {
  position: absolute;
  top: 30px;
  left: -4px;
  height: 20px;
  background: white;
  padding: 2px;
  border-radius: 20px;
  cursor: pointer;
}

@media screen and (max-width: 1400px) {
  .chat-ai .content .message-form {width: 75%;}
}

 @media screen and (max-width: 800px) {
  .graphicai {
    width: 48%;
  }
  .chat-ai .open-sidebar {
    display: flex;
  }
  /*.chat-ai .conversations {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
  }*/
  .chat-ai .content .messages .message {
    padding: 10px;
  }
  .chat-ai .content .messages .message .wrapper .avatar {
    min-width: 40px;
    max-width: 40px;
    width: 40px;
    height: 40px;
  }
  .chat-ai .content .messages .message .wrapper .details .date {
    padding: 0 15px;
  }
  .chat-ai .content .messages .message .wrapper .details .text {
    padding: 5px 15px;
  }

  .chat-ai .content .message-form {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 0;
  }
  .chat-ai .content .message-form textarea {min-height: 100px !important;}
  .chat-ai .content .messages .message .wrapper {
    flex-direction: column;
  }
  .chat-ai .content .messages .message.assistant .wrapper .avatar, .chat-ai .content .messages .message .wrapper .avatar {
    margin: 10px;
  }
  .card-body {
    padding: 1.5rem 0.7rem;
}
.card-header {
  padding: 1.5rem 0.7rem;
   }
.chat-ai .content .messages {padding-bottom: 30px;overflow: hidden;}
.chat-ai .content .messages .text img {width:100% !important;}

#chattxtarea {
  flex-direction: column;
}
#chattxtarea textarea {
  width: 100%;
  border-radius: .375rem;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
#chattxtarea #chatsubmitbutton {
  border-radius:1.5rem;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

}


@media screen and (max-width: 600px) {
  .graphicai {
    width: 100%;
  }
  #page-template .graphicai {
    width: 33.3%;
   }

}