* {
  box-sizing: border-box;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #052e16, #020617);
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
}

h1 {
  margin-bottom: 30px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
}

.container {
  background: rgba(6, 30, 16, 0.92);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(34,197,94,0.15),
    0 20px 40px rgba(0,0,0,0.7);
  padding: 24px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  max-width: 900px;
  width: 100%;
}

/* 🎯 CANVAS */
#preview {
  background: #020617;
  border-radius: 12px;
  border: 1px solid rgba(34,197,94,0.25);
  box-shadow: inset 0 0 30px rgba(0,0,0,0.85);
}

/* 🎛️ CONTROLS */
.controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.controls label {
  font-size: 13px;
  color: #bbf7d0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.controls select,
.controls input[type="range"],
.controls input[type="color"] {
  width: 100%;
}

/* RANGE */
input[type="range"] {
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #f59e0b);
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #052e16;
  border: 2px solid #22c55e;
  box-shadow: 0 0 10px rgba(34,197,94,0.6);
}

/* CHECKBOX */
input[type="checkbox"] {
  accent-color: #22c55e;
  width: 16px;
  height: 16px;
}

/* SELECT */
select {
  background: #020617;
  color: #e5e7eb;
  border-radius: 8px;
  border: 1px solid rgba(34,197,94,0.25);
  padding: 6px 8px;
}

/* COLOR */
input[type="color"] {
  height: 36px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(34,197,94,0.25);
  background: #020617;
}

/* BUTTONS */
button {
  grid-column: span 2;
  margin-top: 10px;
  padding: 12px;
  font-weight: 700;
  font-size: 14px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #052e16;
  box-shadow: 0 10px 30px rgba(34,197,94,0.45);
  transition: transform .15s ease, box-shadow .15s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 45px rgba(34,197,94,0.6);
}

#share {
  background: linear-gradient(135deg, #f59e0b, #fb923c);
  box-shadow: 0 10px 30px rgba(245,158,11,0.45);
  color: #431407;
}

#share:hover {
  box-shadow: 0 16px 45px rgba(245,158,11,0.6);
}

/* OUTPUT */
pre {
  margin-top: 24px;
  max-width: 900px;
  width: 100%;
  background: #020617;
  color: #22c55e;
  border-radius: 14px;
  padding: 18px;
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
  box-shadow:
    inset 0 0 0 1px rgba(34,197,94,0.15),
    0 20px 40px rgba(0,0,0,0.75);
}

/* COPY BUTTON */
.output-box {
  position: relative;
  max-width: 900px;
  width: 100%;
  margin-top: 24px;
}

#copyCode {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.45);
  color: #22c55e;
  font-size: 16px;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}

#copyCode:hover {
  background: rgba(245,158,11,0.35);
  transform: scale(1.05);
}

/* FOOTER */
.site-footer {
  margin-top: 40px;
  padding: 20px 10px;
  text-align: center;
  font-size: 13px;
  color: #86efac;
  opacity: 0.85;
}

.site-footer a {
  color: #f59e0b;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.15s ease, text-shadow 0.15s ease;
}

.site-footer a:hover {
  color: #fb923c;
  text-shadow: 0 0 8px rgba(245,158,11,0.6);
}
