body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #ece5dd;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.chat-wrapper {
  width: 100%;
  max-width: 480px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.chat-header {
  background-color: #075e54;
  color: white;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
}

.share-banner {
  padding: 10px;
  background-color: #fff3cd;
  color: #856404;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-bottom: 1px solid #ffeeba;
}

.share-banner input {
  padding: 6px 10px;
  font-size: 0.8rem;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.chat-body {
  position: relative;
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background-color: #f9f9f9;
  z-index: 1;
}

.chat-body::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('/images/wall.jpeg');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: -1;
}

.message {
  max-width: 75%;
  padding: 0.6rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  line-height: 1.4;
  word-wrap: break-word;
}

.message.self {
  align-self: flex-end;
  background-color: #dcf8c6;
}

.message.other {
  align-self: flex-start;
  background-color: #f1f0f0;
}

.chat-input {
  display: flex;
  padding: 10px;
  background-color: #f0f0f0;
  border-top: 1px solid #ccc;
}

#message-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 30px;
  outline: none;
  font-size: 1rem;
  background: #fff;
  margin-right: 10px;
}

button {
  padding: 0.75rem 1.2rem;
  border: none;
  border-radius: 30px;
  background-color: #25d366;
  color: white;
  font-weight: bold;
  cursor: pointer;
}
