* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #f2f2f2;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.chat-container {
  width: 420px;
  height: 650px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);

  display: flex;
  flex-direction: column;
}

.chat-header {
  background: #111827;
  color: white;
  padding: 18px;
  font-size: 18px;
  font-weight: bold;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-box {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  background: #f9fafb;
}

.message {
  max-width: 85%;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-spacing: normal;
  letter-spacing: normal;
}

.user {
  background: #2563eb;
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 5px;
}

.bot {
  background: white;
  border: 1px solid #ddd;
  color: #111;
  border-bottom-left-radius: 5px;
}

.chat-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid #ddd;
  background: white;
}

.chat-input input[type="text"] {
  flex: 1;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  outline: none;
  font-size: 14px;
}

.chat-input button {
  border: none;
  background: #2563eb;
  color: white;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
}

.chat-input button:hover {
  opacity: 0.9;
}