/*
   Almost nothing on purpose.

   MudBlazor and the OSM Pro design system (osm-pro.css, material.css,
   shell.css) do the work; anything written here is something that has to be maintained against
   ten theme-and-mode combinations rather than one. When a rule is needed, it
   should use the theme's tokens so it follows whatever theme is on instead of
   fighting it.
*/

html, body {
  min-height: 100%;
}

/* The thin bar across the top while an area downloaded on first use arrives
   (App.razor, Services/LazyAreas.cs). It never takes a click. */
.osm-area-loading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1090;
  pointer-events: none;
}

#blazor-error-ui {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1080;
}

/* The bar Blazor shows when something has gone wrong (index.html), in the
   theme's error pair: a soft tint, the alarm's edge, ordinary ink. */
.osm-error-bar {
  padding: 12px 16px;
  background: var(--osm-alarm-soft); color: var(--osm-ink);
  border-top: 4px solid var(--osm-alarm);
}
.osm-error-bar-link { color: var(--osm-ink); font-weight: 600; text-decoration: underline; }
.osm-error-bar-dismiss { float: right; color: var(--osm-ink); }

/* "A new version of OSM Pro is ready" (js/update-ready.js): along the top, in
   the theme's information pair, above everything but the error bar. Buttons
   big enough for a thumb; on a phone the text takes its own line. */
.osm-update-ready {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1085;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: var(--osm-info-soft); color: var(--osm-ink);
  border-bottom: 4px solid var(--osm-info);
  font-family: var(--osm-font-body); font-size: 1rem;
}
.osm-update-ready-text { flex: 1 1 14rem; font-weight: 600; }
.osm-update-ready button {
  min-height: 44px; padding: 0 18px; border-radius: 6px; cursor: pointer;
  font: inherit; font-weight: 600;
}
.osm-update-ready-refresh { background: var(--osm-info); color: var(--osm-ground); border: 0; }
.osm-update-ready-later { background: transparent; color: var(--osm-ink); border: 1px solid var(--osm-info); }
.osm-update-ready button:focus-visible { outline: 3px solid var(--osm-ink); outline-offset: 2px; }
@media print { .osm-update-ready { display: none !important; } }

/* The spinner index.html shows while the application loads (before any
   component, so it cannot be a MudProgressCircular). */
.osm-spinner {
  display: inline-block; width: 2rem; height: 2rem;
  border: 0.25em solid var(--osm-ink-mute); border-right-color: transparent; border-radius: 50%;
  animation: osm-spin 0.75s linear infinite;
}
@keyframes osm-spin { to { transform: rotate(360deg); } }
