/* ====== Global Reset ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

/* ====== Body ====== */
body {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

/* ====== Chat Container ====== */
.chat-container {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: fadeIn 0.5s ease;
}

/* ====== Chatbox ====== */
#chatbox {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  scroll-behavior: smooth;
}
#chatbox::-webkit-scrollbar {
  width: 6px;
}
#chatbox::-webkit-scrollbar-thumb {
  background: #00e0ff;
  border-radius: 10px;
}

/* ====== Chat Bubble ====== */
.chat-bubble {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  margin: 0.3rem 0;
  max-width: 80%;
  word-wrap: break-word;
  animation: bubblePop 0.3s ease;
}
.chat-bubble.user {
  background: #00bcd4;
  color: #fff;
  align-self: flex-end;
}
.chat-bubble.ai {
  background: #f1f1f1;
  color: #333;
  align-self: flex-start;
}

/* ====== Form Input ====== */
#chatForm {
  display: flex;
  border-top: 1px solid rgba(255,255,255,0.2);
}
#message {
  flex: 1;
  padding: 0.8rem;
  border: none;
  outline: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
}
#message::placeholder {
  color: #ccc;
}
#chatForm button {
  background: #00e0ff;
  border: none;
  padding: 0 1.2rem;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}
#chatForm button:hover {
  background: #00bcd4;
}

/* ====== Quick Suggest Buttons ====== */
.quick-btn {
  background: rgba(0,224,255,0.8);
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease;
}
.quick-btn:hover {
  background: #00bcd4;
  transform: scale(1.05);
}

/* ====== Reset Button ====== */
.reset-btn {
  background: #ff4d4d;
  color: #fff;
  padding: 0.6rem;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}
.reset-btn:hover {
  background: #e60000;
}

/* ====== Animations ====== */
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(20px);}
  to {opacity: 1; transform: translateY(0);}
}
@keyframes bubblePop {
  from {transform: scale(0.8); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}
