/* ==========================================================================
   Aplikasi PPSB Online Pondok Pesantren Yaa Bunayya Jayapura (MTs & MA)
   Motto: "Beradab, Berilmu, Berdakwah"
   Alamat: Jl. Yoka Waena Kota Jayapura Provinsi Papua
   ========================================================================== */

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

:root {
  --primary: #047857;
  --primary-dark: #064e3b;
  --primary-darker: #022c22;
  --primary-light: #059669;
  --primary-pale: #ecfdf5;
  --gold: #d97706;
  --gold-light: #f59e0b;
  --gold-pale: #fef3c7;
  --gold-dark: #b45309;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f1f5f9;
  color: var(--slate-800);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ==========================================================================
   TOP KEMENAG & PESANTREN STRIP
   ========================================================================== */
.top-strip {
  background: var(--primary-darker);
  color: #a7f3d0;
  font-size: 0.76rem;
  border-bottom: 1px solid rgba(217, 119, 6, 0.4);
}
.top-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}
.top-strip-left, .top-strip-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.badge-emis {
  background: rgba(217, 119, 6, 0.2);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.divider {
  opacity: 0.4;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
  background: var(--primary-dark);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand-logo-img-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  border: 2px solid var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-logo-fallback {
  color: var(--primary-dark);
  font-size: 1.5rem;
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-title {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.2px;
}
.brand-subtitle {
  color: #a7f3d0;
  font-size: 0.74rem;
  font-weight: 500;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nav-btn {
  background: transparent;
  color: #d1fae5;
  border: none;
  padding: 9px 15px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
  text-decoration: none;
}
.nav-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
.nav-btn.active {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.nav-btn-admin {
  background: #047857 !important;
  color: #fde68a !important;
  border: 1px solid var(--gold) !important;
}

/* ==========================================================================
   MAIN LAYOUT & TABS
   ========================================================================== */
.main-content {
  flex: 1;
}
.tab-section {
  display: none;
}
.tab-section.active {
  display: block;
}
.section-padding {
  padding: 36px 0;
}
.section-header {
  margin-bottom: 28px;
}
.section-header.text-center {
  text-align: center;
}
.section-tag {
  display: inline-block;
  background: #ecfdf5;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 30px;
  margin-bottom: 8px;
  border: 1px solid #a7f3d0;
}
.section-header h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--slate-900);
}
.section-header p {
  color: var(--slate-600);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* ==========================================================================
   TAB 1: BERANDA / HERO SECTION & BANNER
   ========================================================================== */
.banner-hero-container {
  background: #022c22;
  border-bottom: 2px solid var(--gold);
}
.banner-hero-card {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(245, 158, 11, 0.4);
  background: #064e3b;
  display: flex;
}
.banner-hero-img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.hero-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #065f46 60%, #047857 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    radial-gradient(rgba(245, 158, 11, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 36px;
  align-items: center;
  padding: 44px 0 52px;
  position: relative;
  z-index: 1;
}
.hero-arabic {
  font-family: 'Amiri', serif;
  font-size: 1.75rem;
  color: #fde68a;
  margin-bottom: 6px;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(2, 44, 34, 0.6);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fde68a;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.hero-text h1 {
  font-size: 2.35rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 8px;
}
.text-highlight {
  color: #f59e0b;
}
.hero-address {
  color: #a7f3d0;
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-desc {
  margin-bottom: 22px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: rgba(2, 44, 34, 0.55);
  border: 1px solid rgba(5, 150, 105, 0.4);
  padding: 14px 18px;
  border-radius: 16px;
  backdrop-filter: blur(4px);
}
.stat-item {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fde68a;
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  color: #a7f3d0;
  margin-top: 4px;
}

/* Hero Showcase Card */
.hero-card-wrapper {
  position: relative;
}
.hero-info-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.hero-logo-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--slate-100);
  margin-bottom: 14px;
}
.hero-logo-showcase {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  padding: 2px;
}
.hero-logo-caption strong {
  display: block;
  font-size: 0.88rem;
  color: var(--primary-dark);
  font-weight: 800;
}
.hero-logo-caption span {
  font-size: 0.74rem;
  color: var(--slate-600);
}
.hero-card-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.hero-card-header i {
  color: var(--primary);
  font-size: 1.4rem;
  margin-top: 2px;
}
.hero-card-header h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--slate-900);
}
.hero-card-header p {
  font-size: 0.76rem;
  color: var(--slate-600);
}
.doc-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.doc-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f8fafc;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}
.doc-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #ecfdf5;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.doc-checklist strong {
  display: block;
  font-size: 0.82rem;
  color: var(--slate-800);
}
.doc-checklist p {
  font-size: 0.72rem;
  color: var(--slate-600);
}
.hero-card-footer button {
  width: 100%;
}

