/* Psydix Testcenter Loading Animation */
@keyframes lds-pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.7;
  }
}

@keyframes lds-dots {
  0%,
  80%,
  100% {
    opacity: 0.3;
  }
  40% {
    opacity: 1;
  }
}

.app-loading {
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
}

.app-loading .lds-pacman {
  position: relative;
  margin: auto;
  width: 120px !important;
  height: 120px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Logo container */
.app-loading .lds-pacman > div:nth-child(2) {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-loading .lds-pacman > div:nth-child(2) div {
  width: 80px;
  height: 80px;
  background-image: url('/content/images/psydix-logo.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  animation: lds-pulse 1.5s ease-in-out infinite;
  border-radius: 0;
  border: none;
}

.app-loading .lds-pacman > div:nth-child(2) div:nth-child(2) {
  display: none;
}

/* Loading dots */
.app-loading .lds-pacman > div:nth-child(1) {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.app-loading .lds-pacman > div:nth-child(1) div {
  width: 10px;
  height: 10px;
  background-color: #4f46e5;
  border-radius: 50%;
  animation: lds-dots 1.4s ease-in-out infinite;
  background-image: none;
  position: static;
  top: auto;
  left: auto;
}

.app-loading .lds-pacman > div:nth-child(1) div:nth-child(1) {
  animation-delay: 0s;
}

.app-loading .lds-pacman > div:nth-child(1) div:nth-child(2) {
  animation-delay: 0.2s;
}

.app-loading .lds-pacman > div:nth-child(1) div:nth-child(3) {
  animation-delay: 0.4s;
}

.app-loading p {
  display: block;
  font-size: 1rem;
  margin-top: 24px;
  margin-inline-start: 0;
  margin-inline-end: 0;
  font-weight: 500;
  color: #4b5563;
}
