body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background: #f1f1f1;
  height: 100vh;
  overflow: hidden;
}

.chat-container {
  max-width: 600px;
  margin: auto;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
}

.chat-header {
  background-color: #4a90e2;
  color: white;
  padding: 15px;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  border-bottom: 1px solid #ccc;
}

.chat-box {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  background-color: #f9f9f9;
  display: flex;
  flex-direction: column;
}

.message {
  max-width: 75%;
  padding: 10px 15px;
  border-radius: 16px;
  margin: 6px 0;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
  box-shadow: 0px 1px 3px rgba(0,0,0,0.1);
  word-wrap: break-word;
}

.message.me {
  align-self: flex-end;
  background: #dcf8c6;
  border-bottom-right-radius: 4px;
}

.message.them {
  align-self: flex-start;
  background: #ffffff;
  border-bottom-left-radius: 4px;
  border: 1px solid #e0e0e0;
}

.timestamp {
  font-size: 11px;
  color: #999;
  margin-top: 4px;
  text-align: right;
}

.chat-input-area {
  display: flex;
  padding: 10px;
  border-top: 1px solid #ddd;
  background: #fff;
  position: sticky;
  bottom: 0;
}

.chat-input-area input[type="text"] {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ccc;
  border-radius: 25px;
  font-size: 14px;
  outline: none;
}

.chat-input-area button {
  margin-left: 10px;
  padding: 10px 20px;
  border: none;
  background: #4a90e2;
  color: #fff;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.chat-input-area button:hover {
  background-color: #3a78c2;
}

.chat-box::-webkit-scrollbar {
  width: 6px;
}
.chat-box::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}