/* Jenjang Grid on Beranda */
.jenjang-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.jenjang-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px;
  border: 2px solid var(--slate-200);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}
.jenjang-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(4, 120, 87, 0.1);
}
.jenjang-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}
.badge-mts {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.badge-ma {
  background: #eef2ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
}
.jenjang-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 6px;
}
.jenjang-card p {
  font-size: 0.85rem;
  color: var(--slate-600);
  margin-bottom: 16px;
}
.jenjang-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 0.82rem;
  color: var(--slate-700);
}
.jenjang-features li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.jenjang-features i {
  color: var(--primary);
}

/* ==========================================================================
   TAB 2: FORMULIR PENDAFTARAN & STEPPER
   ========================================================================== */
.form-header-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #065f46 100%);
  color: #ffffff;
  padding: 24px 28px;
  border-radius: 20px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.form-header-banner h2 {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 4px 0 2px;
}
.form-header-banner p {
  font-size: 0.82rem;
  color: #a7f3d0;
  max-width: 720px;
}

/* Stepper */
.stepper-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: #ffffff;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--slate-200);
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.stepper-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.stepper-item.active {
  background: #ecfdf5;
  border-color: #a7f3d0;
}
.stepper-item.completed {
  background: #f8fafc;
}
.step-counter {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  flex-shrink: 0;
  transition: all 0.2s;
}
.stepper-item.active .step-counter {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.25);
}
.stepper-item.completed .step-counter {
  background: #059669;
  color: #ffffff;
}
.step-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--slate-700);
}
.stepper-item.active .step-name {
  color: var(--primary-dark);
}

/* Card Panel & Form Grid */
.card-panel {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px;
  border: 1px solid var(--slate-200);
  box-shadow: 0 4px 16px rgba(0,0,0,0.02);
  margin-bottom: 24px;
}
.panel-title {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--slate-100);
  margin-bottom: 20px;
}
.panel-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ecfdf5;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.panel-title h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--slate-900);
}
.panel-title p {
  font-size: 0.8rem;
  color: var(--slate-600);
}

.sub-heading {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-divider {
  border: 0;
  border-top: 1px dashed var(--slate-200);
  margin: 24px 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.col-span-2 {
  grid-column: span 2;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--slate-700);
}
.req {
  color: #dc2626;
  font-weight: 800;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--slate-300);
  font-size: 0.86rem;
  font-family: inherit;
  color: var(--slate-800);
  background-color: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.18);
}
.form-group input[type="date"] {
  font-family: inherit;
}
.readonly-input {
  background-color: #f8fafc !important;
  color: #64748b !important;
  cursor: not-allowed;
}
.help-text {
  font-size: 0.72rem;
  color: #64748b;
}

.wali-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.wali-copy-btns {
  display: flex;
  gap: 8px;
}

/* ==========================================================================
   STEP 4: UPLOAD BERKAS
   ========================================================================== */
.upload-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.upload-card {
  background: #f8fafc;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 16px;
}
.upload-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.upload-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 800;
  flex-shrink: 0;
}
.upload-card-head div {
  flex: 1;
}
.upload-card-head h4 {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--slate-900);
}
.upload-card-head p {
  font-size: 0.72rem;
  color: var(--slate-600);
}
.upload-status-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  white-space: nowrap;
}
.upload-status-badge.uploaded {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}
.upload-dropzone {
  border: 2px dashed #cbd5e1;
  background: #ffffff;
  border-radius: 12px;
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.upload-dropzone:hover {
  border-color: var(--primary);
  background: #ecfdf5;
}
.upload-dropzone input[type="file"] {
  display: none;
}
.upload-dropzone i {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 6px;
}
.drop-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--slate-800);
}
.drop-sub {
  font-size: 0.7rem;
  color: var(--slate-600);
  margin-top: 2px;
}
.upload-preview {
  margin-top: 10px;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.78rem;
}

.declaration-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 22px;
}
.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.84rem;
  color: #78350f;
  line-height: 1.45;
}
.checkbox-container input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  flex-shrink: 0;
  cursor: pointer;
}

/* Step Buttons */
.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--slate-100);
}
.step-actions.right-only {
  justify-content: flex-end;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--primary);
  color: #ffffff;
}
.btn-primary:hover {
  background: #065f46;
}
.btn-secondary {
  background: #f1f5f9;
  color: var(--slate-700);
  border: 1px solid var(--slate-300);
}
.btn-secondary:hover {
  background: #e2e8f0;
}
.btn-gold {
  background: var(--gold);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}
.btn-gold:hover {
  background: var(--gold-dark);
}
.btn-light-outline {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.8);
}
.btn-light-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}
.btn-outline-light {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}
.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-outline-primary:hover {
  background: #ecfdf5;
}
.btn-danger {
  background: #dc2626;
  color: #ffffff;
}
.btn-danger:hover {
  background: #b91c1c;
}
.btn-sm {
  padding: 6px 12px;
  font-size: 0.78rem;
  border-radius: 8px;
}
.btn-lg {
  padding: 12px 24px;
  font-size: 0.94rem;
  border-radius: 12px;
}
.btn-block {
  width: 100%;
}

