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

.chatbot-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999999;
  font-family: 'Inter', sans-serif;
}

/* TOGGLE */
.chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #5b6df6;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  z-index: 9999999;
}

/* WINDOW */
.chat-window {
  width: 360px;
  height: 560px;
  background: #f4f6fb;
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* HEADER */
.chat-header {
  position: relative;
  background: #40488D;
  padding: 16px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  z-index: 1;
}

/* background circle */
.header-bg-circle {
  position: absolute;
  right: -30px;
  top: -30px;
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  z-index: 0;
}

/* LEFT SIDE */
.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
}

/* LOGO */
.avatar {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
   background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.4) 100%
  );
  padding: 4px;
}

/* TEXT */
.header-text {
  display: flex;
  flex-direction: column;
}

.title {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.title span:first-child {
  font-size: 15px;
  font-weight: 600;
}

.title span:last-child {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.9;
}
/* BADGE */
.badge {
  margin-top: 4px;
  font-size: 11px;
  background: rgba(255,255,255,0.2);
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  width: fit-content;
}

/* CLOSE BUTTON */
.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  pointer-events: all;

  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* BODY */
.chat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 14px;
}

/* MESSAGES */
.user-msg,
.bot-msg {
  font-size: 11px;
  line-height: 17px;
  padding: 10px 14px;
  border-radius: 16px;
  margin: 6px 0;
  max-width: 75%;
}

/* WELCOME MESSAGE CARD */
.welcome-msg {
  background: white;
  border-radius: 12px;
  padding: 12px;
  max-width: 85%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* HEADER TEXT */
.welcome-header {
  font-weight: 600;
  font-size: 12px;
  color: #40488D;
  margin-bottom: 6px;
}

/* BODY TEXT */
.welcome-text {
  font-size: 11px;
  line-height: 16px;
  color: #333;
}

.user-msg {
  background: #40488D;
  color: white;
  margin-left: auto;
}

.bot-msg {
  background: white;
}

/* INPUT */
.chat-input {
  display: flex;
  padding: 10px;
  background: white;
  border-top: 1px solid #eee;
  margin-top: auto;
}

.chat-input input {
  flex: 1;
  padding: 12px;
  border-radius: 30px;
  border:  solid #F8F6F6;
  font-size: 16px;
}
.chat-input input:focus {
  border: 1px solid #5b6df6; /* soft blue instead of black */

  /* remove black outline */
  outline: none;

  /* optional glow (modern UI) */
  box-shadow: 0 0 0 2px rgba(91,109,246,0.15);
}

.send-btn {
  margin-left: 8px;
  background: #40488D;
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
}

.chat-footer {
  text-align: center;
  font-size: 10px;
  color: #888;
  padding: 6px 10px 10px;
  background: #f4f6fb;
}
/* MOBILE */
@media (max-width: 768px) {

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

  .chat-window {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
}