@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap");
:root {
  --white-color: #fff;
  --black-color: #000;
  --main-color: #005f00;
  --lighter-green: #00c503;
  --hover-color: #e5feeb;
}
/* ========================================
   CSS RESET & BASE STYLES
======================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #fff;
}
button {
  background: transparent;
  border: none;
}
nav {
  display: flex;
  align-items: center;
}
nav a,
.nav-btn {
  color: var(--lighter-green);
  text-decoration: none;
  font-size: 18px;
  margin: 0.5rem;
}
.nav-btn:hover,
nav a:hover {
  background: var(--main-color);
  color: var(--white-color);
  padding: 0.7rem;
  border-radius: 5px;
}
.service-content a,
.more-content a {
  display: block;
}
.service-content,
.more-content {
  position: absolute;
  display: none;
  min-width: 200px;
  background: var(--white-color);
}
.service-dropdown:hover .service-content,
.more-dropdown:hover .more-content {
  display: block;
}
.service-content a:hover,
.more-content a:hover {
  background: #00ab00;
  color: var(--white-color);
  padding: 5px;
  border-radius: 0px;
}
.header {
  max-width: 100%;
  width: 95%;
  margin: 0 auto;
  background: var(--white-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
.logo-icon {
  width: 40px;
  height: 32px;
}
.logo-parent {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.medcheck {
  text-decoration: none;
  font-size: 24px;
  letter-spacing: -0.03em;
  color: #1a1a1a !important;
  font-weight: 600;
}
.nav2 {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.dropdown,
.hamburger,
.more-dropdown,
.service-dropdown {
  position: relative;
  display: inline-block;
}
.dropdown img:nth-of-type(2) {
  position: absolute;
  top: 9px;
  left: 21px;
}
.dropdown img:nth-of-type(1) {
  border: 1.5px solid #e0e0e0;
  border-radius: 50px;
  padding: 3px;
}
.dropdown img {
  cursor: pointer;
}
/* Dropdown Box */
.notification {
  background: var(--white-color);
  width: 300px;
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: absolute;
  top: 70px;
  left: -140px;
  margin-top: 10px;
  /* Initially hidden */
  display: none;
  z-index: 100;
}
/* Notification items */
.notification .item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 6px;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border-bottom: 2px solid #00ab00;
  border-radius: 0px 10px 10px 10px;
}
.item:hover {
  background: #bcfdbd;
}
.notification .item img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.notification .item .info {
  flex: 1;
  margin-left: 10px;
}
.notification .item .info h5 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}
.notification .item .info p {
  margin: 3px 0;
  font-size: 12px;
  color: #4d4d4d;
}
.notification .item .info span {
  font-size: 11px;
  color: #999;
}
.notification .item a {
  text-decoration: none;
  font-size: 12px;
  color: #999;
  font-weight: 500;
  float: right;
}
.dropdown:hover .notification {
  display: block;
}
.dropdown-2 {
  position: relative;
}
.dropdown-content-1 a {
  display: block;
  text-decoration: none;
  color: #00c503;
  font-size: 18px;
  background-color: var(--white-color);
  flex: 1;
  letter-spacing: -0.03em;
  line-height: 28px;
  font-weight: 500;
}
.hamburger {
  display: none;
}
.dropdownbtn {
  background: transparent;
  border: none;
  cursor: pointer;
}
.dropdown-content-1 {
  display: none;
  position: absolute;
  top: 60px;
  right: -5px;
  background-color: #fff;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  width: 193px;
  height: 124px;
  text-align: right;
}
.link {
  padding: 5px 10px;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  padding: 5px 10px;
}
.dropdown-content-1 a:hover {
  background-color: #3e8e41;
  color: var(--white-color);
}
.dropdown-2:hover .dropdown-content-1 {
  display: block;
}
.dropdown:hover .dropbtn {
  background-color: #3e8e41;
}
.dropdown-content ul {
  display: none;
  width: 100%;
  position: absolute;
  right: -25px;
  top: 2rem;
  background-color: var(--white-color);
  min-width: 180px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}
