/* ============================================================
   PRELOADER & ROUTE LOADER ANIMATIONS (PURE DENTAL TOOTH ICON)
   File: public/Assets/css/components/preloader.css
   ============================================================ */

/* ── Fullscreen Site Preloader & Page Route Transition Loader ── */
.site-preloader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s ease;
  overflow: hidden;
}

.site-preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ── Central Loader Container ── */
.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  max-width: 360px;
  padding: 24px;
}

/* ── Pure Dental Tooth Icon Wrapper (Zero Circles) ── */
.dental-loader-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.dental-tooth-icon-holder {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: dentalToothPulse 1.8s ease-in-out infinite;
}

.dental-loader-tooth {
  transition: transform 0.3s ease;
}

/* Glowing Sparkle Star on Tooth Crown */
.dental-tooth-star {
  transform-origin: 74px 24px;
  animation: dentalStarGleam 1.5s ease-in-out infinite;
}

/* ── Brand Typography ── */
.preloader-brand-title {
  font-family: var(--font-heading, "Poppins", sans-serif);
  font-size: 20px;
  font-weight: 800;
  color: #072739;
  margin-bottom: 2px;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.preloader-brand-title span {
  color: #008299;
}

.preloader-tagline {
  font-size: 11px;
  font-weight: 600;
  color: #607987;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ── Minimalist Dental Care Indicator Line ── */
.dental-loader-line {
  width: 140px;
  height: 3.5px;
  background: rgba(0, 130, 153, 0.12);
  border-radius: 50px;
  overflow: hidden;
  position: relative;
}

.dental-loader-line-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, #005d6e, #008299 50%, #00c0db 100%);
  border-radius: 50px;
  animation: dentalLineMove 1.2s ease-in-out infinite;
}

/* ── Inline Page Loader (Used by Suspense Fallback) ── */
.page-suspense-loader {
  min-height: 50vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: #ffffff;
}

/* ── Keyframe Animations for Pure Dental Tooth ── */
@keyframes dentalToothPulse {
  0%, 100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 6px 14px rgba(0, 130, 153, 0.25));
  }
  50% {
    transform: translateY(-8px) scale(1.06);
    filter: drop-shadow(0 14px 24px rgba(0, 156, 183, 0.45));
  }
}

@keyframes dentalStarGleam {
  0%, 100% {
    transform: scale(0.7) rotate(0deg);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.3) rotate(45deg);
    opacity: 1;
  }
}

@keyframes dentalLineMove {
  0% {
    left: -50%;
  }
  50% {
    left: 35%;
    width: 65%;
  }
  100% {
    left: 100%;
    width: 50%;
  }
}
