/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", system-ui, sans-serif;
}

body {
  background: radial-gradient(circle at top, #0f172a, #020617);
  color: #e5e7eb;
  min-height: 100vh;
  padding: 40px 16px;
}

/* MAIN CONTAINER */
.app {
  max-width: 900px;
  margin: auto;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  animation: fadeIn 0.6s ease;
}

h1 {
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  margin-top: 12px;
  color: #94a3b8;
  line-height: 1.6;
}

.subtitle a {
  color: #38bdf8;
  text-decoration: none;
  margin-left: 6px;
}

.subtitle a:hover {
  text-decoration: underline;
}

/* PANEL */
.panel {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.field label,
.edit-panel label {
  font-size: 0.9rem;
  color: #cbd5f5;
  margin-bottom: 6px;
  display: block;
}

textarea,
input,
select {
  width: 100%;
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 12px;
  color: #e5e7eb;
  outline: none;
  transition: all 0.25s ease;
}

textarea {
  min-height: 160px;
  resize: vertical;
  font-family: "JetBrains Mono", monospace;
}

textarea:focus,
input:focus,
select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56,189,248,.2);
}

/* BUTTONS */
button {
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  border: none;
  color: #020617;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(56,189,248,.3);
}

button:active {
  transform: scale(0.97);
}

/* ACTIONS */
.actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.inline {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* EDIT PANEL */
.edit-panel {
  background: rgba(2, 6, 23, 0.6);
  padding: 18px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* OUTPUT */
.output {
  margin-top: 28px;
}

#copy-btn {
  margin-bottom: 10px;
}

/* FOOTER */
footer {
  margin-top: 28px;
  text-align: center;
  color: #64748b;
  font-size: 0.85rem;
}

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

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

/* ANIMATION */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .app {
    padding: 22px;
  }

  h1 {
    font-size: 1.8rem;
  }
}
