@import url('https://fonts.googleapis.com/icon?family=Material+Icons');
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

html, body {
  position: fixed;
  overflow: hidden;
  width: 100%;
  height: 100%;
  /* Fix for iOS safe areas */
  /* padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
   */
  margin: 0;
  padding: 0;
}

@media only screen and (min-width: 993px) {
  html, body {
      display: none;
  }
}

.hidden-chat {
  display: none;
}

.widget {
  display: none;
  width: 350px;
  right: 15px;
  height: 100svh;
  bottom: 5%;
  position: fixed;
  background: #fff;
  border-radius: 10px 10px 10px 10px;
  box-shadow: 0 0px 1px 0 rgba(0, 0, 0, 0.16), 0 0px 5px 0 #00000096;
  z-index: 9999;
}

.chat-header {
  height: 60px;
  background-image: url("../img/Header-1.png");
  border-radius: 10px 10px 0px 0px;
  padding: 5px;
  font-size: 20px;

}

.header-title {
  color: white;
  float: right;
  margin-top: 3%;
  margin-right: 70%;
  font-weight: 600;
  font-size: 16px;
  color: #FFFFFF;
}

.chats {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Push bubbles to the top */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  /* display: none; */
  background-image: url("../img/Bgchat.png");
  height: 360px;
  padding: 0px 10px 40px 10px;
  border-radius: 1px;
  overflow-y: scroll;
  margin-top: 1px;
  transition: 0.2s;
  background-position: center;
  background-repeat: no-repeat;
  background-size: auto;
}

div.chats::-webkit-scrollbar {
  overflow-y: hidden;
  width: 0px;
  /* remove scrollbar space /
    background: transparent;
    / optional: just make scrollbar invisible */
}

.clearfix {
  margin-top: 2px;
  margin-bottom: 2px;
}

.botAvatar {
  border-radius: 50%;
  width: 1.5em;
  height: 1.5em;
  float: left;
  margin-left: 5px;
  margin-top: 20px;
  /* border: 2px solid  #060DCF ; */
}

.botMsg {
  margin-top: 5px;
  background: #e3e7ee;
  color: black;
  /* box-shadow: 2px 3px 9px 0px #9a82842e; */
  margin-left: 0.5em;
  padding: 10px;
  border-radius: 1.5em;
  max-width: 60%;
  min-width: 25%;
  font-size: 13px;
  word-wrap: break-word;
  border-radius: 5px 20px 20px 20px;
  margin-left: 30px;
}

div.chats>pre {
  font-family: monospace, monospace;
  font-size: 1em;
  margin: 0 !important;
  /* display: inline !important; */
  white-space: initial !important;
}

div.chats>ul:not(.browser-default) {
  padding-left: 1em;
}

div.chats>ul:not(.browser-default)>li {
  list-style-type: initial;
}

div.chats>span.botMsg>ol {
  padding-left: 1em;
}

textarea {
  box-shadow: none;
  resize: none;
  outline: none;
  overflow: hidden;
  font-family: "Nunito", sans-serif;
}

textarea::-webkit-input-placeholder {
  font-family: "Nunito", sans-serif;
}

textarea-webkit-scrollbar {
  width: 0 !important;
}

.userMsg {
  animation-iteration-count: 1;
  margin-top: 5px;
  word-wrap: break-word;
  padding: 10px;
  float: right;
  margin-right: 0.5em;
  background: #060dcfc7;
  color: white;
  margin-bottom: 0.15em;
  font-size: 13px;
  max-width: 65%;
  min-width: 15%;
  border-radius: 20px 5px 20px 20px;
  /* box-shadow: 0px 2px 5px 0px #9a828454; */
}

blockquote {
  margin: 20px 0;
  padding-left: 1.5rem;
  border-left: 5px solid #ee6e73;
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
  margin-inline-start: 0 !important;
  margin-inline-end: 0 !important;
}

.fa {
  background: #0958AA;
  color: white;
  width: 32px;
  height: 32px;
  padding: 5px;
  border-radius: 10px;
}

.botMsg-idle {
  background: #e3e7ee;
  color: black;
  margin-left: 0.5em;
  padding: 10px;
  border-radius: 1.5em;
  max-width: 60%;
  min-width: 25%;
  font-size: 13px;
  word-wrap: break-word;
  border-radius: 5px 20px 20px 20px;
  margin-left: 30px;

}

