/* ======================================================
   🌿 INDEX CSS - MANTAABA MOBILE (Versi Final Bersih)
   ====================================================== */

/* Global Reset & Base Styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #F8F9FA;
  font-size: 11px;
  color: #343A40;
}

/* ======================================================
   HEADER (Tetap di atas)
   ====================================================== */
.header {
  background: #203647;
  color: white;
  padding: 12px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 64; /* Fix: hilangkan px */
}

.logo {
  width: 55px;
  height: auto;
  display: block;
  margin: 5px auto 0;
}

/* ======================================================
   GRID MENU (Tetap di bawah header)
   ====================================================== */
.grid-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 18px;
  background: #FFFFFF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 115px; /* offset terhadap tinggi header */
  width: 100%;
  z-index: 1000;
}

.menu-item {
  text-align: center;
}

.menu-item button {
  background: #E0F2F7;
  border: none;
  border-radius: 12px;
  padding: 8px 4px;
  width: 100%;
  color: #007BFF;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0, 123, 255, 0.1);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.menu-item button:hover {
  background: #CCEEF7;
  transform: translateY(-2px);
}

.menu-item img {
  width: 22px;
  height: 24px;
  margin-bottom: 4px;
}

/* ======================================================
   STATISTIK BOX (di bawah menu)
   ====================================================== */
.statistik-box {
  padding: 10px 18px;
  background: #F8F9FA;
  margin-top: 350px;
  position: relative;
  z-index: 997;
  text-align: center;
}

.statistik-box div {
  width: 100%;
  padding: 10px;
  font-size: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #FFFFFF;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
  color: #343A40;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
}

/* ======================================================
   KAJIAN SECTIONS (2 kolom: Next Kajian + Jadwal YPI)
   ====================================================== */
.kajian-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 10px 18px 70px;
  background: #F8F9FA;
}

.jadwal-container {
  background: #FFFFFF;
  margin-bottom: 0;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.jadwal-container h4 {
  margin: 0;
  font-size: 14px;
}

/* ======================================================
   DETAIL TEKS DI ITEM JADWAL
   ====================================================== */
.jadwal-details p {
  margin: 2px 0 0;
  font-size: 10px;
  color: #777;
  line-height: 1.7;
}

.jadwal-container p {
  margin: 0;
  font-size: 11px;
  color: #555;
}

/* Border bawah tiap item jadwal */
.jadwal-item:not(:last-child) {
  border-bottom: 1px dashed #D3D3D3;
  padding-bottom: 12px;
  margin-bottom: 12px;
}

/* ======================================================
   TITLE SETIAP BAGIAN
   ====================================================== */
#titleJadwalTerdekat {
  background-color: #ADD8E6;
  padding: 8px 10px;
  border-radius: 5px;
  margin-bottom: 12px;
  border-bottom: 1px solid #e0e0e0;
  color: #203647;
}

#titleJadwalMantaaba {
  background-color: #D4EDDA;
  padding: 8px 10px;
  border-radius: 5px;
  margin-bottom: 12px;
  border-bottom: 1px solid #e0e0e0;
  color: #203647;
}

/* ======================================================
   🔧 Urutan Lapisan (Z-Index) Agar Scroll Rapi
   ====================================================== */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.grid-menu {
  position: fixed;
  top: 115px;
  width: 100%;
  z-index: 999;
}

.statistik-box,
.kajian-sections {
  position: relative;
  z-index: 1;
}

/* ======================================================
   FOOTER NAVIGASI (fixed di bawah)
   ====================================================== */
.footer-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #203647;
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
  z-index: 999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-nav img {
  width: 22px;
  height: 24px;
  cursor: pointer;
}

/* ======================================================
   NOTIFIKASI BADGE (angka merah kecil)
   ====================================================== */
.notif-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #E74C3C;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 9px;
  font-weight: bold;
  min-width: 18px;
  text-align: center;
  line-height: 1.2;
  display: none;
}

