body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.chat-container {
  width: 90%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  padding: 20px;
  color: white;
  transition: 0.4s ease;
}

.chatbox {
  max-height: 350px;
  overflow-y: auto;
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.5;
  padding-right: 5px;
  scroll-behavior: smooth;
}

#typing {
  font-style: italic;
  color: #ddd;
  margin-bottom: 10px;
  animation: blink 1s steps(1, end) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.input-area {
  display: flex;
  gap: 10px;
}

#userInput {
  flex: 1;
  padding: 10px 15px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  outline: none;
  transition: 0.3s ease;
  font-size: 14px;
}

#userInput::placeholder {
  color: #ccc;
}

#userInput:focus {
  background: rgba(255, 255, 255, 0.25);
}

button {
  padding: 10px 15px;
  border: none;
  border-radius: 12px;
  background: #00c6ff;
  color: white;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 0 10px #00c6ff88;
}

button:hover {
  background: #0072ff;
  transform: scale(1.05);
}
