@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #3b2820;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 24px 12px;
}

.linktree-container {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* LOADING SCREEN */
.page-loader {
  position: fixed;
  inset: 0;
  background-color: #3b2820;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.loader-emoji {
  font-size: 2.6rem;
  animation: loaderBounce 0.9s ease-in-out infinite;
}

@keyframes loaderBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-14px) scale(1.1); }
}

.loader-dots { display: flex; gap: 6px; }

.loader-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #e57238;
  border: 1.5px solid #000;
  display: inline-block;
  animation: loaderDot 1s ease-in-out infinite;
}

.loader-dots span:nth-child(2) { animation-delay: 0.15s; background-color: #3b719f; }
.loader-dots span:nth-child(3) { animation-delay: 0.3s; background-color: #c04968; }

@keyframes loaderDot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
  40% { transform: scale(1.25); opacity: 1; }
}

/* RIPPLE EFFECT TOMBOL */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transform: scale(0);
  animation: rippleAnim 0.55s ease-out forwards;
  pointer-events: none;
}

@keyframes rippleAnim {
  to { transform: scale(2.6); opacity: 0; }
}

.accordion-header,
.social-item,
.download-btn,
.music-btn,
.playlist-btn,
.polaroid-close-btn,
.student-card,
.playlist-item {
  position: relative;
  overflow: hidden;
}

/* PULSE SAAT MUSIK DIPUTAR */
.music-btn.is-playing {
  animation: musicPulse 1s ease-in-out infinite;
}

@keyframes musicPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* 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); }
}

/* HEADER PROFIL */
.profile-header {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 8px 4px;
  margin-bottom: 12px;
}

.avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.avatar-img {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  border: 3px solid #000000;
  object-fit: cover;
  box-shadow: 3px 3px 0px #000000;
  background-color: #ffffff;
  display: block;
}

.badge-status {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #2e7d52;
  color: #ffffff;
  font-size: 0.55rem;
  font-weight: 800;
  padding: 2px 7px;
  border: 1.5px solid #000;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 1.5px 1.5px 0px #000;
}

.profile-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
}

.profile-name {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.1;
}

.profile-tagline {
  font-size: 0.75rem;
  opacity: 0.9;
  margin-top: 3px;
  margin-bottom: 8px;
  font-weight: 600;
}

.speech-bubble {
  background-color: #ffffff;
  color: #000000;
  border: 2px solid #000000;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  box-shadow: 2px 2px 0px #000000;
  display: inline-block;
  align-self: flex-start;
}

/* WIDGET MUSIK */
.music-widget {
  width: 100%;
  background-color: #221510;
  border: 2.5px solid #000000;
  border-radius: 14px;
  box-shadow: 3px 3px 0px #000000;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.music-btn, .playlist-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #000;
  background-color: #e57238;
  color: #fff;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 0px #000;
  flex-shrink: 0;
}

.playlist-btn {
  background-color: #3b719f;
}

.music-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-grow: 1;
  cursor: pointer;
}

.music-label {
  font-size: 0.58rem;
  font-weight: 800;
  opacity: 0.7;
  letter-spacing: 0.5px;
}

.music-title-wrapper {
  overflow: hidden;
  white-space: nowrap;
}

.music-title {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Fredoka', sans-serif;
  color: #ffffff;
}

/* LINKS CONTAINER & ACCORDIONS */
.links-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.accordion-card {
  border: 3px solid #000000;
  border-radius: 16px;
  box-shadow: 4px 4px 0px #000000;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card-orange { background-color: #e57238; }
.card-pink   { background-color: #c04968; }
.card-blue   { background-color: #3b719f; }

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  color: inherit;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
  text-align: left;
}

.link-icon {
  font-size: 1.3rem;
  margin-right: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1.5px solid #000000;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.link-text {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.link-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.link-subtitle {
  font-size: 0.72rem;
  opacity: 0.9;
  margin-top: 2px;
}

.accordion-arrow {
  font-size: 0.9rem;
  font-weight: 800;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  width: 100%;
  padding: 0 16px;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
}

.accordion-card.active .accordion-content {
  max-height: 480px;
  padding: 0 16px 16px 16px;
}

.accordion-card.active .accordion-arrow {
  transform: rotate(180deg);
}

/* ==========================================
   BAGAN HIRARKI BAGIAN (HIERARCHY SYSTEM)
========================================== */
.hierarchy-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 400px;
  overflow-y: auto;
  padding: 6px 4px;
  border-top: 2px dashed rgba(0, 0, 0, 0.2);
  margin-top: 8px;
  padding-top: 12px;
}

.hierarchy-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hierarchy-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hierarchy-title::after {
  content: "";
  flex-grow: 1;
  height: 1.5px;
  background: rgba(0, 0, 0, 0.2);
}

/* GRID LAYOUTS */
.grid-top {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.grid-members {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* ==========================================
   BAGAN POHON (ORG CHART) — root -> pengurus -> anggota
========================================== */
.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.org-connector {
  width: 2px;
  height: 14px;
  background-color: #000000;
}

.org-item {
  display: flex;
  justify-content: center;
}

.org-root .student-card {
  min-width: 150px;
  padding: 12px 14px;
}

.org-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 8px;
  width: 100%;
}

.org-row.multi {
  position: relative;
  padding-top: 14px;
}

.org-row.multi::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14%;
  right: 14%;
  height: 2px;
  background-color: #000000;
}

.org-row.multi > .org-item {
  position: relative;
  padding-top: 14px;
}

.org-row.multi > .org-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 14px;
  background-color: #000000;
}

