/* Loading Animation Styles */
.app-loading {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  top: 10em;
}

.app-loading p {
  display: block;
  font-size: 1.17em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  font-weight: normal;
}

.app-loading .dots-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}

.app-loading .dot {
  height: 20px;
  width: 20px;
  margin-right: 10px;
  border-radius: 10px;
  background-color: #818cf8;
  animation: pulse 1.5s infinite ease-in-out;
}

.app-loading .dot:last-child {
  margin-right: 0;
}

.app-loading .dot:nth-child(1) {
  animation-delay: -0.3s;
}

.app-loading .dot:nth-child(2) {
  animation-delay: -0.1s;
}

.app-loading .dot:nth-child(3) {
  animation-delay: 0.1s;
}

.app-loading .dot:nth-child(4) {
  animation-delay: 0.3s;
}

.app-loading .dot:nth-child(5) {
  animation-delay: 0.5s;
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    background-color: #818cf8;
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
  }

  50% {
    transform: scale(1.2);
    background-color: #6366f1;
    box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
  }

  100% {
    transform: scale(0.8);
    background-color: #818cf8;
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
  }
}

/* Error message styles */
#jhipster-error {
  display: none;
}

.app-loading .jhipster-error {
  color: #1f2937;
}

body.dark-mode .app-loading .jhipster-error {
  color: #f9fafb;
}
