/* =============== ICP Generator – Frontend (matches Website Scrapper UI) =============== */

:root{
  --bg-card: #0b0b0b;        /* dark card */
  --bg-surface: #000000;     /* inner panel */
  --bd-card: #262626;        /* dark border */
  --text: #ffffff;           /* base text on dark */
  --muted: #a3a3a3;          /* helper text */
  --heading: #0f172a;        /* main page title (dark slate) */
  --input-bd: #d1d5db;       /* input border */
  --input-bg: #ffffff;       /* input bg (white) */
  --input-ph: #6b7280;       /* placeholder */
  --green: #12A515;          /* primary green */
  --green-700: #12A515;      /* hover */
  --focus: #38bdf8;          /* focus ring */
}

/* --- shell --- */
.ig-wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 24px;
  font: inherit;
}
.ig-output h3{
	font-size: 24px !important;
    font-weight: 700 !important;
}
.ig-output h4{
	font-size: 18px !important;
    font-weight: 600 !important;
}
#ig-output{
	display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}
/* top title like screenshot */
.ig-title{
  margin: 0 0 18px;
  font-weight: 800;
  font-size: 40px;
  line-height: 1.15;
  text-align: center;
  color: var(--heading);
}

/* card blocks */
.ig-card{
  background: var(--bg-card);
  border: 1px solid var(--bd-card);
  border-radius: 14px;
  padding: 36px 20px 20px;
  color: var(--text);
}
.ig-card--input{ margin-top: 8px; }
.ig-card--output{ margin-top: 18px; }

/* label above input (“Enter your … here”) */
.ig-label{
  display: block;
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

/* the big white input (textarea) */
.ig-input{
  width: 100%;
  min-height: 120px;
  resize: vertical;
  background: var(--input-bg);
  color: #111827;
  border: 1px solid var(--input-bd);
  border-radius: 12px;
  padding: 14px 14px;
  font-size: 15px;
  line-height: 1.55;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.ig-input::placeholder{ color: var(--input-ph); }
.ig-input:focus{
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(56,189,248,.25);
}

/* actions (centered button) */
.ig-actions{
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

/* primary button — bright green like scrapper */
.ig-btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform .06s ease, filter .15s ease, background-color .15s ease;
}
.ig-btn:active{ transform: translateY(1px); }

.ig-btn-green{
  background: var(--green);
  color: #fff;
}
.ig-btn-green:hover{ background: var(--green-700); }
.ig-btn-green:disabled{ opacity: .7; cursor: not-allowed; }

/* spinner inside button (hidden until loading class applied) */
.ig-spinner{
  width: 18px; height: 18px; display: none;
}
.ig-btn.is-loading .ig-spinner{ display: inline-block; }
.ig-spinner .ig-spinner-track{
  fill: none; stroke: rgba(255,255,255,.25);
}
.ig-spinner .ig-spinner-head{
  fill: #fff; animation: igspin .9s linear infinite;
}
@keyframes igspin{ to { transform: rotate(360deg) } }

/* helper note under button */
.ig-note{
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* Output block like screenshot (large dark panel) */
.ig-subtitle{
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.ig-output{
  min-height: 160px;
  border-radius: 12px;
  color: var(--text);
  line-height: 1.65;
  overflow: auto;
}
.ig-card--output h2, .ig-output h3, .ig-output p, .ig-output a, .ig-output blockquote, .ig-output ul li a, .ig-output h4, .ig-output h5, .ig-output h6,
.ig-output div{color: #fff;}
/* Typography inside output for nicer reading */
.ig-output h3, .ig-output h4{ margin: 14px 0 8px; }
.ig-output p{ margin: 8px 0 12px; }
.ig-output ul, .ig-output ol{ margin: 8px 0 14px 18px; }
.ig-output table{ width: 100%; border-collapse: collapse; margin: 10px 0 14px; }
.ig-output th, .ig-output td{ border: 1px solid #303030; padding: 8px; text-align: left; }

/* responsive tweaks */
@media (max-width: 640px){
  .ig-title{ font-size: 30px; }
  .ig-input{ min-height: 110px; }
}
