/* General Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #fdf6f0;
  color: #333;
  padding: 20px;
}

.container {
  max-width: 700px;
  margin: auto;
  background: #fff;
  padding: 30px 20px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  color: #e28f83;
  margin-bottom: 25px;
}

label {
  display: block;
  margin-top: 15px;
  font-weight: 600;
  color: #555;
}

input, textarea, select {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

button {
  background-color: #e28f83;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 1em;
  cursor: pointer;
  margin-top: 20px;
  width: 100%;
}

button:hover {
  background-color: #cf786c;
}

.copy-btn {
  background-color: #6ab04c;
}

.copy-btn:hover {
  background-color: #56a645;
}

h2 {
  margin-top: 30px;
  font-size: 1.3em;
  color: #444;
  border-bottom: 2px solid #e28f83;
  padding-bottom: 5px;
}

footer {
  text-align: center;
  margin-top: 40px;
  font-size: 0.9em;
  color: #777;
}

footer a {
  color: #e28f83;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Toggle Switch */
.toggle-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 10px;
  gap: 10px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #2196f3;
}

input:checked + .slider:before {
  transform: translateX(24px);
}

/* Dark Mode Styles */
body.dark {
  background-color: #1e1e1e;
  color: #f0f0f0;
}

body.dark .container {
  background: #2b2b2b;
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.05);
}

body.dark input, 
body.dark textarea, 
body.dark select {
  background: #444;
  color: #f0f0f0;
  border: 1px solid #777;
}

body.dark button {
  color: white;
}

body.dark footer {
  color: #aaa;
}

/* Responsive Design */
@media (max-width: 600px) {
  .container {
    padding: 20px 15px;
  }

  h1 {
    font-size: 1.5em;
  }

  button {
    font-size: 0.95em;
  }

  footer {
    font-size: 0.85em;
  }
}