/* ======================================================
   NEXT KAJIAN STYLING
   ====================================================== */
.next-kajian-list {
  background: #f8fbff;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.next-kajian-list h3 {
  color: #007bff;
  margin-bottom: 10px;
  border-bottom: 1px solid #d6e9ff;
  padding-bottom: 6px;
}

.next-kajian-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
}

.next-kajian-item .no {
  font-weight: bold;
  color: #007bff;
  margin-right: 8px;
}

.next-kajian-item .info h4 {
  margin: 0;
  font-size: 16px;
  color: #333;
}

.next-kajian-item .info p {
  margin: 2px 0 0 0;
  font-size: 14px;
  color: #555;
}

/* ======================================================
   KAJIAN CARD STYLE (dipakai di halaman lain juga)
   ====================================================== */
.next-kajian-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 6px;
}

.kajian-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kajian-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.kajian-title {
  margin: 0;
  font-size: 1.1em;
  font-weight: 600;
  color: #004c3f;
}

.kajian-meta p {
  margin: 2px 0;
  font-size: 0.9em;
  color: #333;
}

/* ======================================================
   LABEL STATUS HARI (Hari ini, Besok, dll)
   ====================================================== */
.label-status {
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 0.75em;
  font-weight: bold;
  color: white;
  margin-right: 6px;
}

.label-hari-ini { background-color: #009688; }
.label-besok { background-color: #4caf50; }
.label-minggu-ini { background-color: #2196f3; }
.label-minggu-depan { background-color: #9c27b0; }

.kajian-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

/* =========================================
   NOTIFIKASI POPUP (Desain Profesional)
   ========================================= */
#notifikasiWrapper {
  position: fixed;
  top: 18px;
  right: 12px;
  z-index: 9999;
}

#notifikasiBtn {
  background: #ffffff;
  border: 1.5px solid #d9e2f3;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 22px;
  color: #1a3e6c;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
}
#notifikasiBtn:hover {
  background: #f4f8ff;
  transform: translateY(-2px);
}

#notifikasiCount {
  background: #ff3b30;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  border-radius: 50%;
  padding: 2px 6px;
  position: absolute;
  top: -4px;
  right: -4px;
  display: none;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  animation: pulseBadge 1.5s infinite;
}
@keyframes pulseBadge {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.9; }
}

/* =====================================================
   🔔 Popup Notifikasi Peserta Baru — Versi Elegan & Rapi
   ===================================================== */
#popupNotifikasi {
  position: fixed;
  top: 70px;
  right: 18px;
  width: 340px;
  max-height: 470px;
  background: #ffffff;
  border: 1px solid #e1e8f0;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
  display: none;
  z-index: 10000;
  animation: fadeInUp 0.3s ease;
  font-family: "Poppins", sans-serif;
}

.popup-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #1a3e6c, #4a6fa5);
  color: #fff;
  font-weight: 600;
  padding: 12px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-radius: 14px 14px 0 0;
  box-shadow: inset 0 -2px 6px rgba(255, 255, 255, 0.15);
}
.popup-header .material-icons {
  font-size: 19px;
  opacity: 0.9;
}

/* Daftar item */
#daftarNotifikasi {
  list-style: none;
  margin: 0;
  padding: 12px 14px;
}
#daftarNotifikasi li {
  position: relative;
  background: #f9fbff;
  border: 1px solid #e6edf9;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
}
#daftarNotifikasi li:hover {
  background: #eef5ff;
  transform: translateX(2px);
}

#daftarNotifikasi li strong {
  color: #0a2d5e;
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
  line-height: 1.3;
}

#daftarNotifikasi li span {
  display: block;
  color: #444;
  font-size: 12.5px;
  line-height: 1.45;
  margin-left: 4px;
  padding-left: 2px;
}

