* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  max-width: 1560px;
  min-width: 1240px;
  margin: 20px auto;
  overflow: hidden;
  color: #333;
}

.container *{
  box-sizing: border-box;
}

header {
  width: 100%;
  text-align: center;
  margin-bottom: 25px;
}

header h1 {
  font-size: 2.1rem;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

header .intro {
  font-size: 1rem;
  max-width: 95%;
  margin: auto;
  opacity: 0.9;
}

.content {
  display: flex;
  gap: 20px;
}

.config-panel {
  flex: 1;
  background: #f9fafb;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.result-panel {
  flex: 1.5;
  background: #f9fafb;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.panel-title {
  font-size: 1.2rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e7ff;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-group {
  margin-bottom: 22px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2c3e50;
  font-size: 1.05rem;
}

input,
select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  background: white;
  transition: border-color 0.3s;
}

input:focus,
select:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.range-input {
  display: flex;
  align-items: center;
  gap: 10px;
}

.range-input input {
  flex: 1;
}

.advanced-options {
  background: #edf2f7;
  padding: 20px;
  border-radius: 8px;
  margin-top: 25px;
}

.option-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.option-row>div {
  flex: 1;
}

.hidden {
  display: none;
}

.buttons {
  display: flex;
  gap: 15px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.btn {
  padding: 13px 25px;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
}

.btn-primary {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  flex: 2;
}

.btn-secondary {
  background: #e0e7ff;
  color: #4f46e5;
  flex: 1;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2980b9, #2573a7);
}

.btn-secondary:hover {
  background: #d0d7ff;
}

.btn:active {
  transform: translateY(0);
}

textarea {
  width: 100%;
  height: 380px;
  padding: 20px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-size: 1.05rem;
  line-height: 1.8;
  resize: none;
  background: #f8fafc;
  margin-bottom: 25px;
}

.result-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

.result-info {
  margin-top: 15px;
  padding: 15px;
  background: #e0f2fe;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #0c4a6e;
}

.instructions {
  background: #fff8dd;
  border-left: 4px solid #ffd43b;
  padding: 20px;
  margin-top: 20px;
  border-radius: 0 8px 8px 0;
  border-radius: 10px;
}

.instructions h3 {
  font-size: 1.2rem;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 10px;
}

.instructions p {
  margin-top: 12px;
}

.instructions ul {
  padding-left: 25px;
  margin-top: 10px;
}

.instructions li {
  margin-top: 10px;
}

.highlight {
  background: #ffec99;
  padding: 0 5px;
  border-radius: 3px;
}

.example {
  font-family: 'Courier New', monospace;
  background: #f1f5f9;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 0.95rem;
}

.toggle-link {
  color: #3498db;
  cursor: pointer;
  font-weight: 600;
  margin-top: 10px;
  display: inline-block;
}

.toggle-link:hover {
  text-decoration: underline;
}

footer {
  text-align: center;
  color: #6b7280;
  font-size: 0.9rem;
  margin-top: 20px;
}
