/* Portal Siswa v200 — formulir pilihan eskul sederhana. */
.eskul-simple-student {
  --ess-green: #07966e;
  --ess-dark: #08745d;
  display: grid;
  width: min(980px, 100%);
  margin: 0 auto;
  gap: 15px;
  color: #1d2939;
}

.eskul-simple-student * { box-sizing: border-box; }

.eskul-student-simple-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px;
  border-radius: 24px;
  background: linear-gradient(135deg, #08705a, #10b981);
  color: #fff;
  box-shadow: 0 16px 40px rgba(8, 118, 93, .17);
}

.eskul-student-simple-head span { font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.eskul-student-simple-head h1 { margin: 5px 0 2px; font-size: 26px; font-weight: 900; }
.eskul-student-simple-head p { margin: 0; font-size: 11px; opacity: .84; }
.eskul-student-class { display: grid; min-width: 120px; gap: 2px; padding: 13px 17px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 16px; background: rgba(255, 255, 255, .12); }
.eskul-student-class small { font-size: 9px; opacity: .8; }
.eskul-student-class b { font-size: 16px; }

.eskul-student-simple-info,
.eskul-student-simple-success,
.eskul-student-conflict,
.eskul-student-simple-error {
  padding: 12px 14px;
  border-radius: 13px;
  font-size: 11px;
  line-height: 1.5;
}

.eskul-student-simple-info { background: #eef8f4; color: #48635a; }
.eskul-student-simple-success { background: #dcfce7; color: #08745d; font-weight: 800; }
.eskul-student-conflict { display: grid; gap: 3px; margin-bottom: 12px; border: 1px solid #ffb4b0; background: #fff0ef; color: #a92920; }
.eskul-student-simple-error { margin-top: 12px; background: #fff0ef; color: #a92920; font-weight: 800; }

.eskul-choice-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }

.eskul-choice-card {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 92px;
  padding: 15px;
  border: 1px solid #dfe9e5;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(26, 72, 58, .05);
  cursor: pointer;
}

.eskul-choice-card > input { position: absolute; opacity: 0; pointer-events: none; }
.eskul-choice-check { display: grid; width: 30px; height: 30px; place-items: center; border: 2px solid #cddbd6; border-radius: 10px; color: #fff; font-size: 16px; font-weight: 900; }
.eskul-choice-card:has(input:checked) { border-color: #6ed3b1; background: #f1fbf7; }
.eskul-choice-card:has(input:checked) .eskul-choice-check { border-color: var(--ess-green); background: var(--ess-green); }
.eskul-choice-main { display: grid; min-width: 0; gap: 4px; }
.eskul-choice-main b { font-size: 15px; }
.eskul-choice-main small { color: #51635c; font-size: 10px; font-weight: 750; }
.eskul-choice-main em { color: #849089; font-size: 9px; font-style: normal; }
.eskul-choice-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.eskul-choice-meta i { display: inline-flex; padding: 4px 7px; border-radius: 999px; background: #edf7f3; color: #42675a; font-size: 8px; font-style: normal; font-weight: 850; }
.eskul-choice-meta i.full { background: #fee8e7; color: #a92920; }
.eskul-choice-trial { margin-top: 2px; color: #765b17; font-size: 8px; line-height: 1.45; }
.eskul-choice-side { display: grid; justify-items: end; align-self: stretch; align-content: space-between; gap: 7px; }
.eskul-choice-status { align-self: start; padding: 5px 7px; border-radius: 999px; background: #fff4cc; color: #875c00; font-size: 8px; font-weight: 900; white-space: nowrap; }
.eskul-choice-status.approved { background: #dcfce7; color: #08745d; }
.eskul-choice-status.rejected,
.eskul-choice-status.cancelled { background: #fee8e7; color: #a92920; }
.eskul-choice-status.waitlisted { background: #e8efff; color: #3657a7; }
.eskul-choice-availability { display: inline-flex; padding: 5px 7px; border-radius: 999px; font-size: 8px; font-weight: 900; white-space: nowrap; }
.eskul-choice-availability.open { background: #dcfce7; color: #08745d; }
.eskul-choice-availability.closed { background: #f1f3f5; color: #69747e; }
.eskul-choice-card.conflict { border: 2px solid #e5484d; background: #fff5f4; box-shadow: 0 0 0 3px rgba(229, 72, 77, .08); }
.eskul-choice-card.unavailable { opacity: .58; cursor: not-allowed; }

.eskul-student-simple-actions {
  position: sticky;
  bottom: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding: 13px 15px;
  border: 1px solid #dfe9e5;
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 36px rgba(15, 67, 54, .12);
}

.eskul-student-simple-actions span { color: #66766f; font-size: 11px; }
.eskul-student-simple-actions button { min-height: 43px; border: 0; border-radius: 12px; padding: 10px 18px; background: linear-gradient(135deg, #0fae81, #08765d); color: #fff; font-size: 11px; font-weight: 900; }
.eskul-student-simple-actions button:disabled { opacity: .65; cursor: wait; }

.eskul-student-simple-empty { display: grid; grid-column: 1 / -1; min-height: 190px; place-items: center; align-content: center; gap: 5px; padding: 28px; border: 1px dashed #cbd9d4; border-radius: 20px; background: #fff; text-align: center; }
.eskul-student-simple-empty h2 { margin: 0; font-size: 17px; }
.eskul-student-simple-empty p { margin: 0; color: #718078; font-size: 11px; }
.eskul-student-simple-empty button { margin-top: 8px; border: 0; border-radius: 11px; padding: 10px 14px; background: var(--ess-dark); color: #fff; font-weight: 800; }
.eskul-student-simple-loading { display: grid; min-height: 230px; place-items: center; align-content: center; gap: 9px; color: #66766f; font-size: 11px; }
.eskul-student-simple-loading span { width: 30px; height: 30px; border: 3px solid #d8eee6; border-top-color: #10b981; border-radius: 50%; animation: eskul-simple-spin .8s linear infinite; }
@keyframes eskul-simple-spin { to { transform: rotate(360deg); } }

.eskul-student-simple-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid #dfe9e5;
  border-radius: 15px;
  background: #fff;
}

.eskul-student-simple-filter > div { display: grid; gap: 2px; }
.eskul-student-simple-filter small { color: #7b8983; font-size: 9px; }
.eskul-student-simple-filter b { color: var(--ess-dark); font-size: 13px; }
.eskul-student-simple-filter label { display: flex; align-items: center; gap: 8px; color: #61716b; font-size: 10px; font-weight: 800; }
.eskul-student-simple-filter select { min-height: 38px; padding: 0 30px 0 10px; border: 1px solid #d7e4df; border-radius: 10px; background: #f8fbfa; color: #293b34; font-weight: 850; }

@media (max-width: 700px) {
  .eskul-simple-student { gap: 11px; }
  .eskul-student-simple-head { padding: 19px; border-radius: 20px; }
  .eskul-student-simple-head h1 { font-size: 22px; }
  .eskul-student-class { min-width: 100px; padding: 10px 12px; }
  .eskul-student-simple-filter { align-items: stretch; flex-direction: column; }
  .eskul-student-simple-filter label { justify-content: space-between; }
  .eskul-student-simple-filter select { flex: 1; }
  .eskul-choice-list { grid-template-columns: 1fr; }
  .eskul-choice-card { min-height: 84px; padding: 13px; }
  .eskul-choice-side { max-width: 112px; }
  .eskul-student-simple-actions { bottom: calc(76px + env(safe-area-inset-bottom)); align-items: stretch; flex-direction: column; }
  .eskul-student-simple-actions button { width: 100%; }
}