.org-members-block {
  width: 100%;
  border: 2px dashed rgba(0, 0, 0, 0.35);
  border-radius: 14px;
  padding: 10px 8px 12px;
}

.org-members-label {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  opacity: 0.9;
  margin-bottom: 10px;
}

/* ==========================================
   PANEL STATUS KELAS — GAYA "PING" REAL-TIME
========================================== */
.status-panel {
  width: 100%;
  background-color: #0b1210;
  border: 2px solid #000000;
  border-radius: 14px;
  box-shadow: 3px 3px 0px #000000;
  padding: 12px 12px 10px;
  font-family: 'Courier New', 'Consolas', monospace;
  overflow: hidden;
}

.ping-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px dashed rgba(0, 255, 136, 0.25);
}

.ping-live-label {
  color: #00ff88;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.ping-cursor {
  color: #00ff88;
  animation: ping-blink 1s steps(1) infinite;
}

.ping-clock {
  margin-left: auto;
  color: rgba(0, 255, 136, 0.55);
  font-size: 0.62rem;
  letter-spacing: 0.5px;
}

.ping-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.ping-dot::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  animation: ping-ripple 1.6s ease-out infinite;
  opacity: 0;
}

.ping-dot.dot-green { background-color: #00ff88; color: #00ff88; box-shadow: 0 0 6px #00ff88; }
.ping-dot.dot-red   { background-color: #ff4d6d; color: #ff4d6d; box-shadow: 0 0 6px #ff4d6d; animation: none; }
.ping-dot.dot-red::before { display: none; }

@keyframes ping-ripple {
  0%   { transform: scale(0.6); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

@keyframes ping-blink {
  0%, 49%  { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Ringkasan angka (Total / Online / Offline) */
.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.status-stat {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 255, 136, 0.25);
  border-radius: 10px;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.status-number {
  font-family: 'Courier New', 'Consolas', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  color: #e8fff4;
}

.status-label {
  font-size: 0.56rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(232, 255, 244, 0.55);
  text-align: center;
}

.status-stat.stat-active { border-color: #00ff88; }
.status-stat.stat-active .status-number { color: #00ff88; }

.status-stat.stat-inactive { border-color: #ff4d6d; }
.status-stat.stat-inactive .status-number { color: #ff4d6d; }

/* Daftar host ala "ping" per siswa */
.ping-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 2px;
}

.ping-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: auto !important;
  padding: 5px 8px !important;
  background-color: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  border-radius: 6px !important;
  cursor: pointer;
}

.ping-row:hover {
  background-color: rgba(0, 255, 136, 0.08) !important;
  color: inherit !important;
}

.ping-name {
  color: #d7fff0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.ping-fill {
  flex-grow: 1;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.15);
  height: 0;
  margin: 0 2px;
}

.ping-status-text {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.ping-status-text.online  { color: #00ff88; }
.ping-status-text.offline { color: #ff4d6d; }

.ping-ms {
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
  min-width: 44px;
  text-align: right;
}

/* KARTU MURID */
.student-card {
  background-color: rgba(255, 255, 255, 0.2);
  border: 2px solid #000000;
  border-radius: 12px;
  padding: 10px 4px;
  min-height: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 0px #000000;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.student-card:hover {
  background-color: #ffffff;
  color: #000000;
}

/* KARTU PENGURUS INTI (SPECIAL BORDER) */
.student-card.core-officer {
  background-color: rgba(255, 255, 255, 0.35);
  border: 2.5px solid #ffde59;
  box-shadow: 3px 3px 0px #000000;
  padding: 12px 8px;
}

.student-card.core-officer:hover {
  background-color: #ffffff;
}

.student-icon { font-size: 1.5rem; margin-bottom: 2px; }
.student-name {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.15;
  word-break: break-word;
  hyphens: auto;
  max-width: 100%;
}
.student-role-badge { 
  font-size: 0.52rem; 
  font-weight: 800; 
  background-color: #000000; 
  color: #ffffff; 
  padding: 2px 6px; 
  border-radius: 6px; 
  margin-top: 4px; 
  text-transform: uppercase;
  text-align: center;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.student-card.core-officer .student-role-badge {
  background-color: #ffde59;
  color: #000000;
}

/* LIST MEDIA SOSIAL */
.social-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  border-top: 2px dashed rgba(0, 0, 0, 0.3);
  padding-top: 12px;
}

.social-item {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.2);
  border: 1.5px solid #000000;
  border-radius: 12px;
  padding: 8px 12px;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 2px 2px 0px #000000;
}

.social-item:hover { background-color: #ffffff; color: #000000; }
.social-icon { font-size: 1.1rem; margin-right: 10px; }
.social-info { display: flex; flex-direction: column; flex-grow: 1; }
.social-name { font-family: 'Fredoka', sans-serif; font-size: 0.85rem; font-weight: 700; }
.social-handle { font-size: 0.68rem; opacity: 0.9; }
.social-action { font-size: 0.7rem; font-weight: 800; margin-left: 6px; }

.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 MODAL BASE */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(30, 20, 15, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* POPUP PLAYLIST MUSIK */
.playlist-card {
  background-color: #ebdcd0;
  color: #000;
  border: 3.5px solid #2b201a;
  border-radius: 18px;
  box-shadow: 8px 8px 0px #1a120e;
  padding: 18px;
  width: 320px;
  position: relative;
  display: flex;
  flex-direction: column;
  transform: scale(0.8);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.playlist-header { display: flex; align-items: center; gap: 8px; }
.playlist-icon { font-size: 1.3rem; }
.playlist-title { font-family: 'Fredoka', sans-serif; font-size: 1.2rem; }
.playlist-subtitle { font-size: 0.72rem; color: #6a5345; margin-top: 2px; margin-bottom: 12px; font-weight: 600; }

.playlist-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 230px;
  overflow-y: auto;
  padding-right: 4px;
}

.playlist-item {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border: 2px solid #3b2820;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  box-shadow: 2px 2px 0px #3b2820;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.playlist-item:hover { transform: translate(-1px, -1px); background-color: #f7ede2; }
.playlist-item.active { background-color: #e57238; color: #fff; }

.song-icon { font-size: 1rem; margin-right: 8px; }
.song-info { display: flex; flex-direction: column; flex-grow: 1; }
.song-title { font-family: 'Fredoka', sans-serif; font-size: 0.85rem; font-weight: 700; }
.song-artist { font-size: 0.68rem; opacity: 0.8; }
.play-indicator { font-size: 0.75rem; font-weight: 800; }

/* POPUP PROFIL MURID */
.profile-card {
  background-color: #ebdcd0;
  border: 3.5px solid #2b201a;
  border-radius: 20px;
  box-shadow: 8px 8px 0px #1a120e;
  padding: 22px 20px;
  width: 300px;
  max-width: 88vw;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.8);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.pcard-photo-wrap {
  position: relative;
  width: 128px;
  height: 128px;
  margin-bottom: 14px;
}

.pcard-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #3b2820;
  box-shadow: 4px 4px 0px #000000;
  background-color: #cbb8a9;
}

.pcard-emoji {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background-color: #ffde59;
  border: 2.5px solid #3b2820;
  border-radius: 50%;
  box-shadow: 2px 2px 0px #000000;
}

.pcard-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pcard-role-badge {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
  background-color: #3b2820;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.pcard-name {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #3b2820;
  line-height: 1.15;
}

.pcard-nickname {
  font-size: 0.78rem;
  font-weight: 700;
  color: #7a6658;
  margin-top: 3px;
}

.pcard-handle {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #ffffff;
  border: 2px solid #3b2820;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #3b2820;
  box-shadow: 2px 2px 0px #000000;
}

.pcard-handle-icon { font-size: 0.75rem; }

.polaroid-close-btn {
  position: absolute;
  top: -12px;
  right: -12px;
  background-color: #3b2820;
  color: #ffffff;
  border: 2px solid #000000;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 2px 2px 0px #000000;
  z-index: 10;
}

/* FOOTER */
footer { margin-top: 26px; font-size: 0.72rem; opacity: 0.8; font-weight: 700; }

/* ==========================================
   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; }
