/* Alert popup personnalisée pour Metadidomi Server+ */
#customAlertBox {
  position: fixed;
  top: 32px;
  right: 32px;
  z-index: 9999;
  min-width: 220px;
  max-width: 90vw;
  padding: 18px 28px;
  border-radius: 12px;
  box-shadow: 0 2px 16px #0002;
  font-size: 1.1em;
  font-weight: 500;
  transition: opacity 0.3s;
  opacity: 0;
  pointer-events: none;
  background: var(--card-bg, #fff);
  color: var(--text, #222);
}
#customAlertBox.success {
  background: var(--primary, #007bff);
  color: #fff;
}
#customAlertBox.error {
  background: var(--danger, #c00);
  color: #fff;
}
:root[data-theme="dark"] #customAlertBox {
  background: var(--card-bg, #23272b);
  color: var(--text, #eee);
}
:root[data-theme="dark"] #customAlertBox.success {
  background: var(--primary, #4ca3ff);
  color: #fff;
}
:root[data-theme="dark"] #customAlertBox.error {
  background: var(--danger, #ff4c4c);
  color: #fff;
}
@media (max-width: 600px) {
  #customAlertBox {
    top: 12px;
    right: 12px;
    padding: 12px 16px;
    font-size: 1em;
  }
}
