/* Custom Styles for E-Surat MTs Plus Bahrul Ulum */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Times+New+Roman&display=swap');

body {
  font-family: 'Inter', sans-serif;
  transition: background-color 0.25s ease, color 0.25s ease;
}

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

/* Official Letter Preview Paper (A4 proportion) */
.letter-paper {
  font-family: 'Times New Roman', Times, serif;
  background: #ffffff !important;
  color: #000000 !important;
  width: 100%;
  max-width: 210mm;
  min-height: 297mm;
  padding: 18mm 22mm;
  margin: 0 auto;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.15);
  line-height: 1.5;
  font-size: 12pt;
}

.kop-border {
  border-bottom: 3px solid #000;
  position: relative;
  padding-bottom: 8px;
  margin-bottom: 18px;
}
.kop-border::after {
  content: '';
  display: block;
  border-bottom: 1px solid #000;
  margin-top: 2px;
  margin-bottom: -11px;
}

/* ==========================================================================
   MODERN GLASSMORPHISM & GRADIENT THEME (DEFAULT RESMI)
   ========================================================================== */

body {
  background: linear-gradient(135deg, #ccfbf1 0%, #e0f2fe 50%, #ede9fe 100%) !important;
  background-attachment: fixed !important;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}
#loginScreen {
  background: radial-gradient(circle at top left, #0d9488 0%, #0284c7 50%, #312e81 100%) !important;
}
#loginScreen > div {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.85);
}
#loginScreen .bg-emerald-700 {
  background: linear-gradient(135deg, #0d9488 0%, #0284c7 60%, #4338ca 100%) !important;
}
#appLayout > aside {
  background: linear-gradient(170deg, rgba(15, 23, 42, 0.94) 0%, rgba(19, 78, 74, 0.93) 55%, rgba(30, 27, 75, 0.95) 100%) !important;
  backdrop-filter: blur(16px);
  margin: 12px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
}
#sidebarNav > button.bg-emerald-700 {
  background: linear-gradient(90deg, #0d9488 0%, #0284c7 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
}
header {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  margin: 12px 16px 0 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.tab-section .bg-white {
  background: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.92) !important;
  border-radius: 20px !important;
  box-shadow: 0 12px 30px -6px rgba(15, 23, 42, 0.07) !important;
}

/* Print Styles */
@media print {
  body * {
    visibility: hidden;
  }
  #printArea,
  #printArea * {
    visibility: visible;
  }
  #printArea {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    box-shadow: none !important;
    background: #fff !important;
  }
  .no-print {
    display: none !important;
  }
  @page {
    size: A4 portrait;
    margin: 12mm 18mm;
  }
}
