/* General Page Styles */
body {
    /*font-family: Arial, sans-serif;*/
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
  }
:root {

    --msger-bg: #fff;
    --border: 2px solid #ddd;
    --left-msg-bg: #ebebeb;
    --right-msg-bg: linear-gradient(40deg, #ad86f6,#572ca7) !important;;
  }
  /* Chatbot Icon */
 .chatbot-icon {
    position: fixed;
    top: 60px;
    right: 20px;
    background-color: #007bff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
  }

  .chatbot-icon img {
    width: 35px;
    height: 35px;
  }


  .chat-container {
    position: fixed;
    top: 100px;
    right: 20px;
    width: 420px;
    border-radius: 8px;
    /* overflow: hidden;  */
    display: none;
    flex-direction: column;
    justify-content: space-between;
    z-index: 999;
    margin-top: 10px;
    background-color: #ffffff;
  }



  .msger-header {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    border-bottom: var(--border);
    background: linear-gradient(40deg,  #572ca7,#ad86f6) !important;
    color: #666;
    border-radius: 8px;
  }

  .msger-chat {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    max-height: 350px;
    height: 350px;
  }
  .msger-chat::-webkit-scrollbar {
    width: 6px;
  }
  .msger-chat::-webkit-scrollbar-track {
    background: #ffffff;
  }
  .msger-chat::-webkit-scrollbar-thumb {
    background: #bdbdbd;
  }
  .msg {
    display: flex;
    align-items: flex-end;
    margin-bottom: 10px;
  }
  .msg:last-of-type {
    margin: 0;
  }
  .msg-img {
    width: 50px;
    height: 60px;
    margin-right: 10px;
    background-repeat: no-repeat;
    background-position: center;
  }
  .msg-img-right{
    width: 50px;
  height: 50px;
  margin-right: 10px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto;

  }
  .msg-bubble {
     /* width: 330px;  */
    max-width: 330px;
    padding: 15px;
    border-radius: 15px;
    background: var(--left-msg-bg);
  }
  .msg-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
  }
  .msg-info-name {
    margin-right: 10px;
    font-weight: bold;
    font-size: 10px;
  }
  .msg-info-time {
    font-size: 10px;
  }

  .left-msg .msg-bubble {
    border-bottom-left-radius: 0;
  }

  .right-msg {
    flex-direction: row-reverse;
  }
  .right-msg .msg-bubble {
    background: var(--right-msg-bg);
    color: #fff;
    border-bottom-right-radius: 0;
  }
  .right-msg .msg-img {
    margin: 0 0 0 10px;
  }

  .msger-chat {
    background-color: #fcfcfe;

  }

  #close-btn{
    background: none;
    color: inherit;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    outline: inherit;
}
.cross-i{
  height: 25px;
width: 25px;
}
.msger-header-title{
    font-size: 20px;
    font-weight: bold;
    padding: inherit;
    color: rgb(255, 255, 255)!important;
    font-family: "Poppins", sans-serif!important;
}
@media screen and (max-width: 600px) {
    .chat-container {
      width: 90%;
      /* justify-content: center;  */
      bottom: 0;
      height: 47%;
      border-radius: 0;
    }

    .chatbot-icon {
      bottom: 15px;
      right: 15px;
      width: 50px;
      height: 50px;
    }

    .chatbot-icon img {
      width: 25px;
      height: 25px;
    }

    .input-area button {
      padding: 8px 10px;
    }
    .msger-send-btn {
        margin-left: -1px;
    }
    .msger-chat {
        flex: 1;
        overflow-y: auto;
        padding: 10px;
        max-height: 350px;
      }
  }

  @media screen and (min-width: 601px) and (max-width: 1024px) {
    .chat-container {
      width: 80%;
      right: 10%;
      bottom: 20px;
      height: 40%;
    }

    .chatbot-icon {
      bottom: 20px;
      right: 20px;
      width: 55px;
      height: 55px;
    }

    .chatbot-icon img {
      width: 30px;
      height: 30px;
    }
    .msger-chat {
        flex: 1;
        overflow-y: auto;
        padding: 10px;
        max-height: 280px;
      }
  }








