@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #667eea, #764ba2);
  transition: background 0.5s ease;
}

body.dark {
  background: linear-gradient(135deg, #141e30, #243b55);
}

.app {
  width: 380px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  color: #fff;
  transition: all 0.3s ease;
}

body.dark .app {
  background: rgba(0, 0, 0, 0.4);
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top h1 {
  font-size: 1.6rem;
}

#themeToggle {
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: inherit;
}

textarea {
  width: 100%;
  height: 130px;
  margin: 15px 0;
  padding: 12px;
  border-radius: 10px;
  border: none;
  resize: none;
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

textarea::placeholder {
  color: #ddd;
}

.control label {
  font-size: 13px;
  opacity: 0.8;
}

select, input[type="range"] {
  width: 100%;
  margin: 8px 0 15px;
  border-radius: 8px;
  border: none;
  padding: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  outline: none;
  cursor: pointer;
}

.range label {
  font-size: 13px;
  opacity: 0.8;
}

input[type="range"] {
  accent-color: #667eea;
}

.buttons {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: #667eea;
  color: #fff;
  font-weight: 500;
  transition: 0.3s;
}

button:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

button.danger {
  background: #ff5c5c;
}

footer {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  opacity: 0.8;
}