.badge-new {
  position: absolute;
  top: 6px;
  right: 8px;
  background: linear-gradient(135deg, #008cff, #00b3ff);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 8px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0, 140, 255, 0.4);
  animation: glowBadge 2s ease-in-out infinite;
}
@keyframes glowBadge {
  0%, 100% { box-shadow: 0 0 6px rgba(0, 140, 255, 0.6); }
  50% { box-shadow: 0 0 12px rgba(0, 180, 255, 0.9); }
}
/* =====================================================
   RESPONSIVE
   ===================================================== */

/* ======================================================
   📱 Penyesuaian Proporsional Next Kajian & Jadwal YPI di HP
   ====================================================== */
@media (max-width: 600px) {
  .kajian-sections {
    display: grid;
    grid-template-columns: 48% 48%; /* dua kolom proporsional di HP */
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px 70px;
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: hidden;
  }


   

  .jadwal-container {
    width: 100%;
    max-width: 100%;
    padding: 8px 10px;
    box-sizing: border-box;
  }

  #titleJadwalTerdekat,
  #titleJadwalMantaaba {
    font-size: 13px;
    text-align: center;
  }

  /* ✅ Perbaikan scroll horizontal di HP */
  html, body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100%;
  }

  .grid-menu,
  .kajian-sections,
  .footer-nav,
  .header,
  #popupNotifikasi {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
    left: 0 !important;
    right: 0 !important;
  }

  * {
    box-sizing: border-box !important;
  }
}

/* ======================================================
   💻 Penyesuaian untuk Laptop/Desktop
   ====================================================== */


/* ======================================================
   💻 Penyesuaian untuk Laptop/Desktop
   ====================================================== */
@media (min-width: 601px) {
  #popupNotifikasi {
    width: 350px;             /* ≈ 80% dari lebar layar HP */
    max-width: 80vw;          /* fleksibel di berbagai layar */
    top: 70px;
    left: 50%;                /* posisikan tepat di tengah horizontal */
    transform: translateX(-50%);
    right: auto;              /* hapus penempatan kanan */
  }
}


/* =====================================================
   RESPONSIVE FINAL: Popup Notifikasi & Layout HP
   ===================================================== */

/* 📱 Tampilan HP */
@media (max-width: 600px) {
  /* Popup Notifikasi di Tengah */
  #popupNotifikasi {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 80% !important;        /* lebar 75% layar */
    max-width: 420px !important;  /* batas atas */
    min-width: 260px !important;  /* batas bawah */
    right: auto !important;
    margin: 0 !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.18) !important;
    border: 1px solid #e1e8f0 !important;
    display: none; /* tetap dikontrol JS */
    z-index: 20000 !important;
    overflow-y: auto !important;
    max-height: 80vh !important;
    border-radius: 14px !important;
    background: #ffffff !important;
  }

  /* Area dua kolom Next Kajian & Jadwal YPI tetap proporsional */
  .kajian-sections {
    display: grid;
    grid-template-columns: 48% 48%;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px 70px;
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: hidden;
  }

  .jadwal-container {
    width: 100%;
    max-width: 100%;
    padding: 8px 10px;
    box-sizing: border-box;
  }

  #titleJadwalTerdekat,
  #titleJadwalMantaaba {
    font-size: 13px;
    text-align: center;
  }

  /* ✅ Hilangkan scroll horizontal di HP */
  html, body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100%;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .grid-menu,
  .kajian-sections,
  .footer-nav,
  .header {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
    left: 0 !important;
    right: 0 !important;
  }

  * {
    box-sizing: border-box !important;
  }
}

/* 💻 Tampilan Laptop / Desktop */
@media (min-width: 601px) {
  #popupNotifikasi {
    width: 25vw;
    min-width: 220px;
    max-width: 400px;
    right: 2%;
    top: 70px;
    left: auto;
    transform: none; /* biar tetap pojok kanan */
  }
}


