:root {
  --bg: #0f1724; /* deep navy */
  --card: #0b1220;
  --muted: #9aa4b2;
  --accent: #6ee7b7; /* soft green */
  --primary: #60a5fa; /* blue */
  --glass: rgba(255, 255, 255, 0.04);
}
* {
  box-sizing: border-box;
}
body {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial;
  background: linear-gradient(180deg, #071025 0%, #091421 100%);
  color: #e6eef6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 24px;
}
.container {
  max-width: 1000px;
  margin: 24px auto;
  padding: 28px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.6);
}
h1 {
  font-size: 22px;
  margin: 0 0 6px 0;
  color: var(--accent);
}
.lead {
  color: var(--muted);
  margin-bottom: 18px;
}
label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 600;
  color: #cfe8e1;
}
input[type="file"] {
  display: block;
}
form .row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: var(--card);
  color: inherit;
  min-height: 120px;
}
select {
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: var(--card);
  color: inherit;
}
.controls {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}
button {
  appearance: none;
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(90deg, var(--primary), #3b82f6);
  color: white;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.14);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}
button:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(59, 130, 246, 0.18);
}

#previews {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.preview {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  box-shadow: 0 6px 20px rgba(2, 6, 23, 0.6);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}
pre#result {
  white-space: pre-wrap;
  background: linear-gradient(180deg, #071023, #07121b);
  padding: 16px;
  border-radius: 10px;
  min-height: 120px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  color: #dbeafe;
}

@media (max-width: 720px) {
  .container {
    padding: 16px;
  }
  .preview {
    width: 110px;
    height: 110px;
  }
  h1 {
    font-size: 18px;
  }
}
