@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(circle at top, #0f172a, #1e293b);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
}

.chat-wrapper {
  width: 420px;
  max-width: 95%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chat-header {
  background: rgba(37, 99, 235, 0.4);
  text-align: center;
  padding: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-header h1 {
  margin: 0;
  font-size: 1.6em;
}

.chat-header p {
  margin: 5px 0 0;
  font-size: 0.9em;
  color: #a5b4fc;
}

.chat-box {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-msg, .bot-msg {
  padding: 10px 15px;
  border-radius: 16px;
  max-width: 80%;
  animation: fadeIn 0.2s ease-in-out;
}

.user-msg {
  background: #2563eb;
  align-self: flex-end;
}

.bot-msg {
  background: #334155;
  align-self: flex-start;
}

.typing {
  font-style: italic;
  color: #94a3b8;
}

.chat-input {
  display: flex;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.8);
}

.chat-input input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  padding: 12px;
  font-size: 1em;
  outline: none;
}

.chat-input button {
  background: #2563eb;
  color: white;
  border: none;
  padding: 0 20px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.chat-input button:hover {
  background: #1d4ed8;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
