/* Makki Masjid Portal - Responsive REM Typography & Clean Light Mode CSS */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

/* Fluid rem font scaling on root html element */
html {
  font-size: 100%; /* Default 16px rem base */
  font-family: var(--font-sans);
  background-color: #f8fafc;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
}

/* Responsive REM scaling on larger screens */
@media (min-width: 640px) {
  html {
    font-size: 102.5%; /* Scales 1rem slightly for readability on tablets */
  }
}

@media (min-width: 1024px) {
  html {
    font-size: 105%; /* Scales 1rem for desktop displays */
  }
}

body {
  font-size: 0.875rem; /* 14px default base */
  line-height: 1.5;
}

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

/* Form controls focus states */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #047857 !important;
  box-shadow: 0 0 0 0.1875rem rgba(4, 120, 87, 0.1) !important;
}

/* Modal animations */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.99); }
  to { opacity: 1; transform: scale(1); }
}

.animate-fade-in {
  animation: fadeIn 0.15s ease-out forwards;
}
