/* ── Placeholder Image Generator — Two Column Layout ─────── */
@import url("https://dewebkillercomc2e8c.zapwp.com/q:u/r:0/wp:0/w:1/u:https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=DM+Mono:wght@400;500&display=swap");

#pig-app {
  font-family: "DM Sans", sans-serif;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  /* max-width: 960px;f */
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.07);
}

/* ── Column Base ──────────────────────────────────────────── */
.pig-col {
  padding: 32px 28px;
}

.pig-col-left {
  border-right: 1px solid #efefef;
  background: #fafafa;
}

.pig-col-right {
  background: #fff;
  display: flex;
  flex-direction: column;
}

/* ── Heading ──────────────────────────────────────────────── */
.pig-heading {
  font-size: 22px;
  font-weight: 700;
  color: #000;
  margin: 0 0 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8e8e8;
}

/* ── Field Group ──────────────────────────────────────────── */
.pig-field-group {
  display: flex;
  flex-direction: column;
}

.pig-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

/* ── Individual Field ─────────────────────────────────────── */
.pig-field {
  display: flex;
  flex-direction: column;
  padding: 11px 0;
  border-bottom: 1px solid #ececec;
}

.pig-field label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #aaa;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.pig-unit {
  font-weight: 400;
  color: #ccc;
  font-size: 10px;
}

.pig-field input[type="text"],
.pig-field input[type="number"],
.pig-field select {
  border: none;
  background: transparent;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
  padding: 0;
  outline: none;
  width: 100%;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.18s;
  -webkit-appearance: none;
  appearance: none;
}

.pig-field input:focus,
.pig-field select:focus {
  border-bottom-color: #5c6ef8;
}

.pig-field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23bbb' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 20px;
}

/* ── Color Row ────────────────────────────────────────────── */
.pig-color-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pig-color-row input[type="color"] {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  background: transparent;
  outline: none;
}
.pig-color-row input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}
.pig-color-row input[type="color"]::-webkit-color-swatch {
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
}
.pig-color-row input[type="text"] {
  font-family: "DM Mono", monospace;
  font-size: 14px;
  font-weight: 500;
  flex: 1;
}

/* ── Random Button ────────────────────────────────────────── */
.pig-btn-random {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #1a9e7a;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  margin: 14px 0 6px;
  transition:
    background 0.2s,
    transform 0.1s,
    box-shadow 0.2s;
  width: fit-content;
  box-shadow: 0 2px 8px rgba(26, 158, 122, 0.25);
}
.pig-btn-random:hover {
  background: #147a5e;
  box-shadow: 0 4px 14px rgba(26, 158, 122, 0.35);
}
.pig-btn-random:active {
  transform: scale(0.97);
}

/* ── Preview ──────────────────────────────────────────────── */
.pig-preview-wrap {
  background: #f4f4f4;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  min-height: 160px;
  border: 1px solid #ececec;
}

#pig-canvas {
  display: block;
  max-width: 100%;
  height: auto !important;
}

.pig-dimensions {
  font-size: 12px;
  color: #bbb;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 0 0 18px;
  text-align: center;
  font-family: "DM Mono", monospace;
}

/* ── Data URI ─────────────────────────────────────────────── */
.pig-uri-wrap {
  margin-bottom: 20px;
  flex: 1;
}

.pig-uri-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bbb;
  margin: 0 0 6px;
}

.pig-uri-code {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  background: #f4f4f6;
  border: 1px solid #e8e8ec;
  padding: 10px 12px;
  border-radius: 8px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #666;
}

/* ── Download Button ──────────────────────────────────────── */
.pig-btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  text-align: center;
  background: #1565c0;
  color: #fff !important;
  text-decoration: none !important;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 15px;
  border-radius: 10px;
  transition:
    background 0.2s,
    box-shadow 0.2s,
    transform 0.1s;
  box-sizing: border-box;
  box-shadow: 0 3px 12px rgba(21, 101, 192, 0.3);
  margin-top: auto;
}
.pig-btn-download:hover {
  background: #0d47a1;
  box-shadow: 0 6px 20px rgba(21, 101, 192, 0.4);
}
.pig-btn-download:active {
  transform: scale(0.98);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
  #pig-app {
    grid-template-columns: 1fr;
    border-radius: 12px;
  }
  .pig-col-left {
    border-right: none;
    border-bottom: 1px solid #efefef;
  }
}
