body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #2f2f2f;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.chat-container {
  width: 400px;
  height: 600px;
  background-color: #1e1e1e;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  background-color: #155aaa;
  color: black;
  padding: 15px;
  font-size: 20px;
  font-weight: bold;
}

.chat-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message {
  padding: 12px 14px;
  border-radius: 14px;
  max-width: 70%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.received {
  background-color: #3b3b3b;
  color: white;
  align-self: flex-start;
}

.sent {
  background-color: #155aaa;
  color: white;
  align-self: flex-end;
}

.sender-name {
  font-size: 12px;
  opacity: 0.75;
  margin-bottom: 4px;
  font-weight: bold;
}

.message p {
  margin: 0;
  line-height: 1.4;
}

.reaction-row {
  display: flex;
  gap: 8px;
}

.reaction-button {
  border: none;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background-color 0.15s ease;
}

.reaction-button:hover {
  transform: translateY(-1px);
}

.reply-button {
  border: none;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.message-reply {
  border-left: 3px solid rgba(255, 255, 255, 0.35);
  padding-left: 10px;
  margin-bottom: 8px;
  font-size: 13px;
  opacity: 0.9;
  max-height: 4.2em;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.reply-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  margin-bottom: 10px;
}

.reply-preview.hidden {
  display: none;
}

.reply-preview-text {
  flex: 1;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#cancelReplyButton {
  border: none;
  background: transparent;
  color: #ffbaba;
  cursor: pointer;
}

.like-button {
  background-color: rgba(255, 255, 255, 0.12);
  color: white;
}

.dislike-button {
  background-color: rgba(255, 255, 255, 0.12);
  color: white;
  border: 1px solid red;
}

.chat-input-area {
  display: flex;
  flex-direction: column;
  padding: 10px;
  background-color: #2a2a2a;
}

.chat-input-area input {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  background-color: #121212;
  color: white;
}

.chat-input-area input:focus {
  outline: none;
}

.chat-input-area button {
  margin-left: 10px;
  padding: 10px 15px;
  border: none;
  background-color: #155aaa;
  color: black;
  border-radius: 5px;
  cursor: pointer;
}
