/* Loading animation styles */
.ul-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.ul-loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.ul-loading-spinner {
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.ul-loading-spinner::before,
.ul-loading-spinner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  animation-duration: 1.8s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

.ul-loading-spinner::before {
  width: 80px;
  height: 80px;
  border: 4px solid transparent;
  border-top-color: #0b3390;
  border-bottom-color: #0b3390;
  animation-name: spin;
}

.ul-loading-spinner::after {
  width: 60px;
  height: 60px;
  border: 4px solid transparent;
  border-left-color: #1e4db3;
  border-right-color: #1e4db3;
  animation-name: spin-reverse;
}

.ul-loading-logo {
  width: 48px;
  height: 48px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1;
  animation: pulse 1.8s infinite ease-in-out;
}

.ul-loading-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.ul-loading-text {
  position: absolute;
  bottom: -30px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #0b3390;
  font-weight: 500;
  text-align: center;
  width: 100%;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spin-reverse {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

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

/* Minimize animation for ajax calls after login */
.ajax-loading .ul-loading-spinner {
  width: 60px;
  height: 60px;
}

.ajax-loading .ul-loading-spinner::before {
  width: 50px;
  height: 50px;
}

.ajax-loading .ul-loading-spinner::after {
  width: 40px;
  height: 40px;
}

.ajax-loading .ul-loading-logo {
  width: 30px;
  height: 30px;
}

.ajax-loading .ul-loading-logo img {
  width: 20px;
  height: 20px;
}

.ajax-loading .ul-loading-text {
  font-size: 12px;
  bottom: -24px;
}
