
.underlin{margin-right:-3rem;margin-bottom:-6rem;margin-left:-3rem;padding-right:3rem;padding-bottom:3rem;padding-left:3rem;background-image:url("https://promptdb.ai/public/images/underline.svg");background-position:50% 50%;background-size:80%;background-repeat:no-repeat}
.loomd{position:relative;width:100%;display:flex;align-items:center;justify-content:center;background:no-repeat padding-box #fff;border:2px solid #6c63ff;border-radius:10px;opacity:1;margin-bottom:1rem;overflow:hidden}

.mssg img{width:160px;height:160px; margin-right: 15px;padding: 5px;background: #f7f7f7;border-radius: 10px;left: auto;right: 0;position: absolute;left: 0;top: 0  }
.mtxt {
  margin-left: 170px!important;
}
@media (max-width: 767px) {
  .mssg-sm img{width:70px!important;height:70px!important; margin-right: 15px;padding: 5px;background: #f7f7f7;border-radius: 10px;left: auto;right: 0;position: absolute;left: 0;top: 0  }
  .mtxt-sm {
    margin-left: 70px!important;
  }
}


.chat-main-container {
  min-width: 800px;
  min-height: 500px;
  max-height: 750px;
  display: flex;
  overflow: hidden;
  box-sizing: border-box;
  width: 100vw;
  height: auto;
  font-family: "Lato", sans-serif;
  position: relative;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: border-box;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  padding-left: 0;
  padding-right: 0;
}
.chat-main-container #expand {
  display: none;
}

.chat-main-container .chat-message-container {
  width: calc(100% - var(--sidebar-width));
  height: 100%;
  display: flex;
  flex-direction: column;
}
.chat-main-container .chat-message-container .chat-avatar {
  border-radius: 50%;
  height: 44px;
  width: 44px;
  clear: both;
  display: block;
  background: #E1F0FF;
  position: relative;
}
.chat-main-container .card-footer {
  border-top: 1px solid #ebecf1 !important;
  min-height: 75px;
  height: 75px;
}

  .chat-main-container .chat-message-container {
    width: inherit !important;
  }

  .chat-main-container {
    min-width: inherit !important;
  }

  .chat-main-container #expand {
    display: block !important;
  }
  
@media (max-width: 768px) {
  .header-brand-img {
    display: none;
  }

  .header-brand {
    min-width: 30px !important;
  }

  .app-header .header-brand-img.mobile-logo {
    display: block !important;
    height: 3rem;
  }

  #search-bar {
    display: none;
  }

  .header-notify {
    display: none;
  }

  .header-expand {
    display: none;
  }

  #special-buttons {
    display: inline-block !important;
  }
  #special-buttons .dropdown {
    margin-bottom: 1rem;
  }

  .pl-minify {
    padding-left: 12px !important;
  }

  .pr-minify {
    padding-right: 12px !important;
  }

  #card-minify {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }

  #card-body-minify {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  #database-backup {
    overflow-x: scroll;
  }
  #database-backup th, #database-backup td {
    min-width: 200px;
  }

  .prices-responsive {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #openai-form > div.row {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-top: 2rem !important;
  }
  #openai-form > div.row > div {
    padding-left: 0;
    padding-right: 0;
  }
  #openai-form .create-project {
    display: none;
  }
  #openai-form #template-output .card-title {
    font-size: 12px;
  }

  #awselect_template-selection {
    display: none !important;
  }

  .favorite-templates-panel .nav-tabs {
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    padding-bottom: 10px;
  }
  .favorite-templates-panel .nav-tabs .nav-link {
    white-space: nowrap;
  }

  .message-img {
    display: none !important;
  }

  #generating-message {
    left: 18%;
  }

  #generating-status {
    left: 12%;
  }

  #openai-form > div.row {
    padding-top: 0 !important;
  }

  #balance-status span {
    padding-left: 0 !important;
  }

  .chat-main-container .chat-sidebar-container {
    position: absolute;
    left: -100%;
    z-index: 1000;
    height: 100%;
    max-height: 100%;
    background-color: white;
    transition: all 0.5s ease;
    width: 270px;
  }

  .chat-main-container .chat-message-container {
    width: inherit !important;
  }

  .chat-main-container {
    min-width: inherit !important;
  }

  .chat-main-container #expand {
    display: block !important;
  }

  #export-txt,
#export-word,
#export-pdf {
    display: none;
  }

  .chat-sidebar-container .extend {
    left: 0 !important;
    transition: all 0.5s ease !important;
  }
}

/* ==========================================================================           
 *
 *    CHAT SYSTEM
 *
 * ========================================================================== */
#chat-system {
  min-height: 400px;
  font-size: 13px;
}
#chat-system .chat-button {
  padding: 0.75rem 15px !important;
  z-index: 100;
}
#chat-system #chat-container {
  max-height: 400px;
  height: 400px;
  overflow-y: scroll;
  padding-left: 1rem;
  padding-right: 1rem;
}
#chat-system .msg {
  display: flex;
  align-items: flex-end;
  margin-bottom: 1rem;
}
#chat-system .msg:last-of-type {
  margin: 0;
}
#chat-system .message-img {
  min-width: 40px;
  min-height: 40px;
  margin-right: 15px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-radius: 50%;
  margin-bottom: auto;
}
#chat-system .message-bubble {
  padding: 10px 15px;
  border-radius: 10px;
  background: #f5f9fc;
  position: relative;
  height: auto;
}

