/* Clean Simple Loader - Combined CSS */
.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader-wrapper.hidden {
  display: none;
}

.loader-container {
  text-align: center;
  position: relative;
}

/* Fishers Logo */
.loader-logo {
  width: 60%;
  height: auto;
  margin: 0px 0 15% 25%;
  animation: pulse-scale 2s ease-in-out infinite;
}

.loader-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Pulse and Scale Animation (No Rotation) */
@keyframes pulse-scale {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}

/* Progress Dots */
.loader-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  height: 30px;
}

.loader-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #999;
  animation: dots-progress 1.6s ease-in-out infinite;
}

.loader-dots span:nth-child(1) {
  animation-delay: 0s;
}

.loader-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.loader-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

.loader-dots span:nth-child(4) {
  animation-delay: 0.6s;
}

.loader-dots span:nth-child(5) {
  animation-delay: 0.8s;
}

.loader-dots span:nth-child(6) {
  animation-delay: 1s;
}

@keyframes dots-progress {
  0%, 100% {
    background-color: #999;
    transform: scale(1);
  }
  50% {
    background-color: #667eea;
    transform: scale(1.2);
  }
}

/* Powered By Rejola */
.loader-powered-by {
  margin-top: 60px;
  opacity: 0;
  animation: type-then-show 3.5s steps(1, end) forwards;
}

.loader-powered-by-text {
  display: inline-block;
  color: #666;
  font-size: 22px;
  letter-spacing: 1px;
  text-transform: uppercase;
  /* margin-right: 10px; */
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  /* border-right removed to eliminate cursor */
  animation: typing 1.5s steps(14, end) forwards;
  width: 0;
}

.loader-rejola-logo {
  width: 210px;
  height: auto;
  display: inline-block;
  opacity: 0;
  animation: fade-in-logo 0.8s ease-out forwards;
  animation-delay: 1.5s;
}

.loader-rejola-logo img {
  width: auto;
  height: auto;
  object-fit: contain;
  /* filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.1)); */
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 14ch;
  }
}

@keyframes blink {
  from, to {
    border-color: transparent;
  }
  50% {
    border-color: #667eea;
  }
}

@keyframes fade-in-logo {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes type-then-show {
  0% {
    opacity: 0;
  }
  1% {
    opacity: 1;
  }
  99% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

/* Hide unused elements */
.loader-ring,
.loader-text,
.linear-progress-bar {
  display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
  .loader-logo {
    width: 220px;
    height: 220px;
    margin: 0 auto 40px;
  }
/* Responsive Powered By Rejola section for loader */
@media (max-width: 600px) {
  .loader-powered-by {
    flex-direction: column !important;
    align-items: center !important;
    display: flex !important;
    margin-top: 18px !important;
    font-size: 15px !important;
    width: 100vw !important;
    max-width: 100vw !important;
    box-sizing: border-box;
  }
  .loader-powered-by-text {
    font-size: 15px !important;
    text-align: center !important;
    margin-bottom: 4px !important;
    padding: 0 8px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    animation: typing 1.5s steps(14, end) forwards !important;
    /* The keyframes already animate to width: 14ch */
  }
  .loader-rejola-logo {
    width: 80px !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: center !important;
  }
  .loader-rejola-logo img {
    max-width: 80px !important;
    height: auto !important;
  }
}

  .loader-powered-by {
    margin-top: 40px;
  }

  .loader-rejola-logo {
    width: 70px;
  }
}
