body.bg {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.glass {
  background: rgba(255, 255, 255, 0.103);
  backdrop-filter: blur(15px);
  border-radius: 16px;
  padding: 30px;
  width: 320px;
  color: rgb(253, 252, 252);
  box-shadow: 0 8px 32px rgba(57, 177, 1, 0.267);
}

/* ===============================
   LOGO LOGIN
================================ */
.logo-login {
  width: 110px;          /* ukuran logo */
  height: auto;
  margin-bottom: 12px;
  display: block;
}



input, button {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  border: none;
}

button {
  background: #f8f8f848;
  font-weight: bold;
  color: rgb(2, 2, 2);
  cursor: pointer;
}


body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: white;

  /* BACKGROUND JPG */
  background: 
    linear-gradient(rgba(2,6,23,.75), rgba(2,6,23,.75)),
    url("../assets/bg.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* ===============================
   LOGIN PAGE FIX
================================ */
.login-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-box h2 {
  margin-bottom: 20px;
  text-align: center;
}

.login-box input {
  width: 100%;
  box-sizing: border-box;
}

.login-box button {
  width: 100%;
  margin-top: 16px;
}


.judul {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.header h2 {
  text-align: center;
  font-size: 24px;
}


.add {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}


.container {
  max-width: 90%;
  margin: 40px auto;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(14px);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 2 10px 30px rgba(101, 250, 2, 0.452);
}

h2 {
  text-align: center;
  margin-bottom: 20px;
}

.form input {
  width: 100%;
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 8px;
  border: none;
}

.form button {
  width: 100%;
  padding: 12px;
  background: #07b82e;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
}

.preview {
  width: 140px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin: 10px auto;
  display: block;
}




.grid-pemain {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}

.card-pemain {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 12px;
  text-align: center;
  
}

.card-pemain img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}

.card-pemain h4 {
  margin: 6px 0 2px;
}

.card-pemain p,
.card-pemain small {
  font-size: 13px;
  opacity: 0.85;
}


.header {
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.btn-add {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 26px;
  background: #3deb8000;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(12, 211, 55, 0.377);
}


/* FLOATING ADD BUTTON */
.btn-add.floating {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 26px;
  background: #3deb4c;
  color: #000;
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
  cursor: pointer;
  z-index: 999;
}


/* GRID PEMAIN */
.grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
  gap:16px;
}

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  justify-content: center;
  align-items: center;
  display: none !important;  
  justify-content: center;
  align-items: center;

  z-index: 9999;              
}

.modal.show {
  display: flex !important;
}


.modal.show {
  display:flex;
}

.modal-box {
  background:rgba(255, 254, 254, 0.116);
  backdrop-filter:blur(12px);
  padding:20px;
  border-radius:16px;
  width:320px;
  
  display: flex;
  flex-direction: column;
  align-items: center;

}

.modal-box input {
  width:95%;
  margin:6px 0;
  padding:8px;
}

.modal-btn {
  display:flex;
  gap:8px;
  margin-top:10px;
}


.upload-box {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.upload-box input[type="file"] {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-btn {
  display: inline-block;
  padding: 8px 12px;
  background: #08baf0;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}


.upload-btn:hover {
  background: #1565c0;
}

.upload-section,
.download-section {
  margin-top: 15px;
}

.download-section {
  display: none;
}



button, .upload-btn {
  cursor: pointer;        /* pointer saat hover */
  transition: transform 0.1s, background 0.2s; 
}

button:hover, .upload-btn:hover {
  transform: scale(1.05); /* tombol sedikit membesar saat hover */
  background-color: #4CAF50; /* opsional, ganti sesuai tema */
}

button:active {
  transform: scale(0.95);  /* efek ditekan */
}


.preview {
  width: 140px;       /* ukuran foto */
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin: 10px auto;
  display: block;     /* JS akan override display:none */
}

/* ===============================
   BUTTON LOADING STATE
================================ */
button.loading::after {
  content: " ";
  animation: dots 1.5s infinite;
}

@keyframes dots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
}



.card-pemain {
  position: relative;
  overflow: hidden;
}

.card-pemain img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* 🔥 RESET BUTTON DELETE */
.btn-delete {
  all: unset;                /* ⬅️ RESET SEMUA STYLE GLOBAL */
  position: absolute;
  top: 8px;
  right: 8px;

  width: 32px;
  height: 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0,0,0,0.7);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  z-index: 99;
  font-size: 16px;
}

.btn-delete:hover {
  background: red;
}

.btn-wa {
  display: block;
  text-align: center;
  background: #25D366;
  color: #fff;
  padding: 10px;
  border-radius: 10px;
  margin-top: 12px;
  text-decoration: none;
  font-weight: bold;
}

.btn-wa:hover {
  opacity: 0.9;
}

/* ===============================
   INDEX FULL WIDTH
================================ */
.page-index .container {
  max-width: 1600px;   /* bisa 1600px kalau mau */
  width: 95%;
}

/* ===============================
   INDEX PAGE ONLY
================================ */
.page-index {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* GLASS CARD */
.page-index .glass {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 24px;
  color: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}

/* HERO */
.page-index .hero {
  text-align: center;
  margin-bottom: 30px;
}

.page-index .logo-hero {
  width: 100px;
  margin-bottom: 12px;
}

.page-index h1 {
  margin-bottom: 6px;
}

.page-index p {
  opacity: .85;
}

/* MAIN GRID */
.page-index .main-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

/* SECTION */
.page-index .section {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 20px;
}

.page-index .section h2 {
  margin-bottom: 12px;
  text-align: center;
}

/* INFO GRID */
.page-index .info-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
}

.page-index .info-card {
  background: rgba(0,0,0,.3);
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  font-size: 14px;
}

/* GALERI */
.page-index .card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(140px,1fr));
  gap: 12px;
}