/* ==========================================================================
   TAB 3: CEK STATUS & HASIL PENCARIAN
   ========================================================================== */
.search-status-panel {
  max-width: 900px;
  margin: 0 auto;
}
.status-search-bar {
  display: flex;
  gap: 12px;
  margin: 20px 0 14px;
}
.status-search-bar input {
  flex: 1;
  padding: 12px 18px;
  border-radius: 12px;
  border: 2px solid var(--slate-300);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.status-search-bar input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.15);
}
.quick-sample-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--slate-600);
  margin-bottom: 24px;
}
.chip-btn {
  background: #f1f5f9;
  border: 1px solid var(--slate-300);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  font-family: monospace;
  color: var(--slate-700);
  cursor: pointer;
  transition: all 0.15s;
}
.chip-btn:hover {
  background: #ecfdf5;
  border-color: var(--primary);
  color: var(--primary-dark);
}

.status-result-box {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--slate-200);
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.06);
  animation: fadeIn 0.25s ease;
}
.status-head {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #065f46 100%);
  color: #ffffff;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.status-badge-lg {
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.badge-verified {
  background: #d1fae5;
  color: #065f46;
}
.badge-pending {
  background: #fef3c7;
  color: #92400e;
}
.badge-rejected {
  background: #fee2e2;
  color: #991b1b;
}

/* ==========================================================================
   ADMIN PANEL STYLES
   ========================================================================== */
.login-panel {
  max-width: 480px;
  margin: 40px auto;
  text-align: center;
  padding: 36px 32px;
}
.login-icon {
  margin-bottom: 14px;
  display: flex;
  justify-content: center;
}
.login-icon img {
  border: 2px solid var(--gold);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.login-form {
  text-align: left;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.login-hint {
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.78rem;
  color: #92400e;
}

.admin-top-bar {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #065f46 100%);
  color: #ffffff;
  padding: 24px 28px;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.admin-top-bar h2 {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 4px 0 2px;
}
.admin-top-bar p {
  font-size: 0.82rem;
  color: #a7f3d0;
}
.admin-top-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.kpi-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid var(--slate-200);
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
  display: flex;
  align-items: center;
  gap: 14px;
}
.kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}
.kpi-total .kpi-icon { background: #ecfdf5; color: #065f46; }
.kpi-mts .kpi-icon { background: #f0fdfa; color: #0f766e; }
.kpi-ma .kpi-icon { background: #eef2ff; color: #4338ca; }
.kpi-verified .kpi-icon { background: #d1fae5; color: #047857; }
.kpi-pending .kpi-icon { background: #fef3c7; color: #b45309; }

.kpi-info {
  display: flex;
  flex-direction: column;
}
.kpi-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--slate-600);
}
.kpi-info h3 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.1;
  margin: 2px 0;
}
.kpi-info small {
  font-size: 0.68rem;
  color: var(--slate-400);
}

/* EMIS Export Card */
.emis-export-card {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 18px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.emis-export-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 280px;
}
.emis-badge-lg {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  flex-shrink: 0;
}
.emis-export-info h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-dark);
}
.emis-export-info p {
  font-size: 0.78rem;
  color: #065f46;
  max-width: 650px;
}
.emis-export-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.btn-excel { background: #15803d; color: #ffffff; }
.btn-excel:hover { background: #166534; }
.btn-excel-mts { background: #0f766e; color: #ffffff; }
.btn-excel-mts:hover { background: #115e59; }
.btn-excel-ma { background: #4338ca; color: #ffffff; }
.btn-excel-ma:hover { background: #3730a3; }
.btn-csv { background: #b45309; color: #ffffff; }
.btn-csv:hover { background: #92400e; }
.btn-json { background: #334155; color: #ffffff; }
.btn-json:hover { background: #1e293b; }

/* Filter Bar & Data Table */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.filter-search {
  flex: 1;
  min-width: 260px;
  position: relative;
  display: flex;
  align-items: center;
}
.filter-search i {
  position: absolute;
  left: 14px;
  color: var(--slate-400);
}
.filter-search input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border-radius: 10px;
  border: 1px solid var(--slate-300);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
}
.filter-search input:focus {
  border-color: var(--primary);
}
.filter-selects {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-selects select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--slate-300);
  font-size: 0.82rem;
  font-family: inherit;
  background: #ffffff;
  outline: none;
  font-weight: 600;
  color: var(--slate-700);
}

.table-responsive {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--slate-200);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: left;
}
.data-table th {
  background: #f8fafc;
  color: var(--slate-700);
  font-weight: 800;
  padding: 12px 14px;
  border-bottom: 2px solid var(--slate-200);
  white-space: nowrap;
}
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.data-table tbody tr:hover {
  background-color: #f8fafc;
}

/* Badges */
.badge-status {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.badge-status-terverifikasi { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.badge-status-menunggu { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.badge-status-perbaikan { background: #fed7aa; color: #9a3412; border: 1px solid #fdba74; }
.badge-status-diterima { background: #ecfdf5; color: #047857; border: 1px solid #6ee7b7; }
.badge-status-tidak { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

.doc-status-icons {
  display: flex;
  gap: 6px;
  align-items: center;
}
.doc-pill {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
}
.doc-pill.valid { background: #d1fae5; color: #065f46; }
.doc-pill.pending { background: #fef3c7; color: #92400e; }
.doc-pill.empty { background: #fee2e2; color: #991b1b; }

/* ==========================================================================
   MODALS & LIGHTBOX
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.15s ease-out;
}
.modal-box {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--slate-200);
}
.modal-lg { max-width: 820px; }
.modal-xl { max-width: 1020px; }

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--slate-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
}
.modal-header h3 {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--slate-900);
}
.modal-close {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--slate-400);
  cursor: pointer;
}
.modal-close:hover {
  color: var(--slate-800);
}
.modal-body {
  padding: 24px;
  overflow-y: auto;
}
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--slate-100);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #f8fafc;
}

/* Modal Doc Tabs */
.modal-doc-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--slate-200);
  margin-bottom: 18px;
}
.modal-doc-tab {
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--slate-600);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
}
.modal-doc-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 400px;
  animation: fadeIn 0.2s ease;
}
.toast-success { background: #059669; }
.toast-error { background: #dc2626; }
.toast-info { background: #0284c7; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--primary-darker);
  color: #a7f3d0;
  padding: 28px 0;
  margin-top: auto;
  border-top: 3px solid var(--gold);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 10px;
  padding: 2px;
}
.footer-brand h4 {
  font-size: 0.94rem;
  font-weight: 800;
  color: #ffffff;
}
.footer-brand p {
  font-size: 0.74rem;
  color: #a7f3d0;
}
.footer-right {
  font-size: 0.76rem;
  color: #6ee7b7;
}

/* ==========================================================================
   ANIMATIONS & RESPONSIVE
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    padding: 30px 0;
  }
  .jenjang-grid {
    grid-template-columns: 1fr;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stepper-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .col-span-2 {
    grid-column: span 1;
  }
  .upload-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stepper-wrapper {
    grid-template-columns: 1fr;
  }
  .status-search-bar {
    flex-direction: column;
  }
  .navbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }
}

/* ==========================================================================
   PRINT STYLES FOR OFFICIAL PPSB CARD & EMIS REGISTRATION SHEET
   ========================================================================== */
.print-only {
  display: none;
}

@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt !important;
  }
  .no-print {
    display: none !important;
  }
  .print-only {
    display: block !important;
  }
  #print-area {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  @page {
    size: A4 portrait;
    margin: 12mm 15mm;
  }
  .print-card-box {
    border: 2px solid #000000;
    padding: 16px 20px;
    background: #ffffff;
  }
  .print-letterhead {
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 3px double #000000;
    padding-bottom: 12px;
    margin-bottom: 14px;
    text-align: center;
  }
  .print-letterhead img {
    width: 75px;
    height: 75px;
    object-fit: contain;
  }
  .print-letterhead-text {
    flex: 1;
  }
  .print-letterhead-text h2 {
    font-size: 14pt;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
  }
  .print-letterhead-text h3 {
    font-size: 12pt;
    font-weight: 700;
    margin: 2px 0;
  }
  .print-letterhead-text p {
    font-size: 8.5pt;
    margin: 1px 0;
  }
  .print-title {
    text-align: center;
    font-size: 13pt;
    font-weight: 800;
    text-decoration: underline;
    margin-bottom: 4px;
    text-transform: uppercase;
  }
  .print-subtitle {
    text-align: center;
    font-size: 10pt;
    font-weight: 700;
    margin-bottom: 16px;
  }
  .print-meta-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
    border: 1px solid #000000;
    padding: 10px;
    background: #fdfdfd;
  }
  .print-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 9pt;
    margin-bottom: 14px;
  }
  .print-table th, .print-table td {
    border: 1px solid #333333;
    padding: 5px 8px;
    vertical-align: top;
  }
  .print-table th {
    background: #f0f0f0 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    font-weight: 700;
    width: 28%;
  }
  .print-docs-box {
    border: 1px solid #000000;
    padding: 8px 12px;
    margin-bottom: 14px;
    font-size: 8.5pt;
  }
  .print-signatures {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
    font-size: 9pt;
    text-align: center;
  }
  .sig-space {
    height: 60px;
  }
}