.dropdown-content ul li {
  list-style-type: none;
}
.dropdown-content li a {
  text-decoration: none;
  color: var(--lighter-green);
  font-size: 18px;
}
.hamburger:hover .dropdown-content ul {
  display: block;
}
.menu a:hover {
  background: #007900;
  color: var(--white-color);
  width: 100%;
}
.menu {
  align-self: stretch;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  padding: 5px 10px;
}
.service {
  letter-spacing: -0.03em;
  line-height: 28px;
  font-weight: 500;
}
.hamburger img:hover,
.dropdown-content {
  display: block;
}
/*=======Backend profilePic, Bell, logout========*/

/* NEW ADDITION BELOW — keeps dropdown open even with gap */
/* Invisible hover bridge below the icon */
.dropdown::before {
  content: "";
  position: absolute;
  top: 100%; /* place directly under the dropdown trigger */
  left: 0;
  width: 100%;
  height: 100px; /* adjust this to match your gap size (e.g., 15–25px) */
  background: transparent;
}
/* Ensure the dropdown box appears above the hover bridge */
.dropdown:hover::before {
  z-index: 99;
}
#profilePic {
  width: 60px; /* fixed width */
  height: 60px; /* fixed height */
  object-fit: cover; /* crop instead of stretching */
  border-radius: 50%; /* makes it a circle */
  border: none; /* optional: add border */
}
/* hide by default */
.hidden {
  display: none;
}
/* last dropdown*/
/*Show dropdown on hover */
.dropdown-2:hover .dropdown-content-1 {
  display: block;
}
/* Hover bridge trick — invisible area keeps dropdown open */
.dropdown-2::after {
  content: "";
  position: absolute;
  top: 100%; /* directly below the dropdown button */
  left: 0;
  width: 100%;
  height: 100px; /* height of the invisible hover area */
  background: transparent;
}
/* Ensure hovering over the bridge area also keeps menu open */
.dropdown-2:hover::after {
  pointer-events: auto;
}
/* ========================================
   MAIN CONTENT STYLES
======================================== */
.form-aside-background img {
  min-width: 563px;
  max-width: 100vw;
  height: 563px;
  object-fit: cover;
}
.main-content {
  display: flex;
  flex-direction: row;
}
.main-content {
  flex: 1;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
}
.verify-section {
  max-width: 600px;
  margin: 2rem auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 25px;
  padding: 3rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}
.section-header {
  font-size: 30px;
  display: flex;
  justify-content: center;
  font-weight: 700;
  color: #003000;
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.verification-product-container {
  max-width: 100vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding-block: 3rem;
}
.verification-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  box-shadow: -3px 6px 37.3px rgba(94, 94, 94, 0.25);
  border-radius: 25px;
  background-color: #fff;
  width: 558px;
  max-width: 100%;
  padding-block: 3rem;
}
/* ========================================
   NAFDAC INPUT SECTION
======================================== */
.verification-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.input-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 25px;
  padding: 10px;
  transition: all 0.2s ease;
  max-width: 441px;
  max-width: 100%;
}
.input-wrapper:focus-within {
  border-color: #00c503;
  box-shadow: 0 0 0 3px rgba(0, 197, 3, 0.1);
  background: #fff;
}
.input-wrapper input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 1rem;
  color: #1a1a1a;
  width: 100%;
}
.input-wrapper input::placeholder {
  color: #999;
  font-size: 1rem;
}
.helper-text {
  color: #000;
  font-size: 16px;
  width: 340px;
}

.verify-button {
  background: #009200;
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  align-self: center;
  min-width: 441px;
}

.verify-button:hover {
  background: #007a00;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 146, 0, 0.3);
}

.verify-button:active {
  transform: translateY(0);
}
/* ========================================
   DIVIDER SECTION
======================================== */
.divider-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
}

