/* --- RESET & BASE --- */
body.landing-body {
  font-family: "Poppins", sans-serif !important;
  background-color: #0f172a !important;
  color: #f8fafc;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  min-height: 100vh !important;
  overflow-x: hidden !important; /* Mencegah horizontal scroll */
  display: flex !important;
  flex-direction: column !important;
}

/* Memastikan font Poppins diaplikasikan ke semua elemen landing */
.landing-body h1,
.landing-body h2,
.landing-body p,
.landing-body div,
.landing-body span {
  font-family: "Poppins", sans-serif !important;
}

/* --- WRAPPER LAYOUT --- */
.landing-wrapper {
  width: 100% !important;
  max-width: 1200px;
  z-index: 9999 !important;
  position: relative !important;
  margin: auto !important; /* Untuk vertical dan horizontal centering */
  padding: 2rem 15px !important;
}

/* Sembunyikan elemen dashboard bawaan template */
.landing-body footer,
.landing-body .sticky-footer,
.landing-body #wrapper #content-wrapper #footer,
.landing-body .copyright {
  display: none !important;
}

/* Pastikan container dashboard transparan dan menyesuaikan landing */
.landing-body #wrapper {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  flex: 1 !important; /* Expand memenuhi ruang body */
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
}

.landing-body #content-wrapper {
  display: none !important;
}

/* --- LOGO SECTION --- */
.logo-container {
  background: #3b82f6;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

/* --- TIMER SECTION (Glassmorphism) --- */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.timer-unit {
  min-width: 110px;
  text-align: center;
}

.timer-value {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}

.timer-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #94a3b8;
  font-weight: 600;
}

.highlight-blue {
  color: #3b82f6;
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

/* --- DEKORASI --- */
.bg-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.15);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

/* --- RESPONSIVE TABLET --- */
@media (max-width: 992px) {
  .timer-value {
    font-size: 2.4rem;
  }
  .timer-unit {
    min-width: 85px;
    padding: 1.2rem 1rem !important;
  }
  .display-4 {
    font-size: 2.2rem;
  }
  #subtitle {
    font-size: 1rem;
    padding: 0 1rem;
  }
}

/* --- RESPONSIVE MOBILE (FULL FIX) --- */
@media (max-width: 576px) {
  body.landing-body {
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh;
    padding: 2rem 0;
  }

  .logo-img {
    width: 50px;
    height: 50px;
  }

  .display-4 {
    font-size: 1.6rem !important;
    padding: 0 10px;
  }

  #subtitle {
    font-size: 0.85rem !important;
    margin-bottom: 1.5rem !important;
    padding: 0 15px;
  }

  /* Memastikan Timer tetap 1 baris & Rapi */
  #timer-container {
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
  }

  .timer-unit {
    min-width: 60px !important;
    padding: 0.8rem 0.2rem !important;
    margin: 0 !important;
  }

  .timer-value {
    font-size: 1.3rem !important;
  }
  
  .timer-label {
    font-size: 0.6rem !important;
  }

  .glass-card {
    border-radius: 12px;
  }

  #status-footer {
    margin-top: 1.5rem !important;
  }
}

/* --- FIX UNTUK LAYAR LANDSCAPE (HP/TABLET) --- */
@media (max-height: 650px) {
  body.landing-body {
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh;
    padding: 2rem 0;
  }
}
