/* Plugin bgconfig — styles pour le panneau "Fond" (réutilisable dans
 * edenshell prefs ou dans un panel global header). Utilise les CSS vars
 * --esh-* quand disponibles pour cohérence avec edenshell. */

.eden-bg-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 0 4px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 8px;
}

.eden-bg-head {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim, rgba(255, 255, 255, 0.5));
  margin-bottom: 4px;
}

.eden-bg-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-family: var(--font-mono);
}

.eden-bg-row label {
  flex: 0 0 110px;
  color: var(--fg-dim, rgba(255, 255, 255, 0.55));
}

.eden-bg-row select,
.eden-bg-row input[type="color"],
.eden-bg-row input[type="file"],
.eden-bg-row input[type="checkbox"] {
  font-family: inherit;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg, #d8dee9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  padding: 2px 6px;
}

.eden-bg-row input[type="color"] {
  width: 32px;
  height: 22px;
  padding: 0;
  cursor: pointer;
}

.eden-bg-row input[type="range"] {
  flex: 1;
  accent-color: var(--esh-accent, #58c8ff);
}

.eden-bg-row input[type="file"] {
  flex: 1;
  cursor: pointer;
}

.eden-bg-row [data-bg-val] {
  flex: 0 0 36px;
  text-align: right;
  font-size: 10px;
  color: var(--fg-dim, rgba(255, 255, 255, 0.55));
  font-variant-numeric: tabular-nums;
}

.eden-bg-row [data-bg="image-clear"] {
  flex: 0 0 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg, #d8dee9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
}
.eden-bg-row [data-bg="image-clear"]:hover {
  background: rgba(255, 100, 100, 0.15);
  border-color: rgba(255, 100, 100, 0.4);
}

.eden-bg-image-config {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.eden-bg-image-config[hidden] { display: none; }

/* Layers appliqués sur les targets (esh-window, desktop, etc.).
 * Définis ici pour que les targets n'aient rien à faire — Eden.bgConfig.apply
 * s'occupe de créer les divs avec les bonnes positions. Les règles ici sont
 * juste un fallback de cleanliness (pointer-events, overflow-clipping). */
.eden-bg-image-layer,
.eden-bg-color-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}
