@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap");
body {
  font-family: "Inter", sans-serif;
  scroll-behavior: smooth;
}
.font-serif-elegant {
  font-family: "Playfair Display", serif;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}
.dark ::-webkit-scrollbar-thumb {
  background: #475569;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.animate-fadeIn {
  animation: fadeIn 0.4s ease-out forwards;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drawCircle {
  to {
    stroke-dashoffset: 0;
  }
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}
.nav-group {
  display: none;
}
.nav-group.active {
  display: block;
}

.hero-pattern {
  background-color: #065f46;
  background-image:
    radial-gradient(
      circle at 100% 100%,
      #047857 0,
      #047857 3px,
      transparent 3px
    ),
    radial-gradient(circle at 0 0, #047857 0, #047857 3px, transparent 3px);
  background-size: 32px 32px;
}

.radio-custom:checked + label {
  background-color: #ecfdf5;
  border-color: #065f46;
}
.dark .radio-custom:checked + label {
  background-color: rgba(6, 95, 70, 0.3);
  border-color: #10b981;
}

.rapor-print {
  font-family: "Times New Roman", Times, serif;
  color: black;
  background: white;
}
.rapor-table th,
.rapor-table td {
  border: 1px solid #000;
  padding: 6px 8px;
}

.syahadah-bg {
  background-image: url("https://www.transparenttextures.com/patterns/cream-paper.png");
  background-color: #fffdf5;
  border: 20px solid transparent;
  border-image: url("https://img.freepik.com/free-vector/islamic-border-frame-with-golden-ornament_1017-31846.jpg")
    30 stretch;
}

.badge-segera {
  font-size: 0.55rem;
  padding: 0.15rem 0.3rem;
  border-radius: 0.25rem;
  background-color: #fef3c7; /* amber-100 */
  color: #b45309; /* amber-700 */
  font-weight: 800;
  margin-left: auto;
  white-space: nowrap;
}
.dark .badge-segera {
  background-color: rgba(217, 119, 6, 0.2);
  color: #fbbf24;
}
/* =========================================================
   INPUT KONTAK PROFIL
   ========================================================= */

.wa-local-input {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 40px;
  overflow: hidden;
  border: 2px solid #cbd5e1;
  border-radius: 0.5rem;
  background: #ffffff;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.wa-local-input:focus-within {
  border-color: #065f46;
  box-shadow:
    0 0 0 3px
    rgba(6, 95, 70, 0.12);
}

.wa-local-prefix {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 3.2rem;
  padding: 0 0.8rem;
  border-right: 1px solid #cbd5e1;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 900;
}

.wa-local-input input {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0f172a;
  font-size: 0.875rem;
}

.wa-local-input input::placeholder {
  color: #94a3b8;
}

.profile-field-note {
  margin-top: 0.35rem;
  color: #64748b;
  font-size: 0.69rem;
  line-height: 1.45;
}

.profile-field-note.is-processing {
  color: #b45309;
  font-weight: 700;
}

.dark .wa-local-input {
  border-color: #475569;
  background: #334155;
}

.dark .wa-local-input:focus-within {
  border-color: #34d399;
  box-shadow:
    0 0 0 3px
    rgba(52, 211, 153, 0.12);
}

.dark .wa-local-prefix {
  border-color: #475569;
  background: #1e293b;
  color: #e2e8f0;
}

.dark .wa-local-input input {
  color: #ffffff;
}

.dark .profile-field-note {
  color: #94a3b8;
}

.dark
.profile-field-note.is-processing {
  color: #fbbf24;
}

/* Identicon geometris MAJU */
.identicon-shell {
  border-radius: 28%;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08), 0 4px 12px rgba(15, 23, 42, .08);
  background: #ecfdf5;
}
.identicon-svg { display: block; width: 100%; height: 100%; }
.dark .identicon-shell { box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 4px 12px rgba(0,0,0,.25); }

/* v6.0.14 — spoiler ketentuan materi tanpa marker bawaan */
.maju-rights-details>summary{list-style:none}.maju-rights-details>summary::-webkit-details-marker{display:none}.maju-rights-details>summary::after{content:"＋";font-size:14px;margin-left:auto}.maju-rights-details[open]>summary::after{content:"−"}.maju-rights-details>summary span{margin-left:auto}

/* MAJU v6.0.15 — kartu pilihan Peserta Didik untuk kredensial keluarga/kembar */
body.maju-modal-open{overflow:hidden}
.maju-student-choice-overlay{
  position:fixed;inset:0;z-index:180;display:flex;align-items:center;justify-content:center;
  padding:18px;background:rgba(15,23,42,.66);backdrop-filter:blur(8px)
}
.maju-student-choice-dialog{
  width:min(620px,100%);max-height:min(86vh,760px);overflow:auto;background:#fffdf8;
  border:1px solid rgba(6,95,70,.12);border-radius:28px;padding:22px;
  box-shadow:0 28px 80px rgba(15,23,42,.32)
}
.maju-student-choice-head{display:flex;gap:14px;align-items:flex-start;margin-bottom:18px}
.maju-student-choice-icon{
  width:46px;height:46px;display:grid;place-items:center;flex:0 0 auto;border-radius:16px;
  background:#ecfdf5;color:#065f46;border:1px solid #d1fae5
}
.maju-student-choice-icon svg{width:23px;height:23px}
.maju-student-choice-kicker{font-size:11px;font-weight:900;letter-spacing:.12em;color:#a16207;text-transform:uppercase;margin-bottom:4px}
.maju-student-choice-head h3{margin:0;color:#16352e;font-size:22px;line-height:1.2;font-weight:900}
.maju-student-choice-head p{margin:7px 0 0;color:#64748b;font-size:13px;line-height:1.55}
.maju-student-choice-list{display:grid;gap:10px}
.maju-student-choice-card{
  width:100%;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:13px;
  text-align:left;padding:14px;border-radius:18px;border:1px solid #e7e5e4;background:#fff;
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,background .16s ease
}
.maju-student-choice-card:hover,.maju-student-choice-card:focus-visible{
  transform:translateY(-1px);border-color:#f59e0b;background:#fffbeb;box-shadow:0 10px 28px rgba(120,53,15,.09);outline:none
}
.maju-student-choice-avatar{
  width:42px;height:42px;border-radius:14px;background:#fef3c7;color:#92400e;display:grid;place-items:center
}
.maju-student-choice-avatar svg{width:21px;height:21px}
.maju-student-choice-copy{min-width:0;display:flex;flex-direction:column;gap:2px}
.maju-student-choice-copy strong{font-size:14px;color:#1f2937;font-weight:900;white-space:normal}
.maju-student-choice-copy span{font-size:12px;color:#475569;font-weight:700}
.maju-student-choice-copy small{font-size:11px;color:#94a3b8}
.maju-student-choice-enter{display:inline-flex;align-items:center;gap:5px;color:#065f46;font-size:12px;font-weight:900;white-space:nowrap}
.maju-student-choice-enter svg{width:15px;height:15px}
.maju-student-choice-cancel{
  display:block;margin:14px auto 0;padding:8px 14px;border-radius:12px;color:#64748b;font-size:12px;font-weight:800
}
.maju-student-choice-cancel:hover{background:#f1f5f9;color:#334155}
.dark .maju-student-choice-dialog{background:#111827;border-color:#334155}
.dark .maju-student-choice-head h3,.dark .maju-student-choice-copy strong{color:#f8fafc}
.dark .maju-student-choice-head p,.dark .maju-student-choice-copy span{color:#cbd5e1}
.dark .maju-student-choice-card{background:#172033;border-color:#334155}
.dark .maju-student-choice-card:hover,.dark .maju-student-choice-card:focus-visible{background:#20293a;border-color:#f59e0b}
@media(max-width:520px){
  .maju-student-choice-dialog{padding:18px;border-radius:22px}
  .maju-student-choice-card{grid-template-columns:auto minmax(0,1fr);padding:13px}
  .maju-student-choice-enter{grid-column:2;justify-self:start;margin-top:4px}
}
