/* =========================================================
   Splash Screen — SIM-Tren
   Font: Geist (via Google Fonts, di-preload di index.html)
   ========================================================= */

#splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #f0fdf4 0%, #dcfce7 50%, #bbf7d0 100%);
  font-family: "Geist", sans-serif;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#splash-screen .splash-logo {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  object-fit: contain;
  margin-bottom: 20px;
  animation: splashPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

#splash-screen .splash-title {
  font-size: 26px;
  font-weight: 700;
  color: #14532d;
  letter-spacing: -0.5px;
  margin: 0 0 4px;
  animation: splashFade 0.5s 0.15s ease both;
}

#splash-screen .splash-subtitle {
  font-size: 13px;
  font-weight: 400;
  color: #16a34a;
  letter-spacing: 0.2px;
  margin: 0 0 36px;
  animation: splashFade 0.5s 0.25s ease both;
}

#splash-screen .splash-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #bbf7d0;
  border-top-color: #16a34a;
  border-radius: 50%;
  animation: splashSpin 0.8s linear infinite;
}

@keyframes splashPop {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes splashFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes splashSpin {
  to { transform: rotate(360deg); }
}
