/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Mukta:wght@400;500;600&display=swap');

/* * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Mukta", sans-serif;
} */

/* body {
  background: #E3F2FD;
} */

/* Chatbot Toggle Button */
.chatbot-toggler {
  /* position: fixed;
  bottom: 30px;
  right: 12px;
  height: 50px;
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  outline: none;
  cursor: pointer;
  border-radius: 50%;
  background: #264F8B;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 999999; */
  position: fixed;
  bottom: 30px;
  right: 12px;
  height: 32px;
  width: 16rem;
  display: flex;
  align-items: center;
  justify-content: left;
  border: none;
  outline: none;
  cursor: pointer;
  border-radius: 6px;
  background: #264F8B;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 999999;
  padding: 10px;
}

.grid-iconx{
  height: 32px !important;
  width: auto !important;
}

.iconx{
  font-size: 18px !important;
}

.ui-widget-header {
  background: white !important;
  border: none !important;
}

.ui-widget-content{
  border:none !important;
}

.ui-tabs-tab{
  background: transparent !important;
  border: none !important;
  color:#2b5998 !important;
}

.ui-tabs .ui-tabs-panel {
  padding: 12px 6px 12px 6px !important;
}

.ui-tabs .ui-tabs-nav .ui-tabs-anchor
{
  color: #2b5998 !important;
  font-size:0.8rem !important;
}

.ui-tabs .ui-tabs-nav{
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-content: center !important;
  justify-content: space-evenly !important;
  align-items: center !important;
}

.ui-tabs-active a{
  border-bottom: 2px solid red !important;

}

/* body.show-chatbot .chatbot-toggler {
  transform: rotate(90deg);
} */

/* body.show-chatbot .chatbot-toggler .aiBotImg {
  display: none;
} */

body.show-chatbot .chatbot-toggler{
  /* transform: rotate(90deg); */
  display: none;
}

.chatbot-toggler span {
  color: #fff;
  position: absolute;
}

.chatbot-toggler span:last-child,
body.show-chatbot .chatbot-toggler span:first-child {
  opacity: 0;
}

body.show-chatbot .chatbot-toggler span:last-child {
  opacity: 1;
}


.suggestion-btn{
  font-size:0.85rem !important;
}

.ml40{
  display: flex;
  margin-left: 46px !important;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: space-between;
  flex-direction: column;
  align-items: flex-start;
}

.textx{
  font-size: 0.80rem !important;
  font-weight: normal !important;
}

/* Chatbot Main Container */
.chatbot {
  position: fixed;
  /* right: 35px;
  bottom: 60px; */
  right: 32px;
  bottom: 32px;
  width: 420px;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.5);
  transform-origin: bottom right;
  box-shadow: 0 0 128px rgba(0, 0, 0, 0.1), 0 32px 64px -48px rgba(0, 0, 0, 0.5);
  transition: transform 0.1s ease, opacity 0.1s ease;
  z-index:999999 !important;
}

