body {
  font-family: sans-serif;
  margin: 0;
  transition: background-color 0.3s ease;
}

.container {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
}

textarea {
  width: 100%;
  height: 200px;
  padding: 10px;
  border: 1px solid #ccc;
  resize: vertical;
}

button {
  padding: 10px 20px;
  background-color: #4CAF50;
  color: white;
  border: none;
  cursor: pointer;
}

#sanitizedOutput {
  margin-top: 20px;
  border: 1px solid #ccc;
  padding: 10px;
  white-space: pre-wrap;
}

.theme-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
}

.theme-toggle-label {
  display: inline-block;
  width: 60px;
  height: 34px;
  position: relative;
  cursor: pointer;
}

.theme-toggle-label input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.theme-toggle-label .fa-sun,
.theme-toggle-label .fa-moon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-toggle-label .fa-sun {
  left: 10px;
  opacity: 1;
}

.theme-toggle-label .fa-moon {
  left: 10px;
  opacity: 0;
}

.dark-mode {
  background-color: #333;
  color: #fff;
}

.dark-mode textarea {
  background-color: #444;
  color: #fff;
  border-color: #666;
}

.dark-mode button {
  background-color: #666;
}

.dark-mode #sanitizedOutput {
  border-color: #666;
}

.dark-mode .theme-toggle-label .fa-sun {
  opacity: 0;
}

.dark-mode .theme-toggle-label .fa-moon {
  opacity: 1;
}