/* EPAS v2.0.0 — Clean White + Royal Blue + Sarabun Typography */
html, body {
  font-family: 'Sarabun', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f8fafc;
  color: #334155;
  -webkit-font-smoothing: antialiased;
}

input, button, select, textarea, table, th, td {
  font-family: 'Sarabun', sans-serif;
}

/* Preserve FontAwesome 6 Free icon font families */
.fa, .fas, .far, .fab, .fa-solid, .fa-regular, .fa-brands {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace !important;
}

[v-cloak] {
  display: none !important;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.card-shadow {
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
}

.landing-hero-bg {
  background-color: #f8fafc;
}

.landing-title {
  font-size: clamp(0.84rem, 3.35vw, 2rem);
  line-height: 1.3;
  white-space: nowrap;
}

.portal-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 10px 24px -8px rgba(15, 23, 42, 0.2);
}
.portal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 32px -10px rgba(15, 23, 42, 0.28);
}
.portal-card:active {
  transform: translateY(-1px);
}
.portal-card-staff {
  background-color: #3730a3;
}
.portal-card-staff:hover {
  background-color: #312e81;
}
.portal-card-student {
  background-color: #0369a1;
}
.portal-card-student:hover {
  background-color: #075985;
}

/* Authentic Microsoft Excel Mini Grid Preview */
.excel-bar {
  background-color: #217346;
}
.excel-grid th, .excel-grid td {
  border: 1px solid #cbd5e1;
  padding: 5px 9px;
}
.excel-col-letters th {
  background-color: #f1f5f9;
  color: #475569;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 3px 8px;
}
.excel-row-num {
  background-color: #f1f5f9 !important;
  color: #64748b !important;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-align: center;
  width: 32px;
}
.excel-header-row td:not(.excel-row-num) {
  background-color: #e8f5e9;
}

/* Interactive PIBR 8-Color English Wheel */
.wheel-petal {
  transition: opacity 0.18s ease, transform 0.18s ease;
  transform-origin: 300px 300px;
}
.wheel-petal:hover {
  opacity: 0.92;
  transform: scale(1.018);
}
.wheel-petal-active {
  transform: scale(1.028);
}

.loader {
  border: 3px solid #e2e8f0;
  border-radius: 50%;
  border-top: 3px solid #2563eb;
  width: 24px;
  height: 24px;
  animation: epasSpin 0.85s linear infinite;
}
.loader-lg { border-width: 4px; width: 46px; height: 46px; }
@keyframes epasSpin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* SweetAlert2 EPAS Theme */
.swal2-popup {
  font-family: 'Sarabun', sans-serif !important;
  border-radius: 1.25rem !important;
  padding: 1.75rem 1.5rem !important;
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.16) !important;
}
.swal2-title { font-family: 'Sarabun', sans-serif !important; font-size: 1.25rem !important; font-weight: 700 !important; color: #1e293b !important; }
.swal2-html-container { font-family: 'Sarabun', sans-serif !important; font-size: 0.94rem !important; color: #475569 !important; }
.swal2-confirm, .swal2-cancel { font-family: 'Sarabun', sans-serif !important; border-radius: 0.75rem !important; font-weight: 600 !important; padding: 0.6rem 1.4rem !important; }

@media print {
  .no-print, nav, footer { display: none !important; }
  body { background: #fff !important; }
  @page { size: A4 landscape; margin: 8mm 10mm; }
}