body.show-chatbot .chatbot {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

/* Chatbot Header */
.chatbot header {
  padding: 12px 0;
  text-align: center;
  color: #fff;
  background: #264F8B;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chatbot header span {
  position: absolute;
  position: absolute;
  right: 16px;
  top: 24px;
  display: block;
  cursor: pointer;
  transform: translateY(-50%);
}

header h2 {
  font-size: 1rem;
}

/* Chatbox */
.chatbot .chatbox {
  position: relative;
  top: -0px;
  overflow-y: auto;
  height: 560px;
  padding: 0 0 100px !important;
}

.chatbox .chat {
  padding: 5px;
  display: flex;
  list-style: none;
}

.chatbox .outgoing {
  margin: 20px 0;
  justify-content: flex-end;
}

.chatbox .incoming span {
  width: 32px;
  height: 32px;
  color: #fff;
  text-align: center;
  align-self: flex-end;
  background: #f2f2f2;
  border-radius: 4px;
  margin: 0 10px 7px 0;
}

.chatbox .chat p {
  white-space: pre-wrap;
  padding: 8px 16px;
  border-radius: 10px 10px 0 10px;
  max-width: 75%;
  color: #fff;
  font-size: 0.8rem;
  background: #264F8B;
  margin: 0;
}

.chatbox .incoming p {
  border-radius: 10px 10px 10px 0;
  background: #f2f2f2;
  color: #000;
}

.chatbox .chat p.error {
  color: #721c24;
  background: #f8d7da;
}



/* Chat Input */
.chatbot .chat-input {
  display: flex;
  gap: 5px;
  position: absolute;
  bottom: 0;
  width: 100%;
  background: #fff;
  padding: 3px 12px;
  border-top: 1px solid #ddd;
}

.chat-input textarea {
  width: 100%;
  height: 36px;
  border: none;
  outline: none;
  resize: none;
  max-height: 180px;
  padding: 6px 0;
  font-size: 0.95rem;
}

.chat-input span {
  align-self: flex-end;
  color: #264F8B;
  cursor: pointer;
  height: 32px;
  display: flex;
  align-items: center;
  visibility: hidden;
  font-size: 1.35rem;
}

.chat-input textarea:valid ~ span {
  visibility: visible;
}

/* Scrollbar */
.chatbot .chatbox::-webkit-scrollbar,
.chatbot textarea::-webkit-scrollbar {
  width: 6px;
}

.chatbot .chatbox::-webkit-scrollbar-track,
.chatbot textarea::-webkit-scrollbar-track {
  background: #fff;
  border-radius: 25px;
}

.chatbot .chatbox::-webkit-scrollbar-thumb,
.chatbot textarea::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 25px;
}

/* Suggestions */
.chatbot .suggestion {
  max-height: 150px;
  display: flex;
  position: absolute;
  bottom: 70px;
  width: 100%;
  background: transparent;
  padding: 2px;
  border: none;
  flex-wrap: wrap;
  flex-direction: row;
  overflow-y: scroll;
}

.suggestion-btn {
  border-radius: 4px !important;
  margin: 1px !important;
  font-weight: normal !important;
  font-size: 0.65rem !important;
  flex: 1 1 90% !important;
  border: 0.5px solid #264F8B !important;
  color: #264f8B !important;
  text-align: left !important;
}

.suggestion-red{
  border-radius: 4px !important;
  margin: 1px !important;
  font-weight: normal !important;
  font-size: 0.65rem !important;
  flex: 1 1 90% !important;
  border: 1px solid red !important;
  color: red !important;
  text-transform: capitalize !important;
}

.suggestion-red:hover{
  background-color: red !important;
  color: white !important;
}

.suggestion-btn:hover{
  background: #264f8B !important;
  color: white !important;
}

/* Grid System */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 3fr));
  gap: 0.5rem;
}

.grid-item {
  cursor: pointer !important;
  height: 92px !important;
  background-color: #ffffff !important;
  border: 1px solid #035daa !important;
  border-radius: 8px !important;
  padding: 0.5rem !important;
  text-align: center !important;
  transition: transform 0.2s ease-in-out !important;
}

.grid-item:hover {
  transform: scale(1.05) !important;
}

/* .grid-item img {
  width: 50% !important;
  height: auto !important;
  border-radius: 8px !important;
} */

.grid-item p {
  padding-top: 8px !important;
  margin-bottom: 0 !important;
  font-size: 0.75rem !important;
}

.aiBotImg{
  width: 7rem;
  position: absolute;
  bottom: 32px;
  right: 0px;
}

.innerChatImage{
  position: absolute;
  right: 0px;
  bottom: -16px;
}

.aiBotLabel{
  color: white !important;
  position: absolute !important;
  right: 12px !important;
  opacity: 1 !important;
  font-size: 1rem !important;
}

.banner-msg{
  height: 86px !important;
}

/* Utility Classes */
.bg-theme {
  background-color: #264F8BDD;
}

.borderx {
  border: 1px solid #264F88BB;
}

/* Mobile Optimization */
@media (max-width: 490px) {
  .chatbot-toggler {
    right: 20px;
    bottom: 20px;
  }

  .chatbot {
    right: 0;
    bottom: 0;
    height: 100%;
    border-radius: 0;
    width: 100%;
  }

  .chatbot .chatbox {
    height: 90%;
    padding: 25px 15px 100px;
  }

  .chatbot .chat-input {
    padding: 5px 15px;
  }

  .chatbot header span {
    display: block;
  }
}
