@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap');

body {
  margin: 0;
  padding: 0;
  background-color: #F4F4F4;
  font-family: "Jost", sans-serif;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;

  overflow: scroll;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
}
 
.chat-container {
  background-color: transparent;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  box-shadow: none;
  overflow: hidden;
  border: none;
  box-sizing: border-box;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px;
  background: #FFF;
}

.chat-header h2 {
  color: #444;
  margin: 0;
  font-size: 18px;
}

.chat-header p {
  margin: 2px 0 0;
  color: #aaa;
  font-size: 0.9em;
}

.trash-button {
  font-size: 15px;
  cursor: pointer;
  background: #FFF;
  border: 1px solid #999;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  color: #000;
}

.chat-box {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
  width: 700px;
  margin: auto;
}

.chat-box::-webkit-scrollbar {
  display: none;  /* Chrome, Safari, Opera */
}

.chat-message {
  margin-bottom: 16px;
  justify-content: space-between;
  clear: both;
}

.chat-message.user {
  float: right;
  text-align: right;
  color: #ffffff;
  border: 2px solid #4d7cfe;
  background-color: #4d7cfe;
  border-radius: 15px 15px 0px 15px;
  padding: 15px;
  margin-right: 0;
  font-size: 17px;
  line-height: 23px;
}

.chat-message.bot {
  text-align: left;
  color: #212121;
  background-color: #EEE;
  border-radius: 15px 15px 15px 0;
  padding: 20px;
  margin-right: 113px;
  border: 0;
  font-size: 17px;
  line-height: 23px;
}

/* Special styling for bot messages with loader */
.chat-message.bot.loading {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
}

.chat-input {
    display: flex;
    padding: 0;
    background-color: #FFF;
    border: 1px solid #EEE;
    border-radius: 15px;
    overflow: hidden;
    max-width: 700px;
    margin: 0 auto 25px;
    width: 100%;
    align-items: center;
    box-sizing: border-box;
  }

.chat-input input {
  flex: 1;
  background: #FFF;
  border: none;
  border-radius: 8px;
  padding: 25px 20px;
  color: #212121;
  font-size: 17px;
  outline: none;
  height: 50px;
  width: 100%;
  font-family: "Jost", sans-serif;
}

.chat-input button {
  background: #888;
  border: none;
  padding: 0;
  font-size: 29px;
  color: #FFF;
  cursor: pointer;
  width: 60px;
  margin: 0;
  height: 60px;
  border-radius: 50%;
  line-height: 1;
}

.header-logo {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 10px;
  align-items: center;
}

.header-logo sup {
  border-radius: 50px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: bold;
  margin-top: -40px;
  margin-left: -10px;
  background-color:#00b26b ;
  font-size: 17px;
  font-weight: 700;
}

h2.header-text {
  padding: 0;
  width: 1000px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Loader styles - updated for chat message context */
.loader-wrapper {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: inline-block;
}

.center-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
  z-index: 3;
  animation: bounce 1.2s infinite ease-in-out;
}

.base-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  border: 3px solid #ddd;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.loading-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  border: 3px solid transparent;
  border-top: 3px solid #00c37e;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: rotate 1.5s linear infinite;
  z-index: 2;
}

.loader-text {
  color: #212121;
  font-size: 17px;
  line-height: 23px;
  font-family: "Jost", sans-serif;
  margin-left: 10px;
}

/* Container for loader and text */
.loader-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

@keyframes rotate {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes bounce {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -52%) scale(1.4);
  }
}