.msger-inputarea {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background-color: #ffffff;
    border-top: 1px solid #ccc;
    position: relative;
    border-radius: 8px;
}

.msger-input {
    width: 90%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    margin-right: 10px;
}

.document-button,
.voice-button,
.msger-send-btn {
  background: linear-gradient(40deg, #572ca7, #ad86f6) !important;
    border: none;
    cursor: pointer;
    /*padding: 5px;*/
    justify-content: center;
    align-items: center;
    display: flex;
    margin-left: 5px;
    border-radius: 50%;
    height: 30px;
    width: 30px;
}

.document-icon,
.voice-icon {
    width: 20px;
    height: 20px;
}





.typing-dots {
  display: flex;
  gap: 5px;
}

.typing-dots div {
  width: 8px;
  height: 8px;
  background-color: #ccc;
  border-radius: 50%;
  animation: typing 1.5s infinite;
}

.typing-dots div:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots div:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0% {
    transform: scale(0.8);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(0.8);
    opacity: 0.4;
  }
}

.autocomplete-items {
  position: absolute;
  border: 1px solid #d4d4d4;
  border-radius: 4px;
  background-color: #fff;
  z-index: 99;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.autocomplete-items div {
  padding: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid #f1f1f1;
}

.autocomplete-items div:last-child {
  border-bottom: none;
}


.autocomplete-items div:hover,
.autocomplete-active {
  background-color: #007bff;
  color: white;
}



.voice-button.active {
  background: #007bff;
  animation: active-glow 1.5s infinite;

}
.voice-button.active img {
  transform: scale(1.1);
}


@-webkit-keyframes active-glow {
  0% {
    box-shadow: 0 0 10px 0 #007bff;
  }
  50% {
    box-shadow: 0 0 20px 0 #007bff;
  }
  100% {
    box-shadow: 0 0 10px 0 #007bff;
  }
}


.container-1 {
  width: 100%;
  margin: auto;
  display: flex;
  flex-flow: row wrap;
  align-content: flex-start;
  padding: 0.9em;
}

.card-1 {
  /* margin: 0.9em;  */
  display: flex;
  flex-direction: row;
  background-color: white;
  box-shadow: 1px 3px 3px rgba(0, 10, 20, 0.06);
  max-width: 45em;
  flex: 1 1 calc(50% - 1.8em);
  align-items: center;
  border-radius: 8px;
}

.card-1 img {
  height: 50px;
  width: auto;
  object-fit: cover;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
    padding:0 10px;
}
.card-1 h3 {
font-size:18px;
    font-weight:bold;
    padding:0;
    display:flex;
      aline-item:center;
    padding:8px;
    margin:0;
}
.card-1-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
    aline-item:center!important;
  padding-right: 2px;
}

.card-1-body button {
  min-width: 8.3em;
  align-self: flex-start;
  padding: 0.6em 1.2em;
  font-size: 0.92em;
  color: #404646;
  background: none;
  border: 0.5px solid #777;
  border-radius: 2px;
  cursor: pointer;
}

.card-1-body button:hover {
  border-color: #d099a0;
}

.card-1-text {
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.card-1-text h3, .card-1-text p {
  margin-top: 0;
}


@media (max-width: 768px) {
  .card-1 {
    flex-direction: column;
    max-width: 100%;
  }

  .card-1 img {
    width: 100%;
    height: auto;
  }

  .card-1-body {
    padding: 1.2em;
  }
}
/* .msg-text {
  white-space: pre-wrap;
} */


.typewriter-container {
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
}

.typewriter {
  border-right: 2px solid #444;
  animation: blink-caret 0.5s step-end infinite;
}

@keyframes blink-caret {
  from, to {
    border-color: transparent;
  }
  50% {
    border-color: black;
  }
}


.card-count .fas,
.card-count .fa {
    font-size: 24px;
    display: initial;
    align-items: initial;
    justify-content: initial;
    width: initial;
    height: initial;
    background-color: initial;
    border-radius: initial
}

