/* ===========================
   Import banner (status states + spinner animation)
   These rely on data-attribute driven state from Stimulus,
   so they stay as component CSS rather than Tailwind utilities.
   =========================== */

.import-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

.import-banner[hidden] {
  display: none;
}

.import-banner--running {
  background: #e3f2fd;
  color: #1565c0;
}

.import-banner--done {
  background: #e8f5e9;
  color: #2e7d32;
}

.import-banner--error {
  background: #fdecea;
  color: #c62828;
}

.import-banner-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.import-banner--done .import-banner-spinner,
.import-banner--error .import-banner-spinner {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