.userAvatar {
  animation: animateElement linear 0.3s;
  animation-iteration-count: 1;
  border-radius: 50%;
  width: 1.5em;
  height: 1.5em;
  float: right;
  margin-right: 5px;
  /* border: 2px solid  #060DCF ; */
}

.usr-input {
  padding: 7px;
  width: 70%;
  border: 0;
  height: 40px;
}

.keypad-wrapper {
    position: absolute;
    bottom: 0vh;
    flex-shrink: 0;
    background: #fff;
    padding-bottom: env(safe-area-inset-bottom);
    width: 100%;
    display: block;
    align-items: center;
    padding: 10px 12px;
}


.scroll-spacer {
  height: 20px; /* Extra space at the very bottom */
  flex-shrink: 0;
}

/* .keypad {
  height: 50px;
  width: 90%;
  margin: 0 auto;
  display: flex;
  background: #fff;
} */

/* .keypad {
  flex-shrink: 0;
  height: 50px;
  position: fixed;
  bottom: calc(12px + env(safe-area-inset-bottom));
  width: 90%;
  padding: 5px;
  border-radius: 6px;
  border: 1px solid #DCDEE3;
  left: 50%;
  transform: translateX(-50%);
  padding-bottom: env(safe-area-inset-bottom);
} */

.keypad {
  position: sticky; 
  bottom: 0; 
  margin: 0 auto;
  flex-shrink: 0;
  height: auto; /* Changed from 50px to auto so it grows with text */
  min-height: 50px;
  width: 100%;
  background: white; /* Ensure it's not transparent */
  padding: 5px;
  padding-bottom: calc(5px + env(safe-area-inset-bottom)); /* Single source of padding */
  border-radius: 6px;
  border: 1px solid #DCDEE3;
}

#sendButton {
  height: 46px;
  width: 50px;
  border-radius: 6px;
  display: inline-block;
  float: right;
  /* margin-right: 15px; */
  text-align: center;
  font-size: 20px;
  cursor: pointer;
  /* margin-top: 3px; */
  padding: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#sendButton img {
  border-radius: 100px;
}

.imgProfile {
  box-shadow: 0 0px 1px 0 rgba(0, 0, 0, 0.16), 0 0px 10px 0 #00000096;
  border-radius: 50px;
  width: 32px;
  height: 32px;
  /* Tetapkan lebar tetap untuk gambar */

}

.profile-div {
  visibility: hidden;
  position: fixed;
  bottom: 20px;
  /* Jarak dari bawah */
  right: 20px;
  /* Jarak dari kanan */
  cursor: pointer;
  display: flex;
  /* Menggunakan Flexbox untuk tata letak */
  align-items: center;
  /* Pusatkan item secara vertikal */
  background: url("../img/bgyellow.png");
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 25px;
  /* Tambahkan radius border untuk membulatkan sudut */
  padding: 12px 8px;
}

.profile-div img {
  margin-left: 10px;
}

.profile-div span {
  color: #313131;
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 25px;
  padding: 0px 8px;
}

/* css for dropdown menu of the bot */

#close,
#restart,
#clear {
  cursor: pointer;
  margin-top: 12px;
  margin-left: 5px;

}

.dropdown-trigger {
  cursor: pointer;
  color: white;
  margin-right: 5px;
  float: right;
  margin-top: 3%;
}

.dropdown-content li>a,
.dropdown-content li>span {
  color: #060dcfc7;
}

@keyframes animateElement {
  0% {
    opacity: 0;
    transform: translate(0px, 10px);
  }

  100% {
    opacity: 1;
    transform: translate(0px, 0px);
  }
}

/*========== css related to chats elements============= */

/* css for card details of carousel cards */

.content-chatbot {
  transition: 0.2s;
  display: none;
  width: 350px;
  right: 15px;
  height: 500px;
  bottom: 5%;
  position: fixed;
  background: white;
  border-radius: 10px 10px 10px 10px;
  box-shadow: 0px 2px 10px 1px #b5b5b5;
}

.content_header {
  object-fit: cover;
  width: 100%;
  height: 40%;
  border-radius: 10px 10px 0px 0px;
}

.content_data {
  overflow-y: scroll;
  height: 70%;
  position: absolute;
  left: 0px;
  width: 100%;
  top: 30%;
  z-index: 1000;
  border-radius: 10px;
  background: white;
  padding: 5px;
  box-shadow: 0px -1px 20px 3px #9c9393ba;
}

