body.page-loading {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

.splash-screen {
  display: none;
}

.page-loading .splash-screen {
  position: absolute;
  z-index: 1000;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-family: Inter, Helvetica, 'sans-serif';
  background-color: #f8fafc;
  color: #1e293b;
  line-height: 1;
  font-size: 14px;
  font-weight: 400;
  transition: background-color 0.3s ease, color 0.3s ease;
}

html[data-bs-theme='dark'] .page-loading .splash-screen {
  background-color: #0f172a;
  color: #f1f5f9;
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.phoenix-icon {
  width: 120px;
  height: 120px;
  animation: phoenix-float 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(15, 118, 110, 0.3));
  display: flex;
  align-items: center;
  justify-content: center;
}

html[data-bs-theme='dark'] .phoenix-icon {
  filter: drop-shadow(0 4px 12px rgba(94, 234, 212, 0.4));
}

@keyframes phoenix-float {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.02);
  }
}

.phoenix-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.splash-screen .phoenix-icon .dark-logo {
  display: none;
}

.splash-screen .phoenix-icon .light-logo {
  display: block;
}

html[data-bs-theme='dark'] .splash-screen .phoenix-icon .light-logo {
  display: none;
}

html[data-bs-theme='dark'] .splash-screen .phoenix-icon .dark-logo {
  display: block;
}

.splash-loader {
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(15, 118, 110, 0.1);
  border-top-color: #0f766e;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

html[data-bs-theme='dark'] .spinner {
  border-color: rgba(94, 234, 212, 0.2);
  border-top-color: #5eead4;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.splash-text {
  color: #64748b;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  margin-top: 0.5rem;
  transition: color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

html[data-bs-theme='dark'] .splash-text {
  color: #94a3b8;
}