/* ================================
   POPUP LOGIN MODERN ELEGAN
================================ */
#loginPopupOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0 }
  to   { opacity: 1 }
}

#loginPopup {
  width: 88%;
  max-width: 380px;
  background: linear-gradient(145deg, #ffffff, #f3f3f3);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  animation: popupSlide 0.35s ease-out;
}

@keyframes popupSlide {
  from { opacity: 0; transform: translateY(35px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.login-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 18px;
  text-align: center;
}

.login-field {
  margin-bottom: 14px;
}

.login-field label {
  font-size: 14px;
  color: #444;
}

.login-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ccc;
  outline: none;
  font-size: 15px;
  background: #fff;
}

.password-wrapper {
  position: relative;
}

.password-wrapper img {
  width: 20px;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

#rememberMeBox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  margin-bottom: 15px;
}

.login-btn {
  width: 100%;
  background: #006cff;
  color: white;
  border: none;
  padding: 13px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.login-btn:hover {
  background: #005ce0;
}

/* Close button */
#closeLoginPopup {
  position: absolute;
  right: 22px;
  top: 20px;
  font-size: 24px;
  color: #666;
  cursor: pointer;
}

/* ================================
   ICON LOGIN GLOW (MERAH / HIJAU)
================================ */
.footer-icon-glow-red {
  filter: drop-shadow(0 0 6px rgba(255,0,0,0.7));
}

.footer-icon-glow-green {
  filter: drop-shadow(0 0 6px rgba(0,255,0,0.7));
}


.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
}

.popup-box {
  background: white;
  padding: 25px;
  width: 320px;
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  animation: fadeIn 0.25s ease-out;
}

.popup-box h2 {
  margin-bottom: 15px;
  text-align: center;
}

.popup-box input[type="email"],
.popup-box input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  margin: 5px 0 12px 0;
  border-radius: 10px;
  border: 1px solid #ccc;
}

.password-wrapper {
  position: relative;
}

.toggle-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 17px;
}

.remember-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 15px;
}

.submit-btn {
  width: 100%;
  padding: 10px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
}

.close-btn {
  width: 100%;
  padding: 9px;
  background: #ddd;
  border-radius: 10px;
  cursor: pointer;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}


/* ====== ICON GLOW ANIMATION ====== */
.lock-icon {
  transition: transform .25s ease, filter .25s ease;
}

.lock-icon:hover {
  transform: scale(1.18);
  filter: drop-shadow(0 0 6px rgba(0,0,0,0.3));
}

.lock-glow-red {
  filter: drop-shadow(0 0 8px red);
}

.lock-glow-green {
  filter: drop-shadow(0 0 10px limegreen);
}

/* ===== GLASSMORPHISM POPUP ===== */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  backdrop-filter: blur(3px);
  animation: fadeIn .25s ease-out;
}

.popup-glass {
  width: 330px;
  padding: 25px;
  border-radius: 20px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  animation: popupZoom .3s ease;
  color: white;
}

.popup-glass h2 {
  text-align: center;
  margin-bottom: 20px;
}

/* Inputs */
.popup-glass input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: none;
  margin-bottom: 12px;
  backdrop-filter: blur(4px);
}

.password-wrapper {
  position: relative;
}

.toggle-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

/* Buttons */
.submit-btn {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border-radius: 12px;
  background: #00aaff;
  border: none;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: .2s;
}

.submit-btn:hover {
  background: #0090dd;
}

.close-btn {
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  background: #ffffff33;
  border: none;
  color: white;
  margin-top: 10px;
  cursor: pointer;
}

/* Animasi popup */
@keyframes popupZoom {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}



