/* ==========================================================================
   MaheraKids - Enhanced Features Style (Invoice, Certificate, Gallery, Form)
   ========================================================================== */

/* Navbar Extras */
.site-header .container {
  max-width: 1240px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu > li {
  display: flex;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: #334155;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.45rem 0.75rem;
  border-radius: 50px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-nav-admin {
  background: #0f4c5c !important;
  color: white !important;
  padding: 0.45rem 0.95rem !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  box-shadow: 0 2px 6px rgba(15, 76, 92, 0.25);
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

.btn-nav-admin:hover {
  background: #092f3a !important;
  transform: translateY(-1px);
}

.btn-nav-parent {
  background: #10b981 !important;
  color: white !important;
  padding: 0.45rem 0.95rem !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

.btn-nav-parent:hover {
  background: #059669 !important;
  transform: translateY(-1px);
}

.btn-nav-logout {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #ef4444;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0.42rem 0.75rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-nav-logout:hover {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
}

.nav-badge-login {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: white !important;
  font-weight: 700 !important;
  padding: 0.45rem 1rem !important;
  border-radius: 50px !important;
  font-size: 0.85rem !important;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
  transition: all 0.2s ease;
}
.nav-badge-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
}

/* User dropdown button */
.nav-user-dropdown {
  position: relative;
  display: inline-block;
}
.nav-user-badge {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

/* Flash alerts */
.alert-box {
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.alert-success {
  background: #ecfdf5;
  border: 1px solid #10b981;
  color: #065f46;
}
.alert-danger {
  background: #fef2f2;
  border: 1px solid #ef4444;
  color: #991b1b;
}
.alert-info {
  background: #f0f9ff;
  border: 1px solid #0284c7;
  color: #075985;
}

/* ==========================================================================
   FEATURE 2: Formulir Pendaftaran Siswa Baru (Mengacu pada image.png)
   ========================================================================== */
.paper-form-container {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border: 1px solid #e2e8f0;
  padding: 2.5rem;
  max-width: 960px;
  margin: 2rem auto;
}

.paper-header {
  border-bottom: 3px double #0f4c5c;
  padding-bottom: 1.2rem;
  margin-bottom: 2rem;
  text-align: center;
}
.paper-header h2 {
  font-family: 'Fredoka', sans-serif;
  color: #0f4c5c;
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.paper-header .sub-header {
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 600;
}
.paper-header .address-header {
  font-size: 0.85rem;
  color: #334155;
  margin-top: 0.25rem;
}

.form-section-title {
  background: linear-gradient(90deg, #0f4c5c, #0284c7);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.1rem;
  margin-top: 1.8rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-grid-image {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
@media (max-width: 768px) {
  .form-grid-image {
    grid-template-columns: 1fr;
  }
}

.form-field-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-field-item.full-width {
  grid-column: 1 / -1;
}
.form-field-item label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #334155;
}
.form-field-item input,
.form-field-item select,
.form-field-item textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  transition: all 0.2s;
  background: #f8fafc;
}
.form-field-item input:focus,
.form-field-item select:focus,
.form-field-item textarea:focus {
  outline: none;
  border-color: #0284c7;
  background: white;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.photo-upload-box {
  border: 2px dashed #94a3b8;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s;
}
.photo-upload-box:hover {
  border-color: #0284c7;
  background: #f0f9ff;
}
.photo-preview-frame {
  width: 120px;
  height: 160px;
  border: 2px solid #cbd5e1;
  background: #e2e8f0;
  margin: 0.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: bold;
  overflow: hidden;
  border-radius: 6px;
}
.photo-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   FEATURE 3: Invoice Pembayaran (Style GiftLearn & Stempel LUNAS)
   ========================================================================== */
.invoice-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.08);
  border: 1px solid #e2e8f0;
  max-width: 880px;
  margin: 2rem auto;
  overflow: hidden;
  position: relative;
}

.invoice-header-banner {
  background: linear-gradient(135deg, #0f4c5c 0%, #00565b 50%, #0284c7 100%);
  color: white;
  padding: 2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.invoice-logo-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.invoice-logo-title .logo-symbol {
  width: 50px;
  height: 50px;
  background: white;
  color: #0f4c5c;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.invoice-meta-right {
  text-align: right;
}
@media (max-width: 600px) {
  .invoice-meta-right {
    text-align: left;
  }
}

.invoice-body {
  padding: 2.5rem;
  position: relative;
}

/* Stempel LUNAS (GiftLearn Rubber Stamp Effect) */
.stamp-lunas-watermark {
  position: absolute;
  top: 40%;
  right: 10%;
  transform: rotate(-15deg);
  border: 4px solid #10b981;
  color: #10b981;
  padding: 0.5rem 1.8rem;
  border-radius: 12px;
  font-family: 'Paytone One', 'Impact', sans-serif;
  text-transform: uppercase;
  font-size: 2.2rem;
  letter-spacing: 4px;
  opacity: 0.88;
  mask-image: radial-gradient(circle, rgba(0,0,0,1) 70%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
  z-index: 5;
  box-shadow: inset 0 0 10px rgba(16, 185, 129, 0.2);
}
.stamp-lunas-watermark::after {
  content: 'MAHERA PRIVAT • TERVERIFIKASI';
  display: block;
  font-size: 0.65rem;
  letter-spacing: 2px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  text-align: center;
  border-top: 1.5px solid #10b981;
  margin-top: 4px;
  padding-top: 2px;
}

.stamp-pending-watermark {
  position: absolute;
  top: 40%;
  right: 10%;
  transform: rotate(-12deg);
  border: 4px dashed #f59e0b;
  color: #d97706;
  padding: 0.5rem 1.5rem;
  border-radius: 12px;
  font-family: 'Paytone One', 'Impact', sans-serif;
  text-transform: uppercase;
  font-size: 1.8rem;
  letter-spacing: 3px;
  opacity: 0.85;
  pointer-events: none;
  z-index: 5;
}
.stamp-pending-watermark::after {
  content: 'MENUNGGU PEMBAYARAN';
  display: block;
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  text-align: center;
  border-top: 1px dashed #f59e0b;
  margin-top: 3px;
  padding-top: 2px;
}

/* Invoice Table */
.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.invoice-table th {
  background: #f1f5f9;
  color: #334155;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 2px solid #cbd5e1;
}
.invoice-table td {
  padding: 1rem;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.95rem;
  color: #1e293b;
}
.invoice-table tr:last-child td {
  border-bottom: none;
}
.invoice-total-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  margin-left: auto;
  max-width: 360px;
  border: 1px solid #e2e8f0;
}
.total-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #64748b;
}
.total-line.grand {
  border-top: 2px solid #cbd5e1;
  padding-top: 0.75rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f4c5c;
}

/* Payment Instructions Box */
.payment-info-box {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  padding: 1.2rem;
  margin-top: 1.5rem;
}
.bank-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  border: 1px solid #cbd5e1;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  margin: 0.3rem 0.5rem 0.3rem 0;
}

/* ==========================================================================
   FEATURE 4: Sertifikat Kursus / Bimbel (Style GiftLearn Elegant)
   ========================================================================== */
.cert-outer-wrapper {
  background: #1e293b;
  padding: 2.5rem 1rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cert-actions-bar {
  max-width: 1050px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.cert-a4-sheet {
  width: 100%;
  max-width: 1050px;
  aspect-ratio: 1.414 / 1; /* A4 Landscape */
  background: #ffffff;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  border-radius: 4px;
  padding: 28px;
  box-sizing: border-box;
  color: #0f172a;
  overflow: hidden;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Double Ornate Border */
.cert-inner-frame {
  width: 100%;
  height: 100%;
  border: 3px solid #b45309; /* Gold outer */
  box-sizing: border-box;
  position: relative;
  padding: 18px;
}
.cert-inner-subframe {
  width: 100%;
  height: 100%;
  border: 1.5px solid #0f4c5c; /* Teal inner */
  box-sizing: border-box;
  padding: 25px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at center, #ffffff 60%, #fefce8 100%);
}

/* Decorative Corner Accents */
.cert-corner {
  position: absolute;
  width: 32px;
  height: 32px;
  border-color: #b45309;
  border-style: solid;
}
.corner-tl { top: -2px; left: -2px; border-width: 6px 0 0 6px; }
.corner-tr { top: -2px; right: -2px; border-width: 6px 6px 0 0; }
.corner-bl { bottom: -2px; left: -2px; border-width: 0 0 6px 6px; }
.corner-br { bottom: -2px; right: -2px; border-width: 0 6px 6px 0; }

.cert-header-group {
  margin-top: 5px;
}
.cert-org-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: #0f4c5c;
  letter-spacing: 2px;
}
.cert-org-sub {
  font-size: 0.85rem;
  color: #b45309;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 2px;
}

.cert-main-badge {
  font-family: 'Paytone One', 'Fredoka', serif;
  font-size: 2.6rem;
  color: #b45309;
  letter-spacing: 4px;
  margin: 0.8rem 0 0.2rem 0;
  text-shadow: 1px 1px 0px rgba(0,0,0,0.1);
}
.cert-number {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
  letter-spacing: 1px;
}

.cert-recipient-name {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 2.5rem;
  color: #0f172a;
  margin: 0.8rem 0 0.4rem 0;
  border-bottom: 2px solid #b45309;
  display: inline-block;
  padding: 0 2.5rem 0.2rem 2.5rem;
}
.cert-predicate-tag {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  padding: 0.3rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 800;
  display: inline-block;
  margin-top: 0.5rem;
}

/* Cert Signatures & Seal Section */
.cert-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 1.5rem;
  padding: 0 1rem;
}
.cert-sig-block {
  text-align: center;
  width: 220px;
}
.cert-sig-line {
  border-bottom: 1.5px solid #334155;
  margin-bottom: 0.4rem;
  height: 60px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sig-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: #0f172a;
}
.sig-title {
  font-size: 0.75rem;
  color: #64748b;
}

/* Official Golden Seal Emblem */
.cert-gold-seal {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, #fde047 0%, #ca8a04 100%);
  border: 3px double #78350f;
  box-shadow: 0 4px 15px rgba(202, 138, 4, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #78350f;
  font-weight: 800;
  font-size: 0.65rem;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.1;
  position: relative;
}
.cert-gold-seal .seal-star {
  font-size: 1.1rem;
  color: #78350f;
  margin-bottom: 2px;
}

/* ==========================================================================
   FEATURE 5: Galeri Foto Kegiatan & Buku Panduan Siswa
   ========================================================================== */
.gallery-tab-buttons {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.gallery-filter-btn {
  background: white;
  border: 1.5px solid #cbd5e1;
  color: #334155;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
}
.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background: #0f4c5c;
  color: white;
  border-color: #0f4c5c;
  box-shadow: 0 4px 12px rgba(15, 76, 92, 0.25);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.8rem;
}
.gallery-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}
.gallery-img-wrap {
  width: 100%;
  height: 220px;
  position: relative;
  overflow: hidden;
  background: #f1f5f9;
}
.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-card:hover .gallery-img-wrap img {
  transform: scale(1.06);
}
.gallery-category-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.cat-kegiatan { background: #0284c7; }
.cat-buku_panduan { background: #16a085; }
.cat-prestasi { background: #f59e0b; }

.gallery-info-box {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.gallery-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.15rem;
  color: #0f172a;
  margin-bottom: 0.4rem;
}
.gallery-desc {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 0.8rem;
  flex-grow: 1;
}
.gallery-date {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 600;
}

/* Print CSS */
@media print {
  body * {
    visibility: hidden;
  }
  .print-area, .print-area * {
    visibility: visible;
  }
  .print-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
  .no-print {
    display: none !important;
  }
}

/* ==========================================================================
   Revisi 1: WhatsApp Quick Registration Form & Program Checkbox Grid (1.png)
   ========================================================================== */
.form-wrapper {
  background: white;
  border-radius: 28px;
  padding: 3rem 2.5rem;
  border: 2px solid #cbd5e1;
  box-shadow: 0 10px 30px rgba(15, 76, 92, 0.08);
}
.form-grid-2col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.form-field {
  display: flex;
  flex-direction: column;
}
.form-field.full {
  grid-column: 1 / -1;
}
.form-field label {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f4c5c;
  margin-bottom: 0.5rem;
}
.form-input {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  border: 2px solid #cbd5e1;
  font-family: inherit;
  font-size: 0.95rem;
  background: #f8fafc;
  transition: all 0.2s;
}
.form-input:focus {
  outline: none;
  border-color: #10b981;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.checkbox-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 0.9rem;
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 16px;
  border: 1.5px solid #e2e8f0;
}
.checkbox-card-item {
  background: white;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.checkbox-card-item:hover {
  border-color: #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
  transform: translateY(-1px);
}
.checkbox-card-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #0f4c5c;
  margin-top: 2px;
  cursor: pointer;
}
.checkbox-text-wrap {
  flex: 1;
}
.checkbox-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #1e293b;
  display: block;
}
.checkbox-desc {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 2px;
  display: block;
}
.checkbox-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
  margin-top: 4px;
}
.badge-paud { background: #dcfce7; color: #15803d; }
.badge-bhs { background: #e0f2fe; color: #0369a1; }
.badge-sains { background: #fef3c7; color: #b45309; }
.badge-soshum { background: #f3e8ff; color: #7e22ce; }

