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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0f0f0f;
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

main {
  max-width: 620px;
  width: 100%;
}

h1 {
  font-size: 2rem;
  margin-bottom: 8px;
  color: #fff;
}

.subtitle {
  color: #888;
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.hidden { display: none !important; }

/* Form */
.create-form {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 28px;
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #aaa;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-row input[type="text"],
.form-row select {
  width: 100%;
  padding: 10px 14px;
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  color: #e0e0e0;
  font-size: 1rem;
  font-family: inherit;
}

.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: #4a9eff;
  box-shadow: 0 0 0 2px rgba(74,158,255,0.15);
}

.checkbox-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: #ccc;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  font-weight: normal;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #4a9eff;
}

button[type="submit"],
.secondary-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

button[type="submit"] {
  background: #4a9eff;
  color: #fff;
  margin-top: 4px;
}

button[type="submit"]:hover { background: #3a8eee; }
button[type="submit"]:disabled { opacity: 0.5; cursor: not-allowed; }

.secondary-btn {
  background: #2a2a2a;
  color: #ccc;
  margin-top: 20px;
  border: 1px solid #333;
}

.secondary-btn:hover { background: #333; }

/* Result */
.result {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 28px;
}

.result h2 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: #fff;
}

.info-block {
  margin-bottom: 20px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #222;
}

.info-label {
  color: #888;
  font-size: 0.9rem;
}

.info-value {
  color: #e0e0e0;
  font-size: 0.9rem;
}

.cmd-block {
  margin-bottom: 20px;
}

.cmd-block h3 {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 6px;
  font-weight: 600;
}

.cmd-block .hint {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 8px;
}

.cmd-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 12px 14px;
  overflow-x: auto;
}

.cmd-copy code {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.85rem;
  color: #4a9eff;
  flex: 1;
  white-space: nowrap;
  word-break: break-all;
  white-space: pre-wrap;
}

.cmd-copy a {
  color: inherit;
  text-decoration: none;
  flex: 1;
}

.cmd-copy a:hover code {
  text-decoration: underline;
}

.copy-btn {
  background: none;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 4px 8px;
  color: #888;
  cursor: pointer;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: color 0.2s, border-color 0.2s;
}

.copy-btn:hover {
  color: #fff;
  border-color: #555;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #4a9eff;
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  z-index: 1000;
}

@media (max-width: 600px) {
  body { padding: 16px; }
  .create-form, .result { padding: 20px; }
  h1 { font-size: 1.5rem; }
}
