/* High-Tech Premium Loading Screen Styles */
#app-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #080c14;
  background-image: 
    radial-gradient(circle at 50% 40%, rgba(56, 189, 248, 0.12) 0px, transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.08) 0px, transparent 50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.45s ease;
  direction: rtl;
  font-family: var(--font-family-fa, system-ui, sans-serif);
}

#app-loader.loader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-core {
  position: relative;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.loader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #38bdf8;
  border-right-color: #818cf8;
  animation: loader-spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.loader-ring-inner {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-bottom-color: #38bdf8;
  border-left-color: #6366f1;
  animation: loader-spin-reverse 1s linear infinite;
}

.loader-pulse-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
  animation: loader-pulse 1.6s ease-in-out infinite;
}

.loader-text-group {
  text-align: center;
}

.loader-title {
  color: #f8fafc;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}

.loader-subtitle {
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 24px;
}

.loader-ticker-text {
  font-family: monospace, var(--font-family-fa);
  color: #7dd3fc;
  font-size: 0.8rem;
  direction: rtl;
  display: inline-block;
  transition: opacity 0.2s ease;
}

.loader-progress-track {
  width: 220px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  margin: 18px auto 0;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.loader-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0284c7, #38bdf8, #6366f1);
  border-radius: 6px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px #38bdf8;
  position: relative;
}

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

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

@keyframes loader-pulse {
  0%, 100% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
}