.message-bubbles {display: block;position: relative;margin-bottom: 25px;animation: message-slide-in .3s ease; }
@keyframes message-slide-in {
    0% { opacity: 0;transform: translateY(20px);}
    100% {opacity: 1;transform: translateY(0);}
}
.message-bubbles .message-avatar {position: absolute;left: 0;top: 0 }
.message-bubbles .message-avatar img {width: 40px;height: 40px; margin-right: 15px;padding: 5px;background: #f7f7f7;border-radius: 10px;}
.message-bubbles .message-text {margin-left: 55px;background-color: #f4f4f4;border-radius: 4px;padding: 12px 18px;position: relative;display: inline-block;float: left;line-height: 25px;font-size: 16px;font-weight:500;
    word-wrap: break-word; } /** bot chat**/
.message-bubbles.me .message-text {float: right }
.message-bubbles .message-text p {font-size: 15px;line-height: 25px;}
.message-bubbles.me .message-avatar {left: auto;right: 0 }
.message-bubbles.me .message-text {font-size: 16px;margin-left: 0;margin-right: 70px;background-color: #66676b;color: #fff;position: relative }/** user chat**/
.message-bubbles .message-text:before {content: "";width: 0;height: 0;border-top: 6px solid transparent;border-bottom: 6px solid transparent;border-right: 6px solid #f4f4f4;left: -6px;right: auto;top: 19px;position: absolute }
.message-bubbles.me .message-text:before {border-top: 6px solid transparent;border-bottom: 6px solid transparent;border-left: 6px solid #66676b;border-right: none;right: -6px;left: auto }

.message-reply {border-top: 1px solid #eaeaea;padding: 30px;display: flex;align-items: flex-start;}
.message-reply textarea, .message-reply input {min-width: auto;height: 48px;min-height: 48px;padding: 10px 0;margin: 0 15px 0 0;flex: 1;font-size: 15px;font-weight: 400;line-height: 26px;box-shadow: none;border: none;box-sizing: border-box;resize: none }
.message-reply textarea:focus, .message-reply input:focus {box-shadow: none;border: none;}
.message-reply button {border-radius: 4px;flex: auto;flex-grow: 0;height: 44px;text-align: center;align-self: center;padding: 0 25px }
.message-reply i {padding: 0;margin: 0 }
.message-reply:not(.ai_image_description) {flex-direction: column;}
    .message-reply:not(.ai_image_description) textarea {margin-bottom: 20px}
    .message-reply > div {align-self: end;}
}

.message-content-inner {max-height: 500px }
.message-content, .messages-container-inner .messages-inbox {overflow: hidden }
.message-content-inner, .messages-container-inner .messages-inbox ul {overflow-y: scroll;}

#chat-system .left-msg .message-bubble:before {
  content: "";
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 6px solid #f5f9fc;
  left: -6px;
  right: auto;
  top: 15px;
  position: absolute;
}
#chat-system .right-msg .message-bubble:before {
  content: "";
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 6px solid #1e1e2d;
  left: auto;
  right: -6px;
  transform: rotate(180deg);
  top: 15px;
  position: absolute;
}
#chat-system .msg-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
#chat-system .msg-info-name {
  margin-right: 10px;
  font-weight: bold;
}
#chat-system .msg-info-time {
  font-size: 0.85em;
}
#chat-system .right-msg {
  flex-direction: row-reverse;
}
#chat-system .right-msg .message-bubble {
  background: #16171c;
  color: #fff;
}
#chat-system .right-msg .message-img {
  margin: 0 0 0 15px;
  margin-bottom: auto;
}
#chat-system #clear-button {
  position: absolute;
  right: 0;
  margin-right: 1rem;
}

.mt-12 {
  margin-top: 1.2rem !important;
}

/* ==========================================================================           
 *
 *    INPUT FORM BOX STYLES
 *
 * ========================================================================== */
.input-box {
  margin-bottom: 1.5rem;
}
.input-box h6 {
  font-family: "Poppins", sans-serif;
  margin-bottom: 0.6rem;
  font-weight: 600;
  font-size: 14px;
}
.input-box .form-control {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  color: #1e1e2d;
  -webkit-appearance: none;
  -moz-appearance: none;
  outline: none;
  appearance: none;
  background-color: #f5f9fc;
  border-color: bold;
  border-radius: 0.5rem;
  border-width: 1px;
  font-weight: 400;
  line-height: 1rem;
  padding: 0.75rem 1rem;
  width: 100%;
}

.input-box input:hover, .input-box input:focus {
  border-color: #a55eea;
  box-shadow: none;
  transition: all 0.2s;
}
.input-box textarea {
  font-weight: 400 !important;
}
.input-box textarea:hover, .input-box textarea:focus {
  border-color: #a55eea;
  box-shadow: none;
  transition: all 0.2s;
}


.input-group-btn {
  position: absolute;
  right: 0;
  top: 1px;
  z-index: 20;
}

.file-data .input-group-btn .btn-primary {
  padding: 0.6rem 5px !important;
  min-width: 50px !important;
}

@media (max-width: 567px) {
  .card-pay .tabs-menu li {
    width: 100%;
  }
  .card-pay .tabs-menu li a {
    margin-bottom: 15px;
  }
}
.input-group-btn .btn-primary {
  border-top-right-radius: 4px !important;
  border-bottom-right-radius: 4px !important;
  padding: 0.52rem 15px;
  border-radius: 0;
}