.divider-line {
  width: 160px;
  height: 1px;
  background-color: #333;
}
.divider-text {
  color: #666;
  font-weight: 600;
  font-size: 1rem;
  padding: 0 0.5rem;
}
/* ========================================
   QR SCANNER SECTION
======================================== */
.qr-scanner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.qr-icon {
  width: 120px;
  height: 120px;
  opacity: 0.8;
}

.qr-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.camera-button {
  background: #009200;
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 441px;
}

.camera-button:hover {
  background: #009200;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 197, 3, 0.3);
}

.camera-button:active {
  transform: translateY(0);
}
/* ========================================
   Verification Popup from Backend
======================================== */

/* ===== Verification Modal (scoped) ===== */

.vfy-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 20px;
  font-family: "DM Sans", sans-serif;
  z-index: 1000;
  opacity: 0;
  transition: all 0.25s ease-in-out;
}
.vfy-modal.vfy-active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.vfy-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 15px;
}
.vfy-header button {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}
.vfy-body img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 15px;
}
.vfy-name {
  font-size: 18px;
  font-weight: 600;
  margin: 8px 0;
}
.vfy-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  margin: 6px 0;
}
.vfy-authentic {
  background: #e6f7ed;
  color: #0a7a3e;
}
.vfy-counterfeit {
  background: #fff3cd;
  color: #856404;
}
.vfy-line {
  font-size: 14px;
  margin: 4px 0;
}
.vfy-line strong {
  font-weight: 600;
}
.vfy-done {
  display: block;
  width: 100%;
  padding: 12px;
  background: #059e2e;
  color: #fff;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  margin-top: 15px;
  cursor: pointer;
  font-weight: 600;
}
.vfy-safety {
  background: #fff4e6;
  border-radius: 8px;
  padding: 12px;
  font-size: 13px;
  margin-top: 15px;
}
.vfy-safety strong {
  display: block;
  font-weight: 700;
  margin-bottom: 5px;
}
/* optional: overlay */
.vfy-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

