/* Popup Absensi Kelas */
.download-btn {
  position: relative;
  overflow: hidden;
}

/* KEDIP LEMBUT DI TOMBOL SALIN ABSENSI */
.download-btn {
  animation: pulseGlow 2.4s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 2px 2px 0px #000; }
  50% { box-shadow: 2px 2px 0px #000, 0 0 14px 2px rgba(229, 114, 56, 0.55); }
}

.download-btn {
  background-color: #ffffff;
  color: #000000;
  border: 2px solid #000000;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  text-decoration: none;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 2px 2px 0px #000;
}

/* POPUP ABSENSI */
.sheet-card {
  background-color: #c04968;
  color: #fff;
  border: 3.5px solid #000;
  border-radius: 18px;
  box-shadow: 8px 8px 0 #000;
  width: 420px; max-width: 94vw;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .sheet-card { transform: scale(1); }

.sheet-scroll { max-height: 86vh; overflow-y: auto; padding: 18px 16px; }

.sheet-title { font-family: 'Fredoka', sans-serif; font-size: 1.1rem; margin-bottom: 12px; display: flex; gap: 8px; align-items: center; }

.sheet-card .absen-box { border-top: 0; padding-top: 0; }

/* ==========================================
   ABSENSI KELAS
========================================== */
.accordion-card.card-absen.active .accordion-content { max-height: 3200px; }

.absen-box {
  border-top: 2px dashed rgba(0, 0, 0, 0.3);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.absen-fields { display: flex; flex-direction: column; gap: 8px; }

.absen-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
}

.absen-box select,
.absen-box input[type="date"],
.absen-box input[type="text"],
.absen-box input[type="search"] {
  width: 100%;
  background-color: #ffffff;
  color: #000000;
  border: 2px solid #000000;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
}

.absen-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.absen-stat {
  background-color: rgba(0, 0, 0, 0.25);
  border: 2px solid #000000;
  border-radius: 10px;
  padding: 8px 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.absen-stat b { font-family: 'Fredoka', sans-serif; font-size: 1.3rem; line-height: 1.1; }

.absen-stat span { font-size: 0.65rem; opacity: 0.9; }

.absen-stat-ok b { color: #b8ffd8; }

.absen-stat-no b { color: #ffd0d8; }

.absen-toolbar { display: flex; flex-wrap: wrap; gap: 6px; }

.absen-btn {
  background-color: #ffffff;
  color: #000000;
  border: 2px solid #000000;
  border-radius: 8px;
  padding: 6px 10px;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 2px 2px 0px #000;
  cursor: pointer;
}

.absen-btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0px #000; }

.absen-list {
  max-height: 300px;
  overflow-y: auto;
  background-color: rgba(255, 255, 255, 0.14);
  border: 2px solid #000000;
  border-radius: 10px;
  padding: 2px 8px;
}

.absen-row {
  display: grid;
  grid-template-columns: 22px 1fr 96px;
  gap: 8px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.3);
}

.absen-row:last-child { border-bottom: 0; }

.absen-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: #138a55; }

.absen-row label { font-size: 0.78rem; line-height: 1.25; cursor: pointer; }

.absen-row.present label { font-weight: 800; }

.absen-row select { padding: 4px 6px; font-size: 0.7rem; border-radius: 8px; }

.absen-row select:disabled { opacity: 0.45; }

.absen-note { font-size: 0.68rem; line-height: 1.3; opacity: 0.9; }

.absen-results { display: grid; grid-template-columns: 1fr; gap: 8px; }

.absen-resultbox {
  background-color: rgba(0, 0, 0, 0.22);
  border: 2px solid #000000;
  border-radius: 10px;
  padding: 10px 10px 10px 12px;
}

.absen-resultbox h3 { font-family: 'Fredoka', sans-serif; font-size: 0.85rem; margin-bottom: 6px; }

.absen-resultbox ol { padding-left: 20px; font-size: 0.75rem; line-height: 1.5; }

.absen-copy { cursor: pointer; }

.absen-status { font-size: 0.72rem; min-height: 1em; text-align: center; }

.modal-overlay.drawer .sheet-card {
  width: 460px;
  max-width: 94vw;
}

.modal-overlay.drawer .sheet-scroll { max-height: 88dvh; padding: 22px 18px; }
