/* PDC — Loading screen */

.app-loading {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  z-index: 9999;
  gap: 1.5rem;
}

.app-loading-logo {
  height: 64px;
  opacity: 0.9;
}

.app-loading-title {
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #1c2833;
  letter-spacing: 0.02em;
}

.app-loading-subtitle {
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 0.8rem;
  color: #abb2b9;
  margin-top: -1rem;
}

/* Spinner bar */
.app-loading-bar {
  width: 180px;
  height: 3px;
  background: #eaecee;
  border-radius: 3px;
  overflow: hidden;
}

.app-loading-bar-inner {
  width: 40%;
  height: 100%;
  background: #b71c1c;
  border-radius: 3px;
  animation: pdc-loading-slide 1.2s ease-in-out infinite;
}

@keyframes pdc-loading-slide {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(200%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Error fallback (shown after 4s if app fails) */
.app-loading-error {
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
  max-width: 420px;
  text-align: center;
  padding: 2rem;
}

.app-loading-error h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #c0392b;
  margin-bottom: 0.75rem;
}

.app-loading-error p {
  font-size: 0.85rem;
  color: #717d7e;
  line-height: 1.6;
  margin: 0;
}
