.sent-message {
  background-color: #dcf8c6; /* 设置发送消息的背景颜色为绿色 */
  align-self: flex-end; /* 将发送的消息右对齐 */
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 4px;
  max-width: 70%; /* 适当调整最大宽度 */
  text-align: right; /* 文本右对齐 */
}
.sent-message-container {
  display: flex;
  justify-content: flex-end;
}

.received-message-container {
  display: flex;
  justify-content: flex-start;
}

.sent-avatar {
  display: none;
}

.received-avatar {
  display: none;
}

.sent-message-details {
  background-color: #dcf8c6; /* 绿色，发送者消息背景颜色 */
  color: white; /* 文字颜色为白色 */
  border-radius: 10px;
  padding: 8px;
}

.received-message-details {
  background-color: #E0E0E0; /* 灰色，接收者消息背景颜色 */
  border-radius: 10px;
  padding: 8px;
}
.sent-message-details {
  background-color: #dcf8c6; /* 绿色 */
  color: white; /* 文字颜色为白色 */
  border-radius: 10px;
  padding: 8px;
}

.received-message-details {
  background-color: #E0E0E0; /* 灰色 */
  border-radius: 10px;
  padding: 8px;
}
.sent-message-container {
  text-align: right;
}

.received-message-container {
  text-align: left;
}

.sent-avatar {
  float: right;
}

.received-avatar {
  float: left;
}
.received-message {
  background-color: #f0f0f0; /* 设置接收消息的背景颜色为灰白色 */
  align-self: flex-start; /* 将接收的消息左对齐 */
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 4px;
  max-width: 70%; /* 适当调整最大宽度 */
  text-align: left; /* 文本左对齐 */
}

.message-text {
  color: #333; /* 消息文本颜色 */
}

.message-time {
  font-size: 12px;
  color: #888; /* 时间文本颜色 */
  margin-top: 4px;
}

.message-details {
  display: flex;
  flex-direction: column;
}

.message-avatar {
  width: 32px;
  height: 32px;
  margin-left: 8px;
  margin-right: 8px;
}