function fireConfetti() {
  const canvas = document.getElementById("confettiCanvas");
  const ctx = canvas.getContext("2d");

  canvas.width = window.innerWidth;
  canvas.height = window.innerHeight;

  const confetti = [];
  const colors = ["#00e676", "#29b6f6", "#ffea00", "#ff5252"];

  for (let i = 0; i < 80; i++) {
    confetti.push({
      x: Math.random() * canvas.width,
      y: -10,
      r: Math.random() * 6 + 4,
      c: colors[Math.floor(Math.random() * colors.length)],
      v: Math.random() * 3 + 2
    });
  }

  function draw() {
    ctx.clearRect(0, 0, canvas.width, canvas.height);

    confetti.forEach((p, i) => {
      ctx.beginPath();
      ctx.arc(p.x, p.y, p.r, 0, 2 * Math.PI);
      ctx.fillStyle = p.c;
      ctx.fill();
      p.y += p.v;
      if (p.y > canvas.height) confetti.splice(i, 1);
    });

    if (confetti.length > 0) requestAnimationFrame(draw);
  }

  draw();
}

/* ===========================
🔥 OVERLAY
=========================== */
.login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  animation: fadeIn 0.3s ease;
}

/* ===========================
🔥 POPUP CONTAINER
=========================== */
.login-popup {
  width: 340px;
  padding: 28px;
  border-radius: 22px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  animation: popupZoom 0.35s ease;
}

.login-title {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}

/* ===========================
🔥 INPUT GROUP
=========================== */
.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-group input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  outline: none;
  backdrop-filter: blur(5px);
}

.input-group input:focus {
  border-color: #4dd0e1;
  background: rgba(255,255,255,0.18);
}

.input-group label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  pointer-events: none;
  color: #ddd;
  transition: 0.25s;
}

/* Label melayang saat focus */
.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
  top: -6px;
  left: 10px;
  background: rgba(0,0,0,0.4);
  padding: 0 6px;
  border-radius: 6px;
  font-size: 12px;
  color: #4dd0e1;
}

/* ===========================
🔥 TOGGLE EYE
=========================== */
.toggle-eye {
  position: absolute;
  right: 14px;
  top: 13px;
  cursor: pointer;
  color: #fff;
}

/* ===========================
🔥 REMEMBER ME
=========================== */
.remember-row {
  margin-bottom: 14px;
  color: #eee;
  font-size: 14px;
}

.remember-box {
  position: relative;
  padding-left: 26px;
  cursor: pointer;
}

.remember-box input {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
  position: absolute;
  left: 0;
  top: 0;
}

.remember-box input:checked + .checkmark {
  background: #4dd0e1;
}

/* ===========================
🔥 BUTTONS
=========================== */
.login-btn {
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #00bcd4, #0088a3);
  color: white;
  font-weight: 600;
  margin-bottom: 10px;
  cursor: pointer;
  transition: 0.25s;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.cancel-btn {
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.12);
  color: white;
  cursor: pointer;
  transition: 0.25s;
}

.cancel-btn:hover {
  background: rgba(255,255,255,0.22);
}

/* ===========================
🔥 ANIMASI
=========================== */
@keyframes popupZoom {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


/* index-css (16).css: Baris 30-38 */

/* ======================================================
   GRID MENU (Tetap di bawah header)
   ====================================================== */
.grid-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  
  /* --- Perbaikan FINAL: Background Putih Menempel ke Header FIXED --- */
  
  /* 1. Kompensasi Posisi FIXED (Kembalikan ke nilai awal Anda, tapi pastikan !important) */
  position: fixed !important;
  top: 115px !important; /* Menu dimulai 115px dari atas, TEPAT di bawah logo */
  width: 100% !important;
  z-index: 999 !important; 
  
  /* 2. Geser Konten Menu KE BAWAH sebesar tinggi header (115px) + padding asli (18px) = 133px. */
  padding: 133px 18px 18px 18px !important;
  
  /* 3. Tarik SELURUH ELEMEN (bersama background putihnya) KE ATAS sebesar tinggi header (115px) */
  margin-top: -115px !important; 
  
  /* 4. Background putih akan menutupi area 115px di bawah header */
  background: #FFFFFF !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
