body {
  font-family: sans-serif;
  background-color: #f8a6a6;
  margin: 0;
  padding: 0;
}

.message img {
  max-width: 200px;
  margin-top: 4px;
}

.timestamp {
  font-size: 0.75em;
  color: #888;
  margin-top: 4px;
  text-align: center; /* Ensure timestamp is centered */
}

.message img {
  max-width: 100%;
  display: block;
  margin-top: 5px;
  border-radius: 4px;
}

.message {
  padding: 8px;
  border-radius: 6px;
  max-width: 70%;
  word-wrap: break-word;
  display: inline-block;
}

.message.me {
  background-color: #d1e7dd;
  align-self: flex-end;
  text-align: right;
}

.message.them {
  background-color: #fde2e2;
  align-self: flex-start;
  text-align: left;
}

.chat-container {
  max-width: 600px;
  margin: 40px auto;
  background: rgb(242, 179, 179);
  border: 1px solid #ccc;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.messages {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

input[type="text"],
input[type="file"] {
  width: calc(100% - 12px);
  padding: 6px;
  margin-bottom: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#sendBtn {
  padding: 8px 16px;
  background-color: #3b82f6;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
}

#sendBtn:hover {
  background-color: #2563eb;
}
.message img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 5px;
  border-radius: 8px;
}
.message {
  padding: 8px;
  margin: 5px;
  border-radius: 8px;
  max-width: 70%;
  word-wrap: break-word;
  position: relative;
  background: #eee;
}

.message.me {
  background: #d1ffd1;
  align-self: flex-end;
}

.message.them {
  background: #f1f1f1;
  align-self: flex-start;
}

.reply-preview {
  font-size: 12px;
  color: #444;
  background: #e0e0e0;
  padding: 4px;
  margin-bottom: 4px;
  border-left: 3px solid #888;
}
