@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
  --neon-blue: #00f5ff;
  --neon-purple: #7c7cff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  min-height: 100svh;
  background:
    radial-gradient(circle at top left, #0ea5e9, transparent 45%),
    radial-gradient(circle at bottom right, #7c7cff, transparent 45%),
    linear-gradient(135deg, #020617, #020024);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #e5e7eb;
}

.container {
  width: 100%;
  max-width: 440px;
  padding: 26px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.14),
    rgba(255, 255, 255, 0.03)
  );
  backdrop-filter: blur(26px);
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 30px 80px rgba(0,0,0,0.65);
}

h2 {
  text-align: center;
  margin-bottom: 6px;
  font-weight: 700;
}

p {
  text-align: center;
  font-size: 14px;
  opacity: 0.75;
  margin-bottom: 22px;
}

textarea,
input {
  width: 100%;
  padding: 14px 15px;
  margin-bottom: 14px;
  border-radius: 14px;
  border: none;
  outline: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 14px;
}

textarea {
  min-height: 120px;
  resize: none;
}

button {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  color: #020617;
  margin-bottom: 14px;
}

/* 📦 OUTPUT BOX */
.box {
  position: relative;
}

/* 🧾 COPY CODE BUTTON (GitHub-style) */
.code-action {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(2,6,23,0.85);
  color: #e5e7eb;
  cursor: pointer;
  z-index: 2;
  width: auto !important;
  min-width: unset;
  max-width: unset;
  white-space: nowrap;
}

.code-action svg {
  width: 14px;
  height: 14px;
}

/* ✅ KEY FIX — space for copy button */
.box textarea {
  padding-top: 44px;
}

/* 🔔 TOAST */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15,23,42,0.95);
  color: #e5e7eb;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.code-action {
  width: auto !important;
  white-space: nowrap;
}

.box textarea {
  padding-top: 44px;
}
