.chat-container {
  width: 100%;
  height: calc(100vh - 350px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  margin-bottom: 40px;
}
.message-wrapper {
  display: flex;
  /* align-items: flex-end; */
  margin-bottom: 12px;
  align-items: center;
}
.received-wrapper {
  align-self: flex-start;
}
.sent-wrapper {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-container {
  display: flex;
  align-items: start;
  flex-direction: row-reverse;
  justify-content: start;
}
.message-content {
  color: white;
  padding: 0 6px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  /* align-items: flex-end; */
  /* max-width: 75%; */
  position: relative;
}
.sent {
  background: #0078ff !important;
  text-align: start;
  margin-right: 10px;
}
.username {
  font-size: 14px;
  color: #aaa;
  /* margin-top: 4px; */
  text-align: start;
  font-weight: 600;
  margin-right: 4px;
}
.message-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin: 0 10px;
  border: 1px solid #d4d4d4;
}
.chat-footer {
  max-width: 800px;
  display: flex;
  padding: 10px;
  background: #171717;
  border-top: 1px solid #ffffff36;
  margin-bottom: 6px;
  position: fixed;
  width: 100%;
  bottom: 50px;
}
input {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 18px;
  margin-right: 10px;
  background: #252525;
  height: 38px;
  color: #ffffff;
}
button {
  border: none;
  cursor: pointer;
  background: inherit;
  color: #fff;
}
/* .message-content {
  background: #333;
  color: white;
  padding: 10px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  max-width: 75%;
  position: relative;
}

.sent {
  background: #0078ff !important;
} */

.message-text {
  flex-grow: 1; /* Ensures text takes most space */
  word-wrap: break-word;
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: break-word; /* Allows long words to wrap */
  word-break: break-word; /* Breaks words when necessary */
  white-space: pre-wrap; /* Ensures spaces and new lines are maintained */
  max-width: 100%; /* Prevents message from exceeding container width */
}

.message-timestamp {
  font-size: 10px;
  color: #ffffff;
  margin-left: 10px; /* Space between text and time */
  align-self: flex-end;
  white-space: nowrap;
}
