/* ===== App Pre-loader (shown before Angular bootstraps) ===== */
.app-preloader {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  z-index: 9999;
}

@media (prefers-color-scheme: dark) {
  .app-preloader {
    background: #1e1e2e;
  }
  .app-preloader-text {
    color: #94a3b8 !important;
  }
}

.app-preloader-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 24px;
  animation: preloader-fade-in 0.4s ease-out;
}

.app-preloader-spinner {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.app-preloader-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6366f1;
  animation: preloader-bounce 1.4s infinite ease-in-out both;
}

.app-preloader-dot:nth-child(1) { animation-delay: -0.32s; }
.app-preloader-dot:nth-child(2) { animation-delay: -0.16s; }
.app-preloader-dot:nth-child(3) { animation-delay: 0s; }

.app-preloader-text {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  color: #64748b;
  letter-spacing: 0.5px;
}

@keyframes preloader-bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

@keyframes preloader-fade-in {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
