/* ===== PAGE BG ===== */
body{
  margin:0;
  background:
    radial-gradient(circle at top left,#bbf7d0,transparent 45%),
    radial-gradient(circle at bottom right,#86efac,transparent 45%),
    linear-gradient(180deg,#ecfdf5,#f0fdf4);
  font-family: system-ui, -apple-system, BlinkMacSystemFont;
}

/* ===== CHAT BOX ===== */
.chatbox{
  width:380px;
  position:fixed;
  bottom:24px;
  right:24px;
  background:rgba(255,255,255,.85);
  backdrop-filter: blur(14px);
  border-radius:34px;
  overflow:hidden;

  box-shadow:
    0 40px 80px rgba(0,0,0,.35),
    0 15px 30px rgba(0,0,0,.25);
}

/* ===== HEADER ===== */
.header{
  display:flex;
  align-items:center;
  gap:12px;
  padding:16px;
  background:linear-gradient(135deg,#16a34a,#059669);
  color:#fff;
}

.avatar{
  width:44px;
  height:44px;
  border-radius:50%;
  background:#fff;
  color:#16a34a;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  box-shadow:0 8px 18px rgba(0,0,0,.3);
}

.header-text .title{
  font-weight:600;
}
.header-text .subtitle{
  font-size:12px;
  opacity:.9;
}

/* ===== MESSAGES ===== */
.messages{
  height:300px;
  padding:16px;
  overflow-y:auto;
  background:linear-gradient(#f8fafc,#f1f5f9);
}

/* ===== CHAT BUBBLES ===== */
.bot,.user{
  max-width:78%;
  padding:12px 15px;
  margin-bottom:14px;
  border-radius:24px;
  line-height:1.45;
  animation:slideIn .3s ease;
  box-shadow:0 10px 20px rgba(0,0,0,.2);
}

.bot{
  background:linear-gradient(135deg,#dcfce7,#bbf7d0);
  border-bottom-left-radius:8px;
}

.user{
  background:linear-gradient(135deg,#e0e7ff,#c7d2fe);
  margin-left:auto;
  text-align:right;
  border-bottom-right-radius:8px;
}

/* ===== TYPING ===== */
.typing{
  font-size:13px;
  opacity:.6;
  margin-bottom:10px;
}

/* ===== INPUT ===== */
.input-area{
  display:flex;
  align-items:center;
  padding:10px;
  gap:10px;
  background:#fff;
  border-top:1px solid #e5e7eb;
}

.input-area input{
  flex:1;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid #e5e7eb;
  outline:none;
  font-size:14px;
}

.send-btn{
  background:linear-gradient(135deg,#16a34a,#059669);
  color:#fff;
  border:none;
  width:38px;
  height:38px;
  border-radius:50%;
  cursor:pointer;
  box-shadow:0 6px 14px rgba(0,0,0,.3);
}

/* ===== BUTTONS ===== */
.buttons{
  padding:12px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  background:#fff;
}

.buttons button{
  flex:1;
  padding:10px;
  border:none;
  border-radius:999px;
  background:linear-gradient(135deg,#16a34a,#059669);
  color:#fff;
  font-size:13px;
  cursor:pointer;
  box-shadow:0 6px 14px rgba(0,0,0,.3);
  transition:.2s;
}

.buttons button:hover{
  transform:translateY(-1px);
}

/* ===== ANIMATION ===== */
@keyframes slideIn{
  from{
    opacity:0;
    transform:translateY(10px) scale(.95);
  }
  to{
    opacity:1;
    transform:none;
  }
}
