:root {
  --primary-color: #007bff;
  --primary-light: #eef6ff;
}

body {
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  margin: 0;
  padding: 0;
}

.chat-container {
  max-width: 700px;
  margin: 60px auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.chat-header {
  background: var(--primary-color);
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h1 {
  font-size: 1.25rem;
  margin: 0;
}

.new-chat-btn {
  background: #fff;
  color: var(--primary-color);
  border: none;
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  font-weight: bold;
}
.new-chat-btn:hover {
  background: #e8f0ff;
}

.messages {
  padding: 1rem;
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.message {
  margin: 0.5rem 0;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  max-width: 80%;
  line-height: 1.4;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.user {
  background: var(--primary-color);
  color: white;
  align-self: flex-end;
}

.agent {
  background: #eef6ff;
  border-left: 4px solid var(--primary-color);
  align-self: flex-start;
}

.input-area {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border-top: 1px solid #ddd;
}

textarea {
  width: 96%;
  resize: none;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 1rem;
  min-height: 80px;
}

button.send-btn {
  margin-top: 0.75rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.75rem;
  cursor: pointer;
  font-size: 1rem;
}

button.send-btn:hover {
  background: #0056b3;
}