.content_title {
  color: black;
  font-weight: 600;
  word-wrap: break-word;
  padding-left: 5px;
  font-size: 1.2em;
  width: 80%;
  border-radius: 0.28571429rem;
}

.votes {
  font-size: 12px;
  color: lightslategray;
}

.ratings {
  margin-top: 5px;
  background: #9acd32;
  padding: 5px;
  color: white;
  border-radius: 5px;
}

.user_ratings {
  border-radius: 0.28571429rem;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}

.total_ratings {
  font-size: 12px;
  opacity: 0.5;
  margin-left: 5px;
}

.content_data>.row .col {
  padding: 5px;
}

.metadata_1,
.metadata_2,
.metadata_3,
.metadata_4,
.row {
  margin-bottom: 0px;
}

.metadata_1 {
  color: lightslategrey;
  padding: 5px;
}

.order,
#closeContents {
  color: #060dcfc7;
}

.metadata_2,
.metadata_3,
.metadata_4,
.metadata_5,
.metadata_6 {
  color: lightslategrey;
  padding: 5px;
}

.average_cost,
.timings,
.location,
.cuisines {
  width: 70%;
  float: right;
  margin-right: 25%;
}

.fa .fa-user-o {
  font-size: 15px;
}

.stars-outer {
  display: inline-block;
  position: relative;
  font-family: FontAwesome;
}

.stars-outer::before {
  content: "\f006 \f006 \f006 \f006 \f006";
}

.stars-inner {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
}

.stars-inner::before {
  content: "\f005 \f005 \f005 \f005 \f005";
  color: #f8ce0b;
}

div.content::-webkit-scrollbar {
  width: 0 !important;
}

div.content_data::-webkit-scrollbar {
  overflow-y: hidden;
  width: 0px;
  /* remove scrollbar space /
    background: transparent;
    / optional: just make scrollbar invisible */
}

/* css for single card */

.singleCard {
  padding-left: 10%;
  padding-right: 10px;
  margin-bottom: 50px;
}

/* css for image card */

.imgcard {
  object-fit: cover;
  width: 80%;
  height: 50%;
  border-radius: 10px;
  margin-left: 1%;
}

/* css for markdown images */

.imgcard_mrkdwn {
  width: 80%;
  border-radius: 10px;
  margin-left: 1%;
}

/* css for suggestions buttons */

.suggestions {
  background: #ffffff;
  width: 40% !important;
  float: right;
}

.menuTitle {
  padding: 5px;
  margin-top: 5px;
  margin-bottom: 5px;
}

.menu {
  padding: 5px;
}

.menuChips {
  display: block;
  background: #060dcfc7;
  color: #fff;
  text-align: center;
  padding: 5px;
  margin-bottom: 5px;
  cursor: pointer;
  border-radius: 6px;
  font-size: 14px;
  word-wrap: break-word;
}

/* cards carousels */

.cards {
  display: none;
  position: relative;
  max-width: 300px;
}

.cards_scroller {
  overflow-x: scroll;
  overflow-y: hidden;
  display: flex;
  height: 210px;
  width: 300px;
  transition: width 0.5s ease;
  margin-left: 5px;
  /* Enable Safari touch scrolling physics which is needed for scroll snap */
  -webkit-overflow-scrolling: touch;
}

.cards_scroller img {
  border-radius: 10px;
}

.cards div.note {
  position: absolute;
  /* vertically align center */
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  padding: 20px;
  position: absolute;
  font-size: 4em;
  color: white;
}

.cards .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 30px;
  width: 30px;
  border-radius: 2px;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  z-index: 1;
}

.cards .arrow.next {
  display: none;
  font-size: 2em;
  color: #ffffff;
  right: 10px;
}

.cards .arrow.prev {
  display: none;
  font-size: 2em;
  color: #ffffff;
  left: 10px;
}

.cards_scroller::-webkit-scrollbar {
  width: 0 !important;
}

.cards_scroller>div.carousel_cards {
  margin: 5px;
  scroll-snap-align: center;
  position: relative;
  scroll-behavior: smooth;
}

.cards_scroller div.carousel_cards {
  min-width: 50%;
  min-height: 70%;
  background: #b5b5b5;
  border-radius: 10px;
}

@-webkit-keyframes fadeInLeft {
  from {
    opacity: 0;
    -webkit-transform: translatex(-10px);
    -moz-transform: translatex(-10px);
    -o-transform: translatex(-10px);
    transform: translatex(-10px);
  }

  to {
    opacity: 1;
    -webkit-transform: translatex(0);
    -moz-transform: translatex(0);
    -o-transform: translatex(0);
    transform: translatex(0);
  }
}

