/* ── Vrihatech BG Removal Plugin Styles ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

#vbgr-wrap {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  max-width: 900px;
  margin: 0 auto;
  color: #1a1a2e;
}

/* NAV */
.vbgr-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 2px solid #e8eaf0;
  padding-bottom: 0;
}
.vbgr-nav-btn {
  padding: 10px 20px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: #888;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  font-family: inherit;
}
.vbgr-nav-btn.vbgr-active {
  color: #5b6ef5;
  border-bottom-color: #5b6ef5;
}
.vbgr-nav-btn:hover { color: #5b6ef5; }

/* TABS */
.vbgr-tab { display: none; }
.vbgr-tab.vbgr-active { display: block; }

/* HERO */
.vbgr-hero {
  text-align: center;
  margin-bottom: 28px;
}
.vbgr-hero h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 6px;
  color: #111;
}
.vbgr-hero h2 span {
  background: linear-gradient(135deg, #5b6ef5, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.vbgr-hero p { color: #888; font-size: 0.95rem; margin: 0; }

/* DROPZONE */
.vbgr-dropzone {
  border: 2px dashed #c5cde8;
  border-radius: 14px;
  background: #f8f9ff;
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.25s;
  margin-bottom: 16px;
}
.vbgr-dropzone:hover, .vbgr-dropzone.vbgr-drag { border-color: #5b6ef5; background: #f0f2ff; }
.vbgr-dropzone input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.vbgr-drop-icon { font-size: 2.2rem; margin-bottom: 10px; display: block; }
.vbgr-dropzone strong { display: block; font-size: 1rem; color: #333; margin-bottom: 4px; }
.vbgr-dropzone span { font-size: 0.85rem; color: #888; }
.vbgr-badges { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.vbgr-badges em {
  font-style: normal;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  background: #e8eaf6;
  color: #5b6ef5;
  letter-spacing: 0.5px;
}

/* CHIPS */
.vbgr-chips {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px;
}
.vbgr-chip {
  padding: 4px 12px;
  background: #f0f2ff;
  border: 1px solid #d0d5f0;
  border-radius: 20px;
  font-size: 0.78rem;
  color: #555;
  display: inline-flex; align-items: center; gap: 4px;
}
.vbgr-chip strong { color: #333; }

/* GRID */
.vbgr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
@media(max-width: 580px) { .vbgr-grid { grid-template-columns: 1fr; } }

/* CARD */
.vbgr-card {
  border: 1px solid #dde2f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.vbgr-card-head {
  padding: 8px 14px;
  background: #f5f6ff;
  border-bottom: 1px solid #dde2f0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.vbgr-card-body {
  padding: 14px;
  min-height: 200px;
  display: flex; align-items: center; justify-content: center;
}
.vbgr-card-body img { max-width: 100%; max-height: 260px; object-fit: contain; border-radius: 6px; }
.vbgr-checker {
  background: repeating-conic-gradient(#e8e8e8 0% 25%, #fff 0% 50%) 0 0 / 18px 18px;
}
.vbgr-placeholder { text-align: center; color: #aaa; font-size: 0.88rem; }
.vbgr-placeholder p { margin: 8px 0 0; }

/* SPINNER */
.vbgr-spinner {
  width: 32px; height: 32px;
  border: 3px solid #dde2f0;
  border-top-color: #5b6ef5;
  border-radius: 50%;
  animation: vbgr-spin 0.8s linear infinite;
  margin: 0 auto 8px;
}
@keyframes vbgr-spin { to { transform: rotate(360deg); } }

/* PROGRESS */
.vbgr-progress { margin-bottom: 14px; }
.vbgr-progress-bar {
  height: 6px; background: #e8eaf0; border-radius: 99px; overflow: hidden;
}
.vbgr-progress-bar div {
  height: 100%;
  background: linear-gradient(90deg, #5b6ef5, #8b5cf6);
  border-radius: 99px;
  width: 0%;
  transition: width 0.4s ease;
}
.vbgr-progress p { font-size: 0.78rem; color: #888; margin: 6px 0 0; }

/* SETTINGS */
.vbgr-settings {
  background: #f8f9ff;
  border: 1px solid #dde2f0;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 16px;
}
.vbgr-settings h4 {
  font-size: 0.82rem; color: #888; text-transform: uppercase;
  letter-spacing: 1px; margin: 0 0 14px;
}
.vbgr-slider-row {
  display: flex; align-items: center; gap: 12px;
}
.vbgr-slider-row label { font-size: 0.88rem; min-width: 70px; color: #444; }
.vbgr-slider-row input[type="range"] { flex: 1; accent-color: #5b6ef5; }
.vbgr-slider-row span { font-size: 0.88rem; font-weight: 700; color: #5b6ef5; min-width: 38px; text-align: right; }
.vbgr-fmt-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px;
}
.vbgr-fmt-row span { font-size: 0.85rem; color: #888; }
.vbgr-fmt {
  padding: 4px 14px;
  border-radius: 8px;
  border: 1px solid #dde2f0;
  background: #fff;
  color: #888;
  font-size: 0.82rem; font-weight: 600;
  cursor: pointer; transition: all 0.15s;
  font-family: inherit;
}
.vbgr-fmt.vbgr-fmt-sel { background: #5b6ef5; color: #fff; border-color: #5b6ef5; }

/* BUTTONS */
.vbgr-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.vbgr-btn {
  padding: 10px 22px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.vbgr-btn-primary {
  background: linear-gradient(135deg, #5b6ef5, #8b5cf6);
  color: #fff;
  box-shadow: 0 4px 14px rgba(91,110,245,0.3);
}
.vbgr-btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.vbgr-btn-primary:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.vbgr-btn-success { background: #22d3a0; color: #fff; }
.vbgr-btn-success:hover { filter: brightness(1.08); }
.vbgr-btn-ghost { background: #f0f2ff; color: #555; border: 1px solid #dde2f0; }
.vbgr-btn-ghost:hover { background: #e8eaf6; }

/* TOAST */
#vbgr-toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: #fff;
  border: 1px solid #dde2f0;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 0.88rem;
  color: #333;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s;
  z-index: 99999;
  max-width: 300px;
  font-family: 'Inter', sans-serif;
}
#vbgr-toast.vbgr-show { transform: translateY(0); opacity: 1; }
#vbgr-toast.vbgr-success { border-color: #22d3a0; }
#vbgr-toast.vbgr-error { border-color: #f87171; }

/* UTILITIES */
.vbgr-hidden { display: none !important; }
