/* =============================================
   Global + Navigation (Bootstrap 3 overrides)
   ============================================= */

/* Global: push all content below fixed navbar */
body {
  padding-top: 64px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #F7F8FA;
  color: #0F172A;
}

/* ── Navbar shell ── */
#menu.navbar {
  min-height: 64px;
  padding: 0;
  border: none;
  border-radius: 0;
  margin-bottom: 0;
}

#menu.navbar-default {
  background-color: #035828;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

/* ── Brand ── */
#menu a.navbar-brand {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  text-transform: none;
  letter-spacing: -0.3px;
  padding: 20px 10px 20px 0;
  line-height: 24px;
}
#menu a.navbar-brand:hover { color: #d1fae5; }

/* ── Nav links ── */
#menu.navbar-default .navbar-nav > li > a {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  text-transform: capitalize;
  padding: 22px 16px;
  border-radius: 0;
  margin: 0;
  position: relative;
  transition: color 150ms ease, background-color 150ms ease;
}
#menu.navbar-default .navbar-nav > li > a:hover,
#menu.navbar-default .navbar-nav > li > a:focus {
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.12);
}

/* Animated underline on hover */
#menu.navbar-default .navbar-nav > li > a::after {
  display: block;
  position: absolute;
  left: 16px;
  bottom: 10px;
  width: 0;
  height: 2px;
  background: #86efac;
  content: "";
  transition: width 0.22s ease;
  border-radius: 2px;
}
#menu.navbar-default .navbar-nav > li > a:hover::after {
  width: calc(100% - 32px);
}

/* Active state */
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  background-color: rgba(0, 0, 0, 0.12);
  color: #ffffff;
}
.navbar-default .navbar-nav > .active > a::after {
  width: calc(100% - 32px) !important;
}

/* .nav-produce-btn styles moved to navigation.css */

/* ── Mobile hamburger ── */
.navbar-default .navbar-toggle {
  border-color: rgba(255, 255, 255, 0.35);
  margin: 14px 15px;
}
.navbar-default .navbar-toggle .icon-bar { background-color: #fff; }
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
  background-color: rgba(0, 0, 0, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Mobile collapse */
@media (max-width: 767px) {
  #menu .navbar-collapse {
    background-color: #024e24;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 0;
  }
  #menu.navbar-default .navbar-nav > li > a::after { display: none; }
  #menu.navbar-default .navbar-nav > li > a { padding: 12px 20px; }
}

/* ── Popup (used by navigation.jsx) ── */
.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0,0,0,0.04);
  padding: 32px;
  max-width: 480px;
  width: calc(100% - 32px);
  max-height: 85vh;
  overflow-y: auto;
  z-index: 1050;
}
.popup h2 {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #0F172A;
  margin: 0 0 20px;
  text-align: center;
  text-transform: none;
  letter-spacing: 0;
}
.popup h3 {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #64748B;
  margin: 16px 0 8px;
  text-transform: none;
}
.popup h4 {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #16A34A;
  text-align: center;
  margin: 0 0 16px;
}
.popup button {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 22px;
  background: #16A34A;
  color: #fff;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: background-color 150ms ease;
  margin-top: 8px;
  display: inline-block;
}
.popup button:hover { background: #15803D; }
.popup input[type="file"] {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 13px;
  color: #475569;
  background: #F7F8FA;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 10px 14px;
  width: 100%;
  margin-bottom: 8px;
}
.popup input[type="submit"] {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 24px;
  background: #16A34A;
  color: #fff;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: background-color 150ms;
  display: block;
  margin: 8px auto 0;
}
.popup input[type="submit"]:hover { background: #15803D; }
.scan-options {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
