body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0px;
  margin-top: 10px;
  margin-bottom: 5px;
  background-color: #f0f0f0;
}

.lang-toggle {
  margin-top: 0px;
  margin-bottom: 10px;
  text-align: right;
  padding-top: 0px;
  font-size: 15px;
}
.lang-toggle button {
  margin-top: 0px;
  margin-bottom: 0px;
  text-align: right;
  padding-top: 0px;
  font-size: 10px;
}



.chat-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  max-width: 600px;
  margin: auto;
  height: 100vh;
  overflow-y: auto;
}

.message {
  max-width: 75%;
  padding: 12px 16px;
  border-radius: 16px;
  line-height: 1.4;
  font-size: 15px;
}

.sent {
  background-color: #0e7eff;
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.received {
  background-color: #e5e5ea;
  color: black;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.message img {
  max-width: 100%;
  border-radius: 12px;
}

.message.image-only {
  padding: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
  max-width: 100%; /* make it stretch if needed */
}

.message.image-only img {
  display: block;
  border-radius: 12px;
  max-width: 100%;
}

.message[data-lang] {
  display: none;
}
