/* =========================
   COMPONENTS — UI Pieces
========================= */

/* =========================
   CARD — SVG SURFACE (PRIMARY)
========================= */
/* =========================
   CHECKBOX GROUP (FIX)
========================= */
/* =========================
   BUTTON MODIFIERS
========================= */

.btn-inline{
  width: auto;
  padding-left: 32px;
  padding-right: 32px;
}

.group{
  margin-top:10px;
  padding:14px;

  border-radius:var(--radius-lg);
  background:rgba(255,255,255,0.6);
  border:1px solid var(--border-light);

  display:flex;
  flex-wrap:wrap;
  gap:10px 12px;
}

/* THIS is what removes the empty right space */
.group label{
  display:inline-flex;
  align-items:center;
  gap:8px;

  padding:8px 12px;
  font-size:14px;
  font-weight:500;

  border-radius:10px;
  background:rgba(255,255,255,0.85);
  border:1px solid rgba(15,23,42,0.06);

  white-space:nowrap;   /* 👈 CRITICAL */
  cursor:pointer;

  transition:
    background .15s ease,
    border-color .15s ease;
}

.group label:hover{
  background:rgba(255,255,255,1);
  border-color:rgba(0,136,255,0.25);
}

/* Checkbox itself */
.group input[type="checkbox"]{
  width:16px;
  height:16px;
  margin:0;

  accent-color:#0088FF;
}

.card{
  position: relative;
  overflow: hidden;

  padding: 28px;
  border-radius: var(--radius-lg);

  /* REAL base surface */
  background: rgba(255,255,255,0);

  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);

  border: 1px solid rgba(255,255,255,0.65);

  box-shadow:
    0 32px 72px rgba(15,23,42,0.1),
    inset 0 1px 0 rgba(255,255,255,0.50);

  transition: transform .25s ease, box-shadow .25s ease;
}
/* .card::before{
  content: "";
  position: absolute;
  inset: 0;

  background: url("/assets/images/card-bg.svg") center / cover no-repeat;

  opacity: 1;              /* 🔑 CRITICAL */
  /* mix-blend-mode: soft-light; /* makes it lighting, not paint */ 
/* 
  pointer-events: none;
}
.card > *{
  position: relative;
  z-index: 1;
} */



/* Trust copy under headings */
.trust-copy{
  margin-top: -6px;
  margin-bottom: 18px;

  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* =========================
   BUTTONS
========================= */

button,
.btn{
  width: 100%;
  margin-top: 18px;
  padding: 14px;

  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;

  background:
    linear-gradient(
      180deg,
      rgba(0,136,255,1),
      rgba(10,65,185,1)
    ),
    var(--accent);

  color: #ffffff;
  font-size: 15px;
  font-weight: 600;

  box-shadow:
    0 16px 36px rgba(0,136,255,0.1),
    inset 0 1px 0 rgba(255,255,255,0.1);

  transition: transform .15s ease, box-shadow .15s ease;
}

button:hover{
  transform: translateY(-1px);
  box-shadow:
    0 22px 48px rgba(0,136,255,0.2),
    inset 0 1px 0 rgba(255,255,255,0.2);
}

button.reset{
  background: rgba(15,23,42,0.06);
  color: #0f172a;
  box-shadow: none;
}

/* =========================
   INPUTS & FORMS
========================= */

label{
  display: block;
  margin-top: 18px;

  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

select,
textarea{
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;

  font-size: 14px;
  font-family: inherit;

  border-radius: var(--radius-md);
  border: 1px solid rgba(15,23,42,0.08);

  /* Clear surface over SVG */
  background: rgba(255,255,255,0.92);

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Custom accordion icon */
select{
  background:
    url("/assets/icons/accordion.svg") no-repeat right 14px center,
    rgba(255,255,255,0.92);

  background-size: 16px;
  padding-right: 44px;

  cursor: pointer;
}

select:hover{
  border-color: rgba(91,91,255,0.35);
}

select:focus{
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91,91,255,0.15);
}

/* =========================
   TEXTAREA
========================= */

textarea{
  resize: none;
}

/* =========================
   RESULT BLOCK (AI OUTPUT)
========================= */

.result{
  margin-top: 24px;
  padding: 18px 20px;

  border-radius: var(--radius-md);

  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border: 1px solid rgba(15,23,42,0.08);

  box-shadow:
    0 12px 32px rgba(15,23,42,0.08),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

/* OUTPUT TEXTAREA — MAIN FIX */
textarea.output-box{
  width: 100%;
  min-height: 180px;
  max-height: 320px;      /* 👈 KEY */
  padding: 16px;

  font-size: 14px;
  line-height: 1.7;

  border-radius: var(--radius-md);
  border: none;

  background: rgba(255,255,255,0.96);

  resize: none;
  overflow-y: auto;       /* 👈 KEY */
  scrollbar-width: thin;

  color: var(--text-primary);
}
textarea.output-box::-webkit-scrollbar{
  width:6px;
}
textarea.output-box::-webkit-scrollbar-thumb{
  background:rgba(15,23,42,0.2);
  border-radius:6px;
}


