body {
  font-family: Arial, sans-serif;
  max-width: 900px;
  margin: auto;
  padding: 20px;
}

textarea {
  width: 100%;
  min-height: 110px;
  margin: 10px 0;
  padding: 10px;
}

button {
  background: #25D366;
  color: white;
  border: none;
  padding: 10px 15px;
  margin: 5px 3px;
  border-radius: 5px;
  cursor: pointer;
}

.dark-toggle {
  float: right;
}

/* WhatsApp Chat UI */
.chat {
  border: 1px solid #ccc;
  border-radius: 10px;
  max-width: 380px;
  margin: 20px auto;
  background: #e5ddd5;
}

.chat-header {
  background: #075e54;
  color: white;
  padding: 10px;
  border-radius: 10px 10px 0 0;
  font-weight: bold;
}

.chat-body {
  padding: 15px;
  max-height: 250px;
  overflow-y: auto;
}

.message {
  background: #dcf8c6;
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.4;
  max-width: 80%;
}

.message code {
  background: #cfe9ba;
  padding: 2px 4px;
  border-radius: 4px;
}

/* Toast */
#toast {
  visibility: hidden;
  min-width: 120px;
  background: #333;
  color: #fff;
  text-align: center;
  border-radius: 20px;
  padding: 8px 15px;
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  z-index: 999;
}

#toast.show {
  visibility: visible;
  animation: fadein 0.3s, fadeout 0.3s 1.5s;
}

@keyframes fadein { from {opacity: 0;} to {opacity: 1;} }
@keyframes fadeout { from {opacity: 1;} to {opacity: 0;} }

/* Dark mode */
body.dark {
  background: #121212;
  color: #e0e0e0;
}

body.dark textarea {
  background: #1e1e1e;
  color: #e0e0e0;
}

body.dark .chat { background: #0f0f0f; }
body.dark .chat-header { background: #1f7a63; }
body.dark .message { background: #1e1e1e; }