body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 20px;
  transition: background 0.3s ease;
  background-color: #f0f4f8; /* soft light blue-gray */
}



.container {
  max-width: 1000px;
  margin: auto;
}

h1 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 10px;
}

.controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 15px;
}

button {
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  background-color: #007bff;
  color: white;
  cursor: pointer;
  font-size: 0.9rem;
}

button:hover {
  background-color: #0056b3;
}

textarea {
  width: 100%;
  height: 200px;
  padding: 10px;
  font-size: 1rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  resize: vertical;
}

.preview {
  width: 100%;
  min-height: 200px;
  padding: 15px;
  background: #ffffff;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: auto;
  margin-top: 15px;
  resize: vertical;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);

}

.preview.dark {
  background: #1e1e1e;
  color: #eee;
}

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

body.dark {
  background-color: #121212;
}
