@keyframes lds-spinner {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.app-loading {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  top: 10em;
}
.app-loading p {
  display: block;
  font-size: 1.17em;
  margin-inline-start: 0;
  margin-inline-end: 0;
  font-weight: normal;
}

.app-loading .lds-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e0e0e0;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: lds-spinner 0.8s linear infinite;
}

/* Startup status (index.html) — shown only when the app is slow to start or the device is offline. */
.app-boot-status {
  max-width: 22rem;
  margin: 1.5rem 1rem 0;
  padding: 1.25rem;
  text-align: center;
  color: #333;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.app-boot-status[hidden] {
  display: none;
}
.app-loading .app-boot-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}
.app-loading .app-boot-msg {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #555;
}
.app-boot-retry {
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  color: #fff;
  background: #3498db;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
