/* ===== Branded error/maintenance card =====
   Shared by the Blazor circuit-error overlay (#blazor-error-ui, styled via
   blazor-error-ui.js) and the in-app unhandled-exception page (Pages/Error.cshtml).
   wwwroot/maintenance.html intentionally does NOT use this file — it must render with
   zero app/asset dependencies for the case where the whole process is down and nothing
   under wwwroot is servable, so its styles are inlined in that file instead. */

#blazor-error-ui {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}
/* Blazor sets style.display on this element when a circuit error occurs — it's hidden
   until then, and covers the whole screen once shown (see blazor-error-ui.js). */

.bm-error-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
}

.bm-error-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.bm-error-icon {
  font-size: 48px;
  margin-bottom: 1rem;
}

.bm-error-title {
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 0.75rem;
}

.bm-error-msg {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

.bm-error-btn {
  display: inline-block;
  background: #8B1A1A;
  color: #ffffff;
  text-decoration: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 1.25rem;
  transition: background 0.2s;
}

.bm-error-btn:hover {
  background: #a52020;
  color: #ffffff;
}

.bm-error-sub {
  font-size: 13px;
  color: #888;
  margin: 0;
}

.bm-error-sub a {
  color: #8B1A1A;
  text-decoration: none;
}
