#app-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2d241c 0%, #3e3226 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
  transition: opacity 0.3s ease-out;
}

#app-loading.loaded {
  opacity: 0;
  pointer-events: none;
}

.loader {
  width: 56px;
  height: 56px;
  border: 4px solid rgba(174, 123, 55, 0.2);
  border-radius: 50%;
  border-top-color: #ae7b37; /* Primary Seed Color */
  border-right-color: #c9934d; /* Slightly lighter shade for a dynamic spin effect */
  animation: spin 1s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(174, 123, 55, 0.3);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  color: rgba(255, 255, 255, 0.8);
  margin-top: 24px;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.5px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}

/* Base body styles */
body {
  margin: 0;
  padding: 0;
}

#blazor-error-ui {
  background: #ffebee;
  color: #c62828;
  bottom: 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  display: none;
  left: 0;
  padding: 0.8rem 1.5rem;
  position: fixed;
  width: 100%;
  z-index: 10000;
  font-family: "Roboto", sans-serif;
}

#blazor-error-ui .reload {
  color: #c62828;
  font-weight: 500;
  text-decoration: underline;
  margin-right: 10px;
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 1rem;
  top: 0.8rem;
  font-size: 1.2rem;
  color: #c62828;
  font-weight: bold;
}

#blazor-error-ui .dismiss:hover {
  color: #b71c1c;
}

.login-layout {
  background: linear-gradient(
    135deg,
    var(--mud-palette-primary) 0%,
    var(--mud-palette-drawer-background) 100%
  );
}

.animate-slide-up {
  animation: slideUp 0.3s ease-out forwards;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.print-only-container {
  display: none;
}
