/* @keyframes lds-pacman-1 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  50% {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
  }
  100% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
}
@-webkit-keyframes lds-pacman-1 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  50% {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
  }
  100% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
}
@keyframes lds-pacman-2 {
  0% {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
  }
  50% {
    -webkit-transform: rotate(225deg);
    transform: rotate(225deg);
  }
  100% {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
  }
}
@-webkit-keyframes lds-pacman-2 {
  0% {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
  }
  50% {
    -webkit-transform: rotate(225deg);
    transform: rotate(225deg);
  }
  100% {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
  }
}
@keyframes lds-pacman-3 {
  0% {
    -webkit-transform: translate(190px, 0);
    transform: translate(190px, 0);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    -webkit-transform: translate(70px, 0);
    transform: translate(70px, 0);
    opacity: 1;
  }
}
@-webkit-keyframes lds-pacman-3 {
  0% {
    -webkit-transform: translate(190px, 0);
    transform: translate(190px, 0);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    -webkit-transform: translate(70px, 0);
    transform: translate(70px, 0);
    opacity: 1;
  }
}

.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 .lds-pacman {
  position: relative;
  margin: auto;
  width: 200px !important;
  height: 200px !important;
  -webkit-transform: translate(-100px, -100px) scale(1) translate(100px, 100px);
  transform: translate(-100px, -100px) scale(1) translate(100px, 100px);
}
.app-loading .lds-pacman > div:nth-child(2) div {
  position: absolute;
  top: 40px;
  left: 40px;
  width: 120px;
  height: 60px;
  border-radius: 120px 120px 0 0;
  background: #bbcedd;
  -webkit-animation: lds-pacman-1 1s linear infinite;
  animation: lds-pacman-1 1s linear infinite;
  -webkit-transform-origin: 60px 60px;
  transform-origin: 60px 60px;
}
.app-loading .lds-pacman > div:nth-child(2) div:nth-child(2) {
  -webkit-animation: lds-pacman-2 1s linear infinite;
  animation: lds-pacman-2 1s linear infinite;
}
.app-loading .lds-pacman > div:nth-child(1) div {
  position: absolute;
  top: 97px;
  left: -8px;
  width: 24px;
  height: 10px;
  background-image: url('../images/logo-jhipster.png');
  background-size: contain;
  -webkit-animation: lds-pacman-3 1s linear infinite;
  animation: lds-pacman-3 1.5s linear infinite;
}
.app-loading .lds-pacman > div:nth-child(1) div:nth-child(1) {
  -webkit-animation-delay: -0.67s;
  animation-delay: -1s;
}
.app-loading .lds-pacman > div:nth-child(1) div:nth-child(2) {
  -webkit-animation-delay: -0.33s;
  animation-delay: -0.5s;
}
.app-loading .lds-pacman > div:nth-child(1) div:nth-child(3) {
  -webkit-animation-delay: 0s;
  animation-delay: 0s;
}

.bg {
  background-image: url('/content/images/main_page_bg.jpg');
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
} */

.app-loading {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  animation: fadeIn 0.6s ease-in-out;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
  background: linear-gradient(135deg, #fcfcfc 0%, #fcfcfc 100%) !important;
  min-height: 100vh;
  line-height: 1.6;
  color: #333;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lds-pacman {
  display: none;
}

#jhipster-error {
  background: rgba(255, 255, 255, 0.98);
  padding: 3rem;
  border-radius: 20px;
  margin-top: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 10px 20px rgba(0, 0, 0, 0.05);
  max-width: 900px;
  width: 100%;
  text-align: left;
  position: relative;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

#jhipster-error::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #e74c3c, #f39c12, #e74c3c);
  animation: pulse 2s infinite;
}

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

  50% {
    opacity: 0.7;
  }
}

#jhipster-error h1 {
  color: #e74c3c;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#jhipster-error h1::before {
  content: '⚠️';
  font-size: 1.5rem;
}

#jhipster-error h2 {
  color: #2c3e50;
  margin: 2rem 0 1rem;
  font-size: 1.4rem;
  font-weight: 600;
  border-left: 4px solid #3498db;
  padding-left: 1rem;
  position: relative;
}

#jhipster-error h3 {
  color: #34495e;
  margin: 1.5rem 0 0.8rem;
  font-size: 1.2rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#jhipster-error h3:nth-of-type(1)::before {
  content: '❓';
}

#jhipster-error h3:nth-of-type(2)::before {
  content: '🐛';
}

#jhipster-error h3:nth-of-type(3)::before {
  content: '💬';
}

#jhipster-error ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
  counter-reset: step-counter;
}

#jhipster-error ol li {
  margin-bottom: 0.8rem;
  line-height: 1.7;
  position: relative;
  padding-left: 0.5rem;
  counter-increment: step-counter;
}

#jhipster-error ol li::marker {
  color: #3498db;
  font-weight: bold;
}

#jhipster-error p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: #555;
}

#jhipster-error code {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 4px 8px;
  border-radius: 6px;
  font-family: 'Fira Code', 'Courier New', monospace;
  color: #e74c3c;
  font-weight: 500;
  font-size: 0.9em;
  border: 1px solid #dee2e6;
  white-space: nowrap;
}

#jhipster-error a {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
}

#jhipster-error a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3498db, #2980b9);
  transition: width 0.3s ease;
}

#jhipster-error a:hover {
  color: #2980b9;
  transform: translateY(-1px);
}

#jhipster-error a:hover::after {
  width: 100%;
}

.section-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, #e9ecef, transparent);
  margin: 2rem 0;
}

.highlight-box {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-left: 4px solid #17a2b8;
  padding: 1.5rem;
  margin: 1rem 0;
  border-radius: 0 10px 10px 0;
  position: relative;
}

.highlight-box::before {
  content: '💡';
  position: absolute;
  top: 1rem;
  left: -2px;
  background: white;
  padding: 0.2rem;
  border-radius: 50%;
}

.command-group {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 1rem;
  border-radius: 10px;
  margin: 1rem 0;
  font-family: 'Fira Code', monospace;
}

.command-group code {
  background: rgba(255, 255, 255, 0.1);
  color: #f39c12;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .app-loading {
    padding: 1rem;
  }

  #jhipster-error {
    padding: 2rem;
    font-size: 0.9rem;
    max-width: 100%;
    margin-top: 0;
    border-radius: 15px;
  }

  #jhipster-error h1 {
    font-size: 1.6rem;
  }

  #jhipster-error h2 {
    font-size: 1.2rem;
  }

  #jhipster-error h3 {
    font-size: 1.1rem;
  }

  #jhipster-error ol {
    margin-left: 1.5rem;
  }

  #jhipster-error code {
    font-size: 0.8em;
    padding: 3px 6px;
  }
}

@media (max-width: 480px) {
  body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  }

  .app-loading {
    padding: 0.5rem;
  }

  #jhipster-error {
    padding: 1.5rem;
    font-size: 0.85rem;
    border-radius: 12px;
  }

  #jhipster-error h1 {
    font-size: 1.4rem;
  }

  #jhipster-error code {
    word-break: break-all;
    white-space: normal;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  body {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  }

  #jhipster-error {
    background: rgba(44, 62, 80, 0.95);
    color: #ecf0f1;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  #jhipster-error h2 {
    color: #3498db;
  }

  #jhipster-error h3 {
    color: #95a5a6;
  }

  #jhipster-error p {
    color: #bdc3c7;
  }

  #jhipster-error code {
    background: rgba(255, 255, 255, 0.1);
    color: #f39c12;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
}
