.app-loader {
  position: fixed;
  z-index: 9999;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background: rgba(15, 23, 42, 0.38);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  text-align: center;
}

body.app-loading {
  overflow: hidden;
}

body.app-loading .app-loader {
  display: flex;
}

body.app-loading .admin-page,
body.app-loading .box,
body.app-loading .front-footer {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
}

body.app-loading #bookingApp,
body.app-loading #tenantNotFoundView,
body.app-loading .front-footer {
  visibility: hidden;
  filter: none;
}

.app-loader__box {
  width: 100%;
  max-width: 360px;
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.14);
border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.app-loader__brand {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: inherit;
}

.app-loader__spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto 18px;
  border: 4px solid rgba(40, 64, 107, 0.18);
  border-top-color: #ffffff;
  border-radius: 50%;
  -webkit-animation: app-loader-spin 0.85s linear infinite;
  animation: app-loader-spin 0.85s linear infinite;
}

.app-loader__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.45;
}

.app-loader__error {
  display: none;
  margin: 14px 0 0;
  color: #b42318;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.app-loader__refresh {
  display: none;
  margin: 18px auto 0;
  padding: 10px 14px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #ffffff;
  color: #182133;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.app-loader.is-error .app-loader__spinner {
  -webkit-animation: none;
  animation: none;
  border-color: rgba(180, 35, 24, 0.18);
  border-top-color: #b42318;
}

.app-loader.is-error .app-loader__error,
.app-loader.is-error .app-loader__refresh {
  display: block;
}

@-webkit-keyframes app-loader-spin {
  to {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes app-loader-spin {
  to {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-loader__spinner {
    -webkit-animation: none;
    animation: none;
  }
}
