/* Font lokal/sistem agar UI tetap konsisten tanpa Google Fonts / CDN */
:root {
  --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Semibold", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: "Times New Roman", Times, Georgia, serif;
  --font-script: "Segoe Script", "Apple Chancery", "Comic Sans MS", cursive;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

html, body,
.swal2-popup,
.navbar, .btn, .form-control, .card, .modal, .dropdown-menu, table, input, select, textarea,
.note-editor, .note-editable {
  font-family: var(--font-sans);
}

/* Jangan timpa font ikon Font Awesome */
.fas, .far, .fal, .fab, .fa-solid, .fa-regular, .fa-brands, .fa,
[class^="fa-"], [class*=" fa-"] {
  font-family: var(--fa-style-family, "Font Awesome 6 Free") !important;
}
.fab, .fa-brands {
  font-family: "Font Awesome 6 Brands" !important;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6,
.brand-title, .school-name, .hero-title {
  font-family: var(--font-display) !important;
}

/* Nama font CDN yang sering muncul di CSS lama → fallback lokal */
body, .swal2-popup {
  font-family: "Inter", "Poppins", "Plus Jakarta Sans", var(--font-sans);
}
h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", "Inter", var(--font-display);
}
code, kbd, pre, .font-monospace {
  font-family: var(--font-mono) !important;
}
