/*
 * Compatibility shims for class names injected at runtime by the prebuilt
 * Brython bundles (brython/*.brython.js). These bundles still set Fomantic-UI
 * class strings (e.g. "ui disabled loader", "ui ... message") on status/loader
 * elements, which DaisyUI does not style. Loaded after app.css so it can map
 * those legacy classes to readable DaisyUI-friendly styles.
 */

/* Hide loaders once Brython marks them disabled */
.ui.loader.disabled,
.disabled.loader {
  display: none !important;
}

/* Status messages injected by dashboard/device/project status widgets */
.message {
  padding: 0.6rem 0.9rem;
  border-radius: 0.5rem;
  margin: 0.25rem 0;
  font-weight: 500;
}

.message.positive {
  background-color: #d3eee0;
  color: #14532d;
}

.message.negative,
.message.error {
  background-color: #f7d9d9;
  color: #7f1d1d;
}
