/* ===== PACMAN LOADER (optional legacy styles) ===== */
/* These can be removed if you only want the rocket animation */
@keyframes lds-pacman-1 {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(-45deg);
  }
}
@keyframes lds-pacman-2 {
  0%,
  100% {
    transform: rotate(180deg);
  }
  50% {
    transform: rotate(225deg);
  }
}
@keyframes lds-pacman-3 {
  0% {
    transform: translate(190px, 0);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translate(70px, 0);
    opacity: 1;
  }
}

/* ===== APP LOADING STYLES (for Pacman) ===== */
.app-loading {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  top: 10em;
  position: relative;
}

.app-loading p {
  font-size: 1.17em;
  font-weight: normal;
}

.app-loading .lds-pacman {
  position: relative;
  margin: auto;
  width: 200px;
  height: 200px;
  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;
  animation: lds-pacman-1 1s linear infinite;
  transform-origin: 60px 60px;
}

.app-loading .lds-pacman > div:nth-child(2) div:nth-child(2) {
  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('/content/images/logo-jhipster.png');
  background-size: contain;
  animation: lds-pacman-3 1.5s linear infinite;
}

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

/* ===== ROCKET ANIMATION LOADER ===== */
.transport-loader {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rocket {
  position: relative;
  width: 40px;
  height: 100px;
  background: linear-gradient(to bottom, #ccc, #eee);
  border-radius: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  animation: launch 10s ease-in-out infinite;
}

.nose {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 20px solid #ccc;
}

.window {
  width: 12px;
  height: 12px;
  background: #3498db;
  border-radius: 50%;
  margin-top: 20px;
  z-index: 2;
}

.fin {
  position: absolute;
  bottom: 0;
  width: 12px;
  height: 20px;
  background: #888;
}

.fin.left {
  left: -12px;
  transform: rotate(20deg);
}

.fin.right {
  right: -12px;
  transform: rotate(-20deg);
}

.flame {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 30px;
  background: radial-gradient(ellipse at center, orange 0%, red 80%);
  border-radius: 50% 50% 40% 40%;
  animation: flicker 0.2s infinite alternate;
}

/* ===== Keyframes for Rocket ===== */
@keyframes launch {
  0% {
    transform: translateY(50px);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-150px);
    opacity: 1;
  }
  100% {
    transform: translateY(50px);
    opacity: 0.5;
  }
}

@keyframes flicker {
  from {
    transform: translateX(-50%) scaleY(1);
    opacity: 0.9;
  }
  to {
    transform: translateX(-50%) scaleY(1.2);
    opacity: 1;
  }
}
