html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Nunito', sans-serif;
  background: #FAFAFA;
  color: #4b5156;
  font-size: 16px;
  line-height: 1.6;
}

/* Navbar */
.navbar { position: fixed; top: 0; width: 100%; background-color: #ffffff; border-bottom: 1px solid #e0e0e0; z-index: 999; }
.navbar-container { display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; flex-wrap: nowrap; }
.nav-logo { display: flex; align-items: center; gap: 1rem; font-weight: bold; font-size: 1.2rem; color: #2c3e50; }
.nav-logo img { max-height: 50px; width: auto; height: auto; border-radius: 0; background: transparent; padding: 0; object-fit: contain; }
.nav-toggle { display: none; font-size: 1.5rem; background: none; border: none; cursor: pointer; }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { text-decoration: none; color: #2c3e50; font-weight: 600; padding: 8px 12px; font-size: 1rem; }
.nav-links a:hover { color: #eb796f; }
.nav-links .active { border-bottom: 2px solid #eb796f; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .navbar-container { flex-wrap: nowrap; }
  .nav-links { position: absolute; top: 100%; left: 0; width: 100%; flex-direction: column; display: none; background: white; padding: 1rem 2rem; border-top: 1px solid #e0e0e0; }
  .nav-links.show { display: flex; }

  /* ================================== */
  /* === FIX FOR DARK MODE DROPDOWN === */
  /* This targets the dropdown menu ONLY on mobile when dark mode is active */
  .dark-mode .nav-links {
    background-color: #34495e; /* Sets a dark background */
    border-top-color: #2c3e50; /* Sets a matching dark border */
  }
  /* ================================== */
}

/* Layout */
.page-content { max-width: 1200px; margin: 96px auto 0; padding: 20px; }

/* Dark mode */
.dark-mode { background-color: #2c3e50; color: #ffffff; }
.dark-mode .navbar { background-color: #34495e; border-color: #2c3e50; }
.dark-mode .nav-logo, .dark-mode .nav-links a { color: #ffffff; }
.dark-mode .nav-links .active { border-bottom: 2px solid #9ecbff; }

/* Dark mode toggle */
.dark-mode-toggle { position: fixed; bottom: 20px; right: 20px; padding: 10px; border: none; background-color: transparent; color: #eb796f; font-size: 14px; cursor: pointer; z-index: 1000; }

/* Footer */
.site-footer { background: #f7f7f7; padding: 24px 0; margin-top: 24px; text-align: center; border-top: 1px solid #e0e0e0; }
.footer-logos { display: flex; justify-content: center; align-items: center; gap: 32px; margin-bottom: 12px; }
.footer-logos img { max-height: 40px; width: auto; }
.site-footer p { margin: 0; color: #777; font-size: 14px; }

.dark-mode .site-footer { background: #34495e; border-top-color: #2c3e50; }
.dark-mode .site-footer p { color: #ddd; }

/* Login card styles (scoped) */
.login-container { max-w: 550px; margin: 80px auto 0; background-color: #fff; box-shadow: 2px 2px 13px -4px rgba(0, 0, 0, 0.21); padding: 20px; border-radius: 8px; }
.header-bar { background-color: #3f4750; padding: 20px; color: #fff; border-radius: 8px 8px 0 0; margin: -20px -20px 20px -20px; text-align: center; }
.header-bar h1 { margin: 0; font-size: 1.5rem; }
.card-body label { display: block; margin-bottom: 5px; font-weight: 600; color: #2c3e50; }
.card-body input[type="text"], .card-body input[type="password"] { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; box-sizing: border-box; }
.card-body input[type="text"]:focus, .card-body input[type="password"]:focus { outline: none; border-color: #eb796f; }
.button { background-color: #eb796f; color: white; padding: 12px 20px; border: none; border-radius: 4px; cursor: pointer; font-size: 16px; width: 100%; margin-top: 10px; }
.button:hover { background-color: #d86b60; }
.error { color: #e74c3c; font-size: 12px; margin-top: 5px; display: block; }
.dark-mode .header-bar { background-color: #2c3e50; }
.dark-mode .card-body label { color: #ffffff; }
.dark-mode .card-body input[type="text"], .dark-mode .card-body input[type="password"] { background-color: #34495e; border-color: #2c3e50; color: #ffffff; }
.dark-mode .card-body input[type="text"]:focus, .dark-mode .card-body input[type="password"]:focus { border-color: #9ecbff; }
.dark-mode .login-container { background-color: #34495e; color: #ffffff; }

/* Login password toggle */
.password-field-container { position: relative; display: inline-block; width: 100%; }
.password-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: 18px; color: #666; padding: 0; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.password-toggle:hover { color: #333; }
.dark-mode .password-toggle { color: #ccc; }
.dark-mode .password-toggle:hover { color: #fff; }
.card-body input[type="text"], .card-body input[type="password"] { padding-right: 40px; }

/* Generic dark mode helpers for Tailwind-like utility classes on content pages */
.dark-mode .bg-white, .dark-mode .bg-gray-50, .dark-mode .bg-gray-100, .dark-mode .bg-gray-200 { background-color: #1f2b38 !important; }
.dark-mode .text-gray-800, .dark-mode .text-gray-900, .dark-mode .text-gray-700, .dark-mode .text-gray-600, .dark-mode .text-gray-500 { color: #e6edf3 !important; }
.dark-mode .shadow, .dark-mode .shadow-md, .dark-mode .shadow-lg { box-shadow: 0 2px 10px rgba(0,0,0,0.4) !important; }
.dark-mode .border, .dark-mode .border-gray-100, .dark-mode .border-gray-200, .dark-mode .border-gray-300 { border-color: #46627f !important; }
