/* Modern & Clean Styles for Desaku Jatisari */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary-emerald: #059669;
  --primary-emerald-dark: #064e3b;
  --primary-emerald-light: #ecfdf5;
  --accent-gold: #f59e0b;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  color: #0f172a;
  background-color: #f8fafc;
}

/* Modern Clean Titles */
.font-serif-title, h1, h2, h3, .font-heading {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif !important;
  letter-spacing: -0.025em;
}

/* Glassmorphism effects */
.glass-nav {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass-card {
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 1) !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
}

/* Hero gradient - Solid emerald fallback + vibrant background overlay */
.hero-gradient {
  background-color: #064e3b !important;
  background-image: linear-gradient(135deg, rgba(6, 78, 59, 0.94) 0%, rgba(4, 120, 87, 0.88) 50%, rgba(5, 150, 105, 0.85) 100%), 
                    url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=1920&q=80') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

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

/* Status Badges */
.badge-pending {
  background-color: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-approved {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.badge-rejected {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Surat Cetak / Print Styles */
.surat-print-container {
  width: 210mm;
  min-height: 297mm;
  padding: 15mm 20mm;
  margin: 0 auto;
  background: #ffffff;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
  font-family: 'Times New Roman', Times, serif;
  color: #000000;
  line-height: 1.45;
  font-size: 11.5pt;
  position: relative;
}

.kop-surat {
  display: flex;
  align-items: center;
  border-bottom: 3px double #000000;
  padding-bottom: 10px;
  margin-bottom: 18px;
}

.kop-logo {
  width: 75px;
  height: 75px;
  margin-right: 18px;
  object-fit: contain;
}

.kop-text {
  flex: 1;
  text-align: center;
}

.kop-text h4 {
  font-size: 13pt;
  font-weight: bold;
  margin: 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.kop-text h3 {
  font-size: 15pt;
  font-weight: bold;
  margin: 2px 0;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.kop-text p {
  font-size: 9.5pt;
  margin: 2px 0 0 0;
  font-style: italic;
}

.surat-title {
  text-align: center;
  margin: 15px 0 20px 0;
}

.surat-title h2 {
  font-size: 13.5pt;
  font-weight: bold;
  text-decoration: underline;
  margin: 0;
  text-transform: uppercase;
}

.surat-title p {
  font-size: 11pt;
  margin-top: 3px;
  font-weight: normal;
}

.surat-table-data {
  width: 100%;
  margin: 10px 0 15px 0;
  border-collapse: collapse;
}

.surat-table-data td {
  padding: 3px 6px;
  vertical-align: top;
  font-size: 11.5pt;
}

.surat-ttd-section {
  margin-top: 30px;
  display: flex;
  justify-content: flex-end;
}

.surat-ttd-box {
  width: 270px;
  text-align: center;
}

.ttd-cap-wrapper {
  position: relative;
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5px 0;
}

.cap-desa {
  position: absolute;
  width: 95px;
  opacity: 0.85;
  left: 20px;
  transform: rotate(-10deg);
}

.qr-code-stamp {
  width: 70px;
  height: 70px;
}

@media print {
  body {
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .no-print, nav, header, footer, .modal-backdrop, button, .action-bar, #app-navbar, #modal-surat-header, #modal-surat-footer {
    display: none !important;
  }

  .surat-print-container {
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }

  @page {
    size: A4 portrait;
    margin: 12mm 15mm 12mm 15mm;
  }
}