/* ========================================
   FOOTER STYLES
======================================== */
.footer {
  max-width: 100%;
  background: var(--main-color);
  height: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 3rem 2rem;
}
.chevron-right {
  background: #99fcaf;
}
.logo a {
  font-size: 24px;
  text-decoration: none;
  color: var(--white-color);
}
.divider {
  width: 90%;
  background-color: #fff;
  height: 1px;
  opacity: 0.1;
  mix-blend-mode: normal;
  margin: 0 auto;
}
.footer-links {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 0;
  padding-block: 3rem;
}
.newsletter {
  flex-grow: 0.5;
  flex-shrink: 1;
  margin: 1rem;
}
.newsletter p {
  font-size: 20px;
  color: var(--white-color);
}
.input-container {
  background: var(--main-color);
  width: 320px;
  max-width: 100%;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #4caf50;
  margin-top: 3.4rem;
}
.input-container input {
  width: 100%;
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 10px;
  color: black;
  font-size: 16px;
}
input::placeholder {
  color: white;
  opacity: 0.9;
}
.btn {
  background: #90ee90;
  border: none;
  padding: 12px 20px;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  transition: background 0.3s;
}
.btn:hover {
  background: #76d976;
}
.btn svg {
  width: 16px;
  height: 16px;
  stroke: #025902;
  stroke-width: 2;
  fill: none;
}
.links h4 {
  color: #99fcaf;
  font-size: 18px;
}
.links ul li {
  list-style-type: none;
  margin-top: 1.5rem;
  width: 100%;
  font-size: 16px;
  letter-spacing: -0.03em;
  line-height: 24px;
  color: #fff;
  text-align: left;
  display: inline-block;
  cursor: pointer;
}
.links li a {
  text-decoration: none;
  color: var(--white-color) !important;
  font-size: 16px;
  white-space: nowrap;
  margin-inline-end: 10px;
}
.footer-more {
  order: 1;
}
.footer-more {
  order: 2;
}
.footer-services {
  order: 3;
}
.newsletter {
  order: 4;
}
.footer-bottom {
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  justify-content: space-between;
  padding-block: 5rem;
}
.footer-bottom a {
  color: var(--white-color);
  text-decoration: none;
}
.legal a {
  margin: 20px;
}
.socials a {
  margin: 10px;
}
.copyright {
  text-align: center;
  color: var(--white-color);
  font-size: 18px;
}
/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 1024px) {
  .hero-image {
    width: 45%;
    height: 500px;
  }

  .verify-section {
    margin-right: 50%;
    max-width: 500px;
  }

  .main-content {
    padding: 1.5rem;
  }
}
/* Mobile and tablet shared styles */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }
  .nav-menu {
    display: none;
  }
  .mobile-menu-container {
    display: block;
  }
  .form-aside-background img {
    display: none !important;
  }
  .verification-container {
    display: block;
    margin: 0 auto;
  }
  .divider-line {
    margin: 0 auto;
  }
  .helper-text {
    padding: 10px;
  }
  .header-actions {
    gap: 0.5rem;
  }
  /* Hide hero image on mobile/tablet */
  .hero-image {
    display: none;
  }
  .verification-product-container {
    padding-block: 4rem;
  }
  .section-header h1 {
    font-size: 2rem;
  }
  .verification-container {
    gap: 2rem;
  }
  .input-wrapper {
    margin: 0 auto;
    width: 540px;
  }

  .helper-text {
    font-size: 0.8rem;
  }
  .verify-button,
  .camera-button {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    min-width: 180px;
  }
  .qr-icon {
    width: 100px;
    height: 100px;
  }
  .qr-title {
    font-size: 1.125rem;
  }
  .nav-btn {
    display: none;
  }
  .group-item,
  .dropdown-2 {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .header {
    width: 95%;
    justify-content: space-between;
  }
  footer {
    padding: 2rem;
  }
  .logo {
    padding: 0rem;
  }
  .divider {
    display: none;
  }
  .footer-links {
    display: block;
  }
  .links ul li {
    list-style-type: none;
    margin-top: 0.5rem;
  }
  .newsletter {
    margin: 0rem;
    padding-block: 2rem;
  }
  .newsletter p {
    width: 139.6px;
    line-height: 28px;
  }
  .input-container {
    margin-top: 2rem;
  }
  .links h4 {
    padding-top: 1rem;
  }
  .footer-bottom {
    display: block;
    padding-block: 1rem;
  }
  .socials {
    display: block;
  }
  .legal {
    display: flex;
    white-space: nowrap;
    gap: 3rem;
  }
}
/* Screen reader only content */
@media (max-width: 480px) {
  .navbar {
    padding: 0.75rem;
  }
  .medcheck {
    font-size: 20px !important;
  }
  .main-content {
    padding: 0.75rem;
  }
  .verify-section {
    padding: 1.5rem;
    margin: 0.5rem auto;
  }
  .verification-form {
    margin: 5px;
  }
  .section-header h1 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }
  .form-aside-background img {
    display: none !important;
  }
  .verification-container {
    gap: 1.5rem;
  }
  .verification-container {
    box-shadow: none;
  }
  .input-wrapper {
    padding: 0.75rem 1rem;
  }
  .input-wrapper input::placeholder {
    font-size: 16px;
  }
  .helper-text {
    margin-left: 2rem;
  }
  .divider-section {
    gap: 0rem;
  }
  .qr-icon {
    width: 80px;
    height: 80px;
  }
  .qr-title {
    font-size: 1rem;
  }
  .footer-sections {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .legal a {
    margin: 10px;
  }
  .legal {
    gap: 1rem;
  }
  .notification-popup,
  .profile-menu-popup {
    width: 260px;
    right: -60px;
  }
}
@media (max-width: 374px) {
  .divider-line {
    width: 7.5rem;
  }
  .helper-text {
    margin-left: 0rem;
    padding: 5px;
    width: 100%;
  }
  .legal {
    gap: 0px;
  }
}
