/* Tombol Status Kelas */
/* ==========================================
   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);
}

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