.in-left {
  -webkit-animation-name: fadeInLeft;
  -moz-animation-name: fadeInLeft;
  -o-animation-name: fadeInLeft;
  animation-name: fadeInLeft;
  -webkit-animation-fill-mode: both;
  -moz-animation-fill-mode: both;
  -o-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation-duration: 0.8s;
  -moz-animation-duration: 0.8s;
  -o-animation-duration: 0.8s;
  animation-duration: 0.8s;
  -webkit-animation-delay: 0.8s;
  -moz-animation-delay: 0.8s;
  -o-animation-duration: 0.8s;
  animation-delay: 0.8s;
}

/* css for cards within the cards carousels */

.cardBackgroundImage {
  width: 100%;
  border-radius: 5px;
  height: 100%;
  position: absolute;
  object-fit: cover;
}

.cardFooter {
  background: rgba(56, 53, 60, 0.86);
  border-radius: 0px 0px 5px 5px;
  position: absolute;
  z-index: 3;
  color: white;
  bottom: 0;
  width: 100%;
  height: 30%;
  word-wrap: break-word;
  padding: 1px;
}

.cardTitle {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  width: 90%;
  /* height: 40%; */
  display: inline-block;
  margin-bottom: 1px;
  font-size: 15px;
  /* font-weight: 600; */
  padding: 5px;
  /* color:#060dcfc7; */
  color: #ffffff;
  cursor: pointer;
}

.cardDescription {
  padding: 5px;
  font-size: 13px;
  color: white;
  line-height: 15px;
}

/*css for dropDown messages*/

.dropDownMsg {
  float: left;
  margin-top: 5px;
  background: white;
  color: black;
  box-shadow: 2px 3px 9px 0px #9a82842e;
  margin-left: 0.5em;
  padding: 10px;
  border-radius: 1.5em;
  max-width: 60%;
  min-width: 25%;
  font-size: 13px;
  word-wrap: break-word;
}

.dropDownMsg>select {
  border: 0px solid #f2f2f2;
}

/* css for quick replies */

.quickReplies {
  padding: 5px;
  position: relative;
  width: 100%;
  overflow-x: scroll;
  overflow-y: hidden;
  white-space: nowrap;
  transition: all 0.2s;
  transform: scale(0.98);
  will-change: transform;
  user-select: none;
  cursor: pointer;
  scroll-behavior: smooth;
}

.quickReplies::-webkit-scrollbar {
  width: 0 !important;
}

.quickReplies.active {
  cursor: grabbing;
  cursor: -webkit-grabbing;
  transform: scale(1);
}

.chip {
  background-color: white;
  border: 1px solid#060dcfc7;
  color: #060dcfc7;
  font-weight: bolder;
  text-align: center;
}

.chip:hover {
  background-color: #060dcfc7;
  color: white;
}

/* css for charts */

#expand:hover {
  font-size: 18px;
}

#expand {
  position: absolute;
  right: 10px;
  top: 10px;
}

.modal {
  height: 100%;
  border-radius: 10px;
}

.chart-container {
  position: relative;
  margin: auto;
  height: 25vh;
  width: 90%;
  border-radius: 10px 10px 10px 10px;
  margin-left: 5%;
  background: white;
  box-shadow: 2px 3px 9px 0px #9a82847a;
  margin-top: 5px;
}

/* css for collapsible */

.collapsible {
  margin-top: 5px;
  margin-left: 5%;
  max-width: 60%;
  min-width: 25%;
  font-size: 13px;
  word-wrap: break-word;
  border-radius: 20px;
  background: white;
}

.collapsible-body {
  padding: 15px;
}

.collapsible-header {
  font-weight: bold;
  color: #060dcfc7;
}

ul.collapsible>li:first-child .collapsible-header {
  border-radius: 20px 20px 0px 0px;
}

ul.collapsible>li:last-child .collapsible-header {
  color: #060dcfc7;
  border-radius: 0px 0px 20px 20px;
}

ul.collapsible>li:last-child .collapsible-body {
  border-bottom: none;
}

.collapsible-header {
  padding: 10px;
}

/* css for botTyping */