.page-index .player-card {
  background: rgba(255,255,255,.1);
  border-radius: 12px;
  overflow: hidden;
  transition: .25s;
}

.page-index .player-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.page-index .player-card span {
  display: block;
  padding: 6px;
  font-size: 13px;
  text-align: center;
}

.page-index .player-card:hover {
  transform: scale(1.05);
}


/* FOOTER */
.page-index .footer {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  opacity: .8;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .page-index .main-grid {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   GALERI KOLASE
================================ */
.page-index .kolase-grid {
  column-count: 4;
  column-gap: 12px;
}

.page-index .kolase-item {
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: 0.3s;
}

.page-index .kolase-item img {
  width: 100%;
  display: block;
  border-radius: 14px;
}

.page-index .kolase-item:hover {
  transform: scale(1.03);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .page-index .kolase-grid {
    column-count: 3;
  }
}

@media (max-width: 600px) {
  .page-index .kolase-grid {
    column-count: 2;
  }
}

/* ===============================
   SPASI ANTAR SECTION (INDEX)
================================ */
.page-index .section {
  margin-bottom: 20px;
}
 
/* ===============================
   ADMIN FLOATING CARD
================================ */
.admin-floating {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;

  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 10px;

  display: flex;
  flex-direction: column;
  gap: 5px;

  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

.admin-btn {
  display: block;
  text-align: center;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: bold;
  text-decoration: none;
  border: none;
  cursor: pointer;

  background: rgba(255,255,255,0.2);
  color: #fff;
  transition: 0.2s;
}

.admin-btn:hover {
  transform: scale(1.05);
  background: #06d3e2;
  color: #000;
}

/* tombol bahaya */
.admin-btn.danger {
  background: rgba(255,0,0,0.6);
}

.admin-btn.danger:hover {
  background: red;
  color: #fff;
}

/* ===============================
   MODAL UPLOAD GALERI
================================ */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.modal.show {
  display: flex;
}

.modal-box {
  width: 320px;
  padding: 20px;
  border-radius: 16px;
  text-align: center;
}

.modal-box h3 {
  margin-bottom: 12px;
}

.modal-box input {
  width: 100%;
  margin-bottom: 10px;
}

.btn-danger {
  background: rgba(255,0,0,0.6);
  color: white;
  margin-top: 8px;
}

.btn-danger:hover {
  background: red;
}


/* ===============================
   KOLESE MASONRY KEKINIAN
================================ */
.kolase-grid {
  width: 100%;
  padding: 8px 0;

  column-count: 4;
  column-gap: 12px;
}

/* responsive */
@media (max-width: 1200px) {
  .kolase-grid {
    column-count: 3;
  }
}

@media (max-width: 768px) {
  .kolase-grid {
    column-count: 2;
  }
}

@media (max-width: 480px) {
  .kolase-grid {
    column-count: 1;
  }
}

.kolase-grid img {
  width: 100%;
  height: auto;
  margin-bottom: 12px;

  display: block;
  break-inside: avoid;

  border-radius: 14px;
  object-fit: cover;

  transition: transform .25s ease, box-shadow .25s ease;
}

.kolase-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}

/* ===============================
   LIGHTBOX FULLSCREEN
================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox.hidden {
  display: none;
}

.lightbox img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,.6);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

.lightbox-download {
  position: absolute;
  bottom: 25px;
  right: 25px;
  background: #ffffff;
  color: #000;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: bold;
  text-decoration: none;
}

.section h2 {
  font-size: 1.8rem;
  margin-bottom: 14px;
  text-align: center;
  letter-spacing: 1px;
}

.section p {
  line-height: 1.8;
  font-size: 1rem;
  color: #eaeaea;
  margin-bottom: 14px;
  text-align: justify;
}

.section p:last-of-type {
  text-align: center;
  font-weight: 600;
  color: #ffd369;
  margin-top: 20px;
}


.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.info-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;

  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.1);
}

.info-card:hover {
  transform: translateY(-4px) scale(1.05);
  background: rgba(255, 211, 105, 0.15);
  box-shadow: 0 15px 40px rgba(153, 255, 105, 0.384);
  color: #a0ff69;
}


/* ===== JADWAL MODAL (ANTI BENTROK) ===== */
.jadwal-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.jadwal-modal.hidden {
  display: none;
}

.jadwal-modal-box {
  background: #111;
  color: #fff;
  padding: 24px;
  border-radius: 18px;
  width: 90%;
  max-width: 400px;
  animation: zoomIn .3s ease;
  position: relative;
}

.jadwal-modal-box h3 {
  text-align: center;
  margin-bottom: 16px;
  color: #ffd369;
}

.jadwal-list {
  list-style: none;
  padding: 0;
}

.jadwal-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.jadwal-modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 26px;
  cursor: pointer;
  color: #fff;
}

