* {
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  font-family: "Poppins", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  color: #fff;
}

.chat-container {
  width: 400px;
  height: 600px;
  background: #0f3460;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.chat-header {
  background: #533483;
  text-align: center;
  padding: 15px;
  font-weight: 600;
  letter-spacing: 1px;
}

.chat-box {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.message {
  max-width: 80%;
  padding: 10px 15px;
  border-radius: 20px;
  margin: 8px 0;
  animation: fadeIn 0.3s ease-in-out;
}

.user {
  align-self: flex-end;
  background: #00adb5;
  color: #fff;
  border-bottom-right-radius: 0;
}

.bot {
  align-self: flex-start;
  background: #e5e5e5;
  color: #000;
  border-bottom-left-radius: 0;
}

.typing {
  align-self: flex-start;
  background: #e5e5e5;
  color: #555;
  font-style: italic;
}

.chat-input {
  display: flex;
  padding: 10px;
  background: #1a1a2e;
}

.chat-input input {
  flex: 1;
  border: none;
  border-radius: 20px;
  padding: 10px 15px;
  outline: none;
  background: #16213e;
  color: #fff;
}

.chat-input button {
  margin-left: 10px;
  background: #00adb5;
  border: none;
  color: white;
  border-radius: 20px;
  padding: 10px 15px;
  cursor: pointer;
  transition: 0.3s;
}

.chat-input button:hover {
  background: #06d6a0;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
