/* Popup Profil Siswa */
.student-card {
  position: relative;
  overflow: hidden;
}

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

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

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