html {
  font-size: 13px;
  font-weight: 400;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.page-loading {
  margin: 0;
  height: 100%;
  overflow: hidden;
  transition: none !important;
}

/*
 * Visual styling lives on .splash-screen itself (NOT scoped to body.page-loading)
 * so the green full-screen splash renders correctly however it gets shown:
 *   - on the static pre-JS load (body.page-loading → display:flex, below), and
 *   - when _LayoutProvider toggles the element's inline display:flex after React
 *     mounts — by which point MetronicSplashScreenProvider may have already
 *     removed body.page-loading. Previously the green bg + centering were scoped
 *     to `.page-loading .splash-screen`, so in that window the splash showed
 *     white with the logo stuck top-left.
 * display:none keeps it hidden until one of those mechanisms shows it.
 */
.splash-screen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #04342C;
}

/* Show during the static pre-JS load (index.html ships body.page-loading) */
.page-loading .splash-screen {
  display: flex;
}

.splash-screen .loading-text {
  color: #8FA8A0;
  margin-left: 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.splash-screen .splash-logo {
  margin-bottom: 1.5rem;
}

/* Hide old Metronic logos if any remain */
.splash-screen .dark-logo,
.splash-screen .light-logo {
  display: none !important;
}

.loader {
  width: 1.5rem;
  height: 1.5rem;
  border: 0.15rem solid #5DCAA5;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 0.65s linear infinite;
}

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

.loader-wrapper {
  display: flex;
  align-items: center;
  margin-top: 1rem;
}

.splash-screen .splash-name {
  color: #9FE1CB;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 5px;
  margin-bottom: 0.25rem;
}
