/* blur-image-background.css — additions on top of app.css */

.bib-root { padding-top: 1rem; padding-bottom: 3rem; }

.bib-info-list { list-style: none; padding: 0; margin: 1rem 1rem 0; text-align: left; }
.bib-info-list li { padding: .5rem 0 .5rem 1.5rem; position: relative; color: #4b5563; font-size: .95rem; line-height: 1.5; }
.bib-info-list li::before { content: ""; position: absolute; left: 0; top: .85rem; width: 8px; height: 8px; border-radius: 50%; background-image: linear-gradient(to right, var(--gradient-primary), var(--gradient-secondary)); }

.workspace.bib-workspace { display: none; }
.workspace.bib-workspace.bib-open { display: block; }

/* ── Preview area ─────────────────────────────────────────────────── */
.bib-image-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  position: relative;
  background: #f9fafb;
  border-radius: 12px;
}

.bib-canvas-wrap { display: inline-block; max-width: 100%; position: relative; }

/* CSS-layer preview: bg (blurred original) + fg (sharp subject) */
.bib-preview-wrap {
  position: relative;
  display: inline-block;
  line-height: 0;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

.bib-bg-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.1s ease;
}

/* fg-img is IN-FLOW — it sets the container height */
.bib-fg-img {
  display: block;
  max-width: 100%;
  max-height: 65vh;
  width: auto;
  height: auto;
  position: relative;
  z-index: 1;
}

.bib-loading {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  border-radius: 12px;
}
.bib-loading[hidden] { display: none; }
.bib-loading .progressive-loader { margin: 0; }

.bib-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 16px;
  color: #9ca3af;
  font-size: .9rem;
  text-align: center;
}
.bib-placeholder svg { opacity: .4; }

.bib-hint { font-size: .8rem; color: #6a7280; margin-top: .75rem; margin-bottom: 0; }

/* ── Options panel ────────────────────────────────────────────────── */
.bib-options { min-height: 440px; }

/* Strength row */
.bib-strength-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.bib-strength-label {
  font-size: .82rem;
  font-weight: 600;
  color: #374151;
}
.bib-strength-badge {
  font-size: .78rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--gradient-primary), var(--gradient-secondary));
  padding: 2px 10px;
  border-radius: 100px;
  min-width: 44px;
  text-align: center;
}

/* Custom gradient-fill slider */
.bib-slider-wrap { margin-bottom: 14px; }
.bib-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  background: linear-gradient(to right, var(--gradient-primary) var(--bib-pct, 37%), #e5e7eb var(--bib-pct, 37%));
}
.bib-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--gradient-primary);
  box-shadow: 0 1px 6px rgba(101,87,255,.25);
  cursor: pointer;
  transition: box-shadow .15s;
}
.bib-slider::-webkit-slider-thumb:hover { box-shadow: 0 2px 10px rgba(101,87,255,.35); }
.bib-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--gradient-primary);
  box-shadow: 0 1px 6px rgba(101,87,255,.25);
  cursor: pointer;
}

/* Preset buttons */
.bib-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}
.bib-preset-btn {
  border: 1.5px solid #e5e7eb;
  background: #fff;
  border-radius: 8px;
  padding: 7px 4px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  text-align: center;
}
.bib-preset-btn:hover {
  border-color: var(--gradient-primary);
  color: var(--gradient-primary);
}
.bib-preset-active {
  background: linear-gradient(135deg, var(--gradient-primary), var(--gradient-secondary)) !important;
  border-color: transparent !important;
  color: #fff !important;
}

.bib-hint-small {
  font-size: .73rem;
  color: #9ca3af;
  margin: 0;
  line-height: 1.4;
}

/* Field label */
.bib-field-label {
  font-size: .78rem;
  font-weight: 600;
  color: #374151;
  display: block;
  margin-bottom: 7px;
}

/* Format tab row */
.bib-fmt-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 2px;
}
.bib-fmt-btn {
  border: 1.5px solid #e5e7eb;
  background: #fff;
  border-radius: 8px;
  padding: 8px 4px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  text-align: center;
}
.bib-fmt-btn:hover {
  border-color: var(--gradient-primary);
  color: var(--gradient-primary);
}
.bib-fmt-active {
  background: #222b3a !important;
  border-color: #222b3a !important;
  color: #fff !important;
}

.w-100 { width: 100%; }

@media (max-width: 767px) {
  .bib-image-section { min-height: 280px; padding: 12px !important; }
  .bib-bg-img { max-height: 50vh; }
}
