.root-loading {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.root-loading .loading-container::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: shimmer 3s ease-in-out infinite;
}

.root-loading .bouncing-icon {
  position: relative;
  z-index: 2;
  margin-bottom: 20px;
  animation: bounce 1.5s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.root-loading .unicorn-image {
  width: 100px;
  height: auto;
  object-fit: contain;
  animation: float 2s ease-in-out infinite;
  transform-origin: center bottom;
}

.root-loading .sparkles {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.root-loading .sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  animation: sparkleFloat 3s ease-in-out infinite;
}
.root-loading .sparkle:nth-child(1) {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.root-loading .sparkle:nth-child(2) {
  top: 30%;
  right: 25%;
  animation-delay: 1s;
}

.root-loading .sparkle:nth-child(3) {
  top: 60%;
  left: 30%;
  animation-delay: 2s;
}

.root-loading .sparkle:nth-child(4) {
  top: 70%;
  right: 20%;
  animation-delay: 1.5s;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) scale(1);
  }
  40% {
    transform: translateY(-20px) scale(1.05);
  }
  60% {
    transform: translateY(-10px) scale(1.02);
  }
}

@keyframes float {
  0%,
  100% {
    transform: rotate(0deg) translateY(0px);
  }
  25% {
    transform: rotate(-2deg) translateY(-5px);
  }
  50% {
    transform: rotate(0deg) translateY(-8px);
  }
  75% {
    transform: rotate(2deg) translateY(-5px);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}

@keyframes textGlow {
  0%,
  100% {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }
  50% {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 255, 255, 0.5);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

@keyframes sparkleFloat {
  0%,
  100% {
    opacity: 0;
    transform: translateY(0px) scale(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-20px) scale(1);
  }
}

.root-loading .loading-container.dark-theme {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
}

.root-loading .loading-container.light-theme {
  background: linear-gradient(135deg, #e6fffa 0%, #b2f5ea 100%);

  .loading-text {
    color: #2d3748;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  }
}

.root-loading .loading-container.colorful-theme {
  background: linear-gradient(
    45deg,
    #ff6b6b,
    #4ecdc4,
    #45b7d1,
    #f9ca24,
    #f0932b,
    #eb4d4b,
    #6c5ce7
  );
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.root-loading .loading-container.fast-animation .bouncing-icon {
  animation-duration: 0.8s;
}
.root-loading .loading-container.fast-animation .dot {
  animation-duration: 1s;
}
.root-loading .loading-container.fast-animantion .sparkle {
  animation-duration: 2s;
}

.root-loading .loading-container.slow-animation .bouncing-icon {
  animation-duration: 2.5s;
}
.root-loading .loading-container.slow-animation .dot {
  animation-duration: 2.5s;
}
.root-loading .loading-container.slow-animation .sparkle {
  animation-duration: 4s;
}

.root-loading .loading-container.no-sparkles .sparkles {
  display: none;
}

.root-loading .loading-container.large-size {
  min-height: 300px;
  padding: 30px;
}
.root-loading .loading-container.large-size .unicorn-image {
  width: calc(var(--unicorn-size, 80px) * 1.5);
  max-height: calc(var(--unicorn-size, 80px) * 1.5 * 1.2);
}

.root-loading .loading-container.large-size .loading-text {
  font-size: 20px;
}

.root-loading .loading-container.large-size .dot {
  width: 16px;
  height: 16px;
}

.root-loading .loading-container.large-size .sparkle {
  animation-duration: 4s;
}

.root-loading .loading-container.large-size .dot {
  animation-duration: 2.5s;
}
