/* ==========================================================================
   PPDS Adijaya - Public frontend (cek pembayaran) - Green Elegant
   ========================================================================== */

:root {
  --brand-500: #10b981;
  --brand-600: #059669;
  --brand-700: #047857;
  --brand-800: #065f46;
  --brand-900: #022c22;
  --ink: #1e293b;
  --ink-soft: #64748b;
  --line: #d1e7dd;
  --grad: linear-gradient(135deg, #10b981 0%, #059669 50%, #065f46 100%);
}

@font-face {
  font-family: 'Poppins';
  font-weight: 400;
  src: url('../fonts/Poppins-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-weight: 500;
  src: url('../fonts/Poppins-Medium.ttf') format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-weight: 600;
  src: url('../fonts/Poppins-SemiBold.ttf') format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-weight: 700;
  src: url('../fonts/Poppins-Bold.ttf') format('truetype');
}

body.fe-body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #f3faf7;
  color: var(--ink);
  padding-bottom: 62px;
}

/* ---------- Header ---------- */
.fe-header {
  position: relative;
  background: var(--grad);
  overflow: hidden;
  padding-bottom: 64px;
}

.fe-header-bg::before,
.fe-header-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  pointer-events: none;
}
.fe-header-bg::before {
  width: 380px; height: 380px;
  top: -130px; right: -90px;
  background: radial-gradient(circle, #6ee7b7, transparent 70%);
}
.fe-header-bg::after {
  width: 340px; height: 340px;
  bottom: -150px; left: -90px;
  background: radial-gradient(circle, #a7f3d0, transparent 70%);
}

.fe-nav {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fe-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none !important;
}

.fe-brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .95);
  padding: 4px;
  object-fit: contain;
}

.fe-brand-name {
  font-size: 18px;
  font-weight: 700;
}

.fe-nav-links a {
  color: rgba(255, 255, 255, .9);
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 500;
  transition: color .2s ease;
}
.fe-nav-links a:hover { color: #fff; }
.fe-nav-links a i { font-size: 12px; }

.fe-hero {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 34px 20px 10px;
  text-align: center;
  color: #fff;
}

.fe-hero-title {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .25);
}

.fe-hero-sub {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .88);
  font-weight: 500;
  font-size: 15px;
}

/* ---------- Section / cards ---------- */
.fe-section {
  max-width: 1120px;
  margin: -34px auto 40px;
  padding: 0 20px;
  position: relative;
  z-index: 3;
}

.fe-search-card {
  background: #fff;
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 22px 50px rgba(6, 95, 70, .16);
  border: 1px solid #d1fae5;
}

.fe-search-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.fe-search-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 10px 22px rgba(5, 150, 105, .35);
}

.fe-search-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.fe-search-head p {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.fe-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
}

.fe-search-field { flex: 1 1 200px; }
.fe-search-grow { flex-grow: 1.6; }
.fe-search-action { flex-shrink: 0; }

.fe-search-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.fe-input.form-control,
.fe-select {
  height: 48px;
  border-radius: 13px;
  border: 1.5px solid #d1e7dd;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  box-shadow: none !important;
}

.fe-input.form-control:focus,
.fe-select:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, .15) !important;
}

.btn.fe-btn-search {
  height: 48px;
  padding: 0 26px;
  border: none;
  border-radius: 13px;
  background: var(--grad);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  box-shadow: 0 12px 24px rgba(5, 150, 105, .35);
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.btn.fe-btn-search:hover,
.btn.fe-btn-search:focus {
  color: #fff;
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 16px 30px rgba(5, 150, 105, .42);
}

/* ---------- Result cards ---------- */
.fe-results { margin-top: 26px; }

.fe-result-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

@media (min-width: 992px) {
  .fe-result-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

.fe-card {
  background: #fff;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 16px 40px rgba(6, 95, 70, .10);
  border: 1px solid #d1fae5;
  margin-bottom: 26px;
}

.fe-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.fe-card-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.fe-card-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

/* Info table */
.fe-info-table {
  width: 100%;
  border-collapse: collapse;
}

.fe-info-table td {
  padding: 10px 8px;
  font-size: 14px;
  vertical-align: top;
}

.fe-info-table tr:not(:last-child) td { border-bottom: 1px dashed var(--line); }

.fe-info-table td:first-child {
  width: 46%;
  color: var(--ink-soft);
  font-weight: 500;
}

.fe-info-table td:last-child { font-weight: 600; }

/* Data tables */
.fe-table-wrap { overflow-x: auto; }

.fe-table { margin-bottom: 0; }

.fe-table > thead > tr > th {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--brand-700);
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
}

.fe-table > tbody > tr > td {
  font-size: 13.5px;
  vertical-align: middle;
  border-top: 1px solid var(--line);
  white-space: nowrap;
}

.fe-table > tbody > tr:hover { background: #ecfdf5; }

.fe-table .label {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
}

.fe-table .label-success {
  background: #dcfce7 !important;
  color: #15803d;
}

.fe-table .label-warning {
  background: #fef3c7 !important;
  color: #b45309;
}

/* ---------- Footer ---------- */
.fe-footer {
  border: none !important;
  background: var(--brand-900) !important;
}

.fe-footer .navbar-text {
  float: none !important;
  color: rgba(255, 255, 255, .75);
  font-size: 13px;
  text-align: center;
  margin: 14px 0;
}

/* ---------- QR Scanner ---------- */
#qr-reader { width:100%; border-radius:16px; overflow:hidden; border:2px dashed var(--line); background:#f3faf7; min-height:260px }
#qr-reader video { border-radius:16px }
#qr-reader-container { margin-top:18px; display:none }
.fe-btn-qr { height:48px; padding:0 18px; border-radius:13px; background:#fff; border:1.5px solid var(--brand-500); color:var(--brand-700); font-weight:600; font-size:14px; box-shadow:0 8px 18px rgba(5,150,105,.12); transition:all .2s }
.fe-btn-qr:hover { background:var(--brand-50); color:var(--brand-800); transform:translateY(-2px) }
#qr-upload-section { margin-top:12px; padding:14px; border:1.5px dashed #a7f3d0; border-radius:12px; background:#ecfdf5 }
#qr-status { margin-top:10px }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .fe-hero-title { font-size: 23px; }
  .fe-search-card { padding: 20px; }
  .fe-search-action { width: 100%; display:flex; gap:10px }
  .btn.fe-btn-search, .fe-btn-qr { flex:1 }
}