.botTyping {
  float: left;
  margin-top: 5px;
  background: #e3e7ee;
  color: #000000;
  /* box-shadow: 2px 3px 9px 0px #9a82847a; */
  margin-left: 0.5em;
  padding: 15px;
  border-radius: 5px 20px 20px 20px;
  max-width: 60%;
  min-width: 20%;
  word-wrap: break-word;
  border-radius: 5px 20px 20px 20px;
}

.botTyping>div {
  width: 10px;
  height: 10px;
  background-color: #060dcfc7;
  border-radius: 100%;
  display: inline-block;
  -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
  animation: sk-bouncedelay 1.4s infinite ease-in-out both;
  margin-right: 5px;
}

.botTyping .bounce1 {
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
}

.botTyping .bounce2 {
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
}

@-webkit-keyframes sk-bouncedelay {

  0%,
  80%,
  100% {
    -webkit-transform: scale(0);
  }

  40% {
    -webkit-transform: scale(1);
  }
}

@keyframes sk-bouncedelay {

  0%,
  80%,
  100% {
    -webkit-transform: scale(0);
    transform: scale(0);
  }

  40% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

input:focus {
  outline: none;
}

video:focus {
  outline: none;
}

.video-container iframe,
.video-container object,
.video-container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 90%;
  height: 100%;
  margin-left: 5%;
  border-radius: 10px;
  border-style: none;
}

/* Bot pop-up intro */

.tap-target {
  color: #fff;
  background: #060dcfc7;
}

.pdf_attachment {
  border: 0.5px solid #00000014;
  width: 60%;
  height: 14%;
  border-radius: 10px;
  margin-left: 10%;
  box-shadow: 2px 3px 9px 0px #9a82842e;
}

.pdf_icon {
  border-radius: 10px 0px 0px 10px;
  height: 100%;
  font-size: 25px;
  padding: 7% !important;
  background-color: #060dcfc7;
  color: white;
}

.pdf_link {
  padding: 5% !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdf_link a {
  color: #060dcfc7;
}

.userAvatar {
  width: 32px;
  height: 32px;
  background-color: #0958AA;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-size: 20px;
  font-weight: bold;
  margin-right: 10px;
  float: right;
  margin: 4px;
  margin-top: -30px;
}

.userMsg {
  display: inline-block;
  background: #0958AA;

  border-radius: 8px;
  padding: 8px 12px;
  margin: 5px 0;
  color: #FFFFFF;
}

.clearfix {
  clear: both;
}

@media (max-width: 768px) {

  .body{
      background-image: url("../img/Bgchat.png");
  }

  .chat-header{
    display: none;
  }

  .widget {
    display: flex;
    flex-direction: column;
    height: 100%; /* Takes full height of fixed body */
    width: 100%;
    position: initial;
    background-position: center;
    background-repeat: no-repeat;
    background-size: auto;
    background-image: url("../img/Bgchat.png");
    box-shadow:unset;
  }

  .keypad{
    background: white;
  }

  .container {
    display: block;
    width: 100%;
    height: 100vh;
  }
  .chats{
    background-image: unset;
    height: 90%;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
}

#text-view-container{
  padding: 8px;
}

#text-view-container p{
  word-break: break-all;
    overflow-wrap: break-word; 
    word-wrap: break-word;
}

.userResponse ~ .userResponse,
.botResponse ~ .userResponse {
    margin-top: 20px;
}

.chat-container {
            display: flex;
            align-items: center;
            background-color: #eef4f9; /* Light blue-grey background */
            padding: 20px;
            width: 400px;
            gap: 12px; /* Space between input and button */
            font-family: sans-serif;
        }

        /* 2. The Text Input Field */
        .chat-input {
            flex-grow: 1; /* Makes the input stretch to fill available space */
            padding: 14px 20px;
            border: none;
            border-radius: 30px; /* Creates the fully rounded "pill" shape */
            font-size: 14px;
            color: #333;
            background-color: #ffffff;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Very subtle shadow */
            outline: none; /* Removes the default blue border when clicked */
        }

        /* Styling the placeholder text to match the grey color */
        .chat-input::placeholder {
            color: #8f959e;
        }

        /* 3. The Circular Send Button */
        .send-btn {
            background-color: #2b88d8; /* The blue color */
            border: none;
            border-radius: 50%; /* Makes the button a perfect circle */
            width: 44px;
            height: 44px;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            flex-shrink: 0; /* Prevents the button from shrinking */
        }

        /* Hover effect for the button */
        .send-btn:hover {
            background-color: #1a75c4;
        }