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

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    sans-serif;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

a {
  color: #34d399;
}

.container {
  background: #252525;
  border: 2px solid #34d399;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(16, 185, 129, 0.3);
  padding: 40px;
  max-width: 800px;
  width: 100%;
}

h1 {
  text-align: center;
  color: #34d399;
  margin-bottom: 30px;
  font-size: 2em;
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.parameters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.param-group {
  display: flex;
  flex-direction: column;
}

label {
  font-weight: 600;
  color: #34d399;
  margin-bottom: 8px;
  font-size: 0.9em;
}

input[type="number"],
input[type="range"] {
  padding: 10px;
  border: 2px solid #404040;
  border-radius: 8px;
  font-size: 1em;
  transition: border-color 0.3s;
  background: #1a1a1a;
  color: #34d399;
}

input[type="number"]:focus,
input[type="range"]:focus {
  outline: none;
  border-color: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.4);
}

input[type="range"] {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  background: #404040;
  border-radius: 4px;
  padding: 0;
}

/* Webkit/Chrome/Safari */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #34d399;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
  transition: transform 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

/* Firefox */
input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #34d399;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
  transition: transform 0.2s;
}

input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.1);
}

input[type="range"]::-moz-range-track {
  height: 8px;
  background: #404040;
  border-radius: 4px;
}

.value-display {
  text-align: center;
  font-weight: bold;
  color: #34d399;
  margin-top: 5px;
}

.param-description {
  font-size: 0.75em;
  color: #9ca3af;
  margin-top: 5px;
  line-height: 1.4;
}

textarea {
  width: 100%;
  min-height: 120px;
  padding: 15px;
  border: 2px solid #404040;
  border-radius: 8px;
  font-size: 1em;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.3s;
  margin-bottom: 20px;
  background: #1a1a1a;
  color: #34d399;
}

textarea:focus {
  outline: none;
  border-color: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.4);
}

textarea::placeholder {
  color: #6b7280;
}

button {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  color: #1a1a1a;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(16, 185, 129, 0.5);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  background: #404040;
  color: #6b7280;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

button:disabled:hover {
  transform: none;
  box-shadow: none;
}

button.stop-button {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
}

button.stop-button:hover {
  box-shadow: 0 5px 15px rgba(239, 68, 68, 0.5);
}

#output {
  margin-top: 25px;
  padding: 20px;
  background: #1a1a1a;
  border: 1px solid #404040;
  border-radius: 8px;
  min-height: 100px;
  white-space: pre-wrap;
  word-wrap: break-word;
  line-height: 1.6;
  color: #34d399;
}

#output:empty {
  display: none;
}
.copyright {
  text-align: center;
  color: #6b7280;
  font-size: 0.85em;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #404040;
}
