body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: url('/assets/images/bg.png') no-repeat center center fixed;
  backdrop-filter: blur(0px);
  background-size: cover;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 40px;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column; /* <- agar slider di atas grid */
  align-items: center;
  justify-content: flex-start; /* supaya mulai dari atas */
  padding-top: 20px;
  padding-bottom: 50px;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  width: 95%;
  max-width: 600px;
}

.grid-item {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  text-align: center;
  font-size: 12px;
  cursor: pointer;
  transition: 0.2s;
  position: relative;
  overflow: hidden;
}
.grid-item:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.05);
}
.grid-item img {
  width: 30px;
  height: 30px;
  margin-bottom: 4px;
}

/* Ripple */
.grid-item::after {
  content: "";
  position: absolute;
  background: rgba(0,0,0,0.2);
  border-radius: 50%;
  width: 0;
  height: 0;
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}
.grid-item:active::after {
  width: 200px;
  height: 200px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  transition: transform 0.4s ease, opacity 0.8s ease;
}

/* Popup */
.popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  z-index: 9999;
}
.popup.show {
  opacity: 1;
  pointer-events: auto;
}
.popup-content {
  background: #262525;
  border-radius: 12px;
  padding: 15px;
  width: 80%;
  max-width: 400px;
  text-align: center;
  color: white;
  max-height: 80vh;
  overflow-y: auto;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}
.popup.show .popup-content {
  transform: scale(1);
}
.popup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px,1fr));
  gap: 8px;
  margin-top: 12px;
  max-height: 300px;
  overflow-y: auto;
}
.popup-item {
  background: #f0f0f0;
  border-radius: 6px;
  padding: 8px;
  font-size: 11px;
  text-decoration: none;
  color: black;
  display: block;
  transition: 0.2s;
}
.popup-item:hover {
  background: #ddd;
  transform: scale(1.05);
}
.close-btn {
  margin-top: 12px;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  background: #4d4949;
  color: white;
  cursor: pointer;
}

/* Scrollbar */
.popup-grid::-webkit-scrollbar { width: 6px; }
.popup-grid::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 3px; }

/* Responsif */
@media (max-width: 480px) {
  .grid-container { grid-template-columns: repeat(auto-fill, minmax(60px,1fr)); gap: 12px; }
  .grid-item { font-size: 8px; padding: 12px; }
  .grid-item img { width: 40px; height: 40px; }
  .popup-content { width: 90%; padding: 20px; }
  .popup-item { font-size: 13px; padding: 10px; }
}

/* Footer */
.footer {
  width: 100%;
  text-align: center;
  padding: 10px;
  background: rgba(0,0,0,0.7);
  color: white;
  font-size: 12px;
  position: fixed;
  bottom: 0;
  left: 0;
}

/* Slider */
.slider-container {
  width: 95%;
  max-width: 800px;
  height: 300px; /* tinggi tetap */
  overflow: hidden;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  position: relative;
}

.slider-wrapper {
  display: flex;
  width: 500%;
  height: 100%;
  animation: slide 20s infinite;
}

.slide {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
}

.slide img {
  width: 20%;
  height: 100%;
  object-fit: cover;   /* isi penuh frame, crop jika perlu */
  object-position: center; /* fokus di tengah gambar */
  display: block;
  border-radius: 12px;
}

/* Slider di HP */
@media (max-width: 480px) {
  .slider-container {
    height: 150px; /* lebih kecil di HP */
  }
}

@keyframes slide {
  0%   { transform: translateX(0%); }
  20%  { transform: translateX(0%); }
  25%  { transform: translateX(-100%); }
  45%  { transform: translateX(-100%); }
  50%  { transform: translateX(-200%); }
  70%  { transform: translateX(-200%); }
  75%  { transform: translateX(-300%); }
  95%  { transform: translateX(-300%); }
  100% { transform: translateX(-400%); }
}

/* RESET */
.lp-body, .lp-container, .lp-form, .lp-input, .lp-button {
  font-family: 'Roboto', Arial, sans-serif;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}

/* BACKGROUND (Dark theme) */
.lp-body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: url('/assets/images/slide2.png') no-repeat center center fixed;
  -webkit-background-size: cover;
     -moz-background-size: cover;
       -o-background-size: cover;
          background-size: cover;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

/* LOGIN BOX (Dark Glassmorphism) */
.lp-container {
  background: rgba(20,20,20,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 40px 35px;
  border-radius: 15px;
  width: 100%;
  max-width: 380px;
  color: #fff;
  -webkit-box-shadow: 0 8px 32px rgba(0,0,0,0.5);
          box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  -webkit-animation: lp-fadeIn 0.8s ease-in-out;
          animation: lp-fadeIn 0.8s ease-in-out;
  text-align: center;
}

/* LOGO */
.lp-logo {
  width: 80px;
  height: auto;
  margin-bottom: 15px;
}

/* TITLE */
.lp-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.lp-subtitle {
  font-size: 15px;
  color: #bbb;
  margin-bottom: 25px;
}

/* INPUT */
.lp-input {
  width: 100%;
  padding: 14px;
  margin: 12px 0;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  font-size: 16px;
  background: rgba(40,40,40,0.85);
  color: #fff;
  -webkit-transition: 0.3s;
          transition: 0.3s;
}
.lp-input:focus {
  border-color: #4da3ff;
  background: rgba(60,60,60,0.9);
  outline: none;
}

/* BUTTON */
.lp-button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #007bff, #004080);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  -webkit-transition: 0.3s;
          transition: 0.3s;
}
.lp-button:hover {
  background: linear-gradient(135deg, #0056b3, #003060);
}

/* LINK */
.lp-link {
  text-align: center;
  margin-top: 20px;
}
.lp-link a {
  color: #4da3ff;
  text-decoration: none;
  font-size: 14px;
  -webkit-transition: 0.3s;
          transition: 0.3s;
}
.lp-link a:hover {
  text-decoration: underline;
}

/* ANIMASI */
@-webkit-keyframes lp-fadeIn {
  from { opacity: 0; -webkit-transform: translateY(-20px); }
  to { opacity: 1; -webkit-transform: translateY(0); }
}
@keyframes lp-fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Password wrapper */
.lp-password-wrapper {
  position: relative;
}

.lp-password {
  padding-right: 45px; /* space for the button */
}

.lp-toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #ccc;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  -webkit-transition: 0.3s;
          transition: 0.3s;
}

.lp-toggle-password:hover {
  color: #fff;
}
