body {
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  transition: background 0.3s, color 0.3s;
}

.container {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  width: 400px;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
}

textarea {
  width: 100%;
  height: 150px;
  padding: 10px;
  font-size: 16px;
  resize: none;
}

.stats {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.buttons {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
}

button {
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
}

.switch {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.switch input {
  display: none;
}

.slider {
  width: 50px;
  height: 25px;
  background: #ccc;
  border-radius: 25px;
  position: relative;
  cursor: pointer;
  margin-right: 10px;
}

.slider::before {
  content: '';
  position: absolute;
  width: 21px;
  height: 21px;
  background: white;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: 0.3s;
}

input:checked + .slider::before {
  transform: translateX(25px);
}

body.dark {
  background: #121212;
  color: #f0f0f0;
}

body.dark .container {
  background: #1e1e1e;
}

body.dark textarea {
  background: #2a2a2a;
  color: #f0f0f0;
}