:root {
  --primary: #14B8A6;
  --secondary: #0F766E;
  --accent: #F59E0B;
  --text: #1F2937;
  --background: #F3F4F6;
  --gray-100: #F9FAFB;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --red-500: #EF4444;
  --green-500: #10B981;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: var(--background);
  color: var(--text);
  padding: 2rem;
}

.container {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
    padding-top: 6rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

h2, h3 {
  margin-bottom: 1rem;
  color: var(--primary);
}

button, .btn {
  padding: 0.6rem 1.2rem;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-success, button[type="submit"] {
  background-color: var(--green-500);
  color: white;
}

.btn-success:hover, button[type="submit"]:hover {
  background-color: #0e9e76;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"],
input[type="tel"],
select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  background: white;
  transition: border-color 0.2s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

th, td {
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--gray-200);
  text-align: left;
  font-size: 0.95rem;
}

th {
  background: var(--gray-100);
  font-weight: 600;
  color: var(--text);
}

tr:hover {
  background: var(--gray-100);
}

.message {
  margin-top: -0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--red-500);
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #323232;
  color: white;
  padding: 0.8rem 1.4rem;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
}

@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  table {
    font-size: 0.85rem;
  }

  th, td {
    padding: 0.7rem 1rem;
  }
}



.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal {
  background: white;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  text-align: center;
}

.spinner {
  border: 4px solid #e0f2fc;
  border-top: 4px solid #0F766E;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 0.9s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.modal-icon {
  font-size: 3rem;
  color: var(--green-500);
  margin-bottom: 1rem;
}

.hidden {
  display: none !important;
}

.modal-icon svg {
  width: 60px;
  height: 60px;
  stroke: var(--green-500);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  animation: scaleUp 0.3s ease-out forwards;
}

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: strokeCircle 0.6s ease-out forwards;
}

.checkmark-check {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: strokeCheck 0.4s 0.6s ease-out forwards;
}

@keyframes strokeCircle {
  to { stroke-dashoffset: 0; }
}

@keyframes strokeCheck {
  to { stroke-dashoffset: 0; }
}

@keyframes scaleUp {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-icon.error {
  color: var(--red-500);
  font-size: 2.5rem;
}

.modal-icon.success {
  color: var(--green-500);
  font-size: 2.5rem;
}

/* ===== Improved Header Section ===== */
.page-header {
  text-align: center;
  margin-bottom: 2rem;
}

.page-header h2 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ===== Form Spacing & Grouping ===== */
#signup-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Grouped checkboxes styling */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.checkbox-group label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.4;
}

/* Proper spacing for the register button */
button[type="submit"] {
  margin-top: 1.5rem;
}

/* Modern link styling */
a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  text-decoration: underline;
}

/* Login prompt below form */
.login-link {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

@media (max-width: 480px) {
  .page-header h2 {
    font-size: 1.5rem;
  }

  .page-header p {
    font-size: 0.95rem;
  }

  .checkbox-group label {
    font-size: 0.9rem;
  }
}

/* ===== Navbar Styling ===== */
/* Navigation container */
/* Nav container */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background-color: white;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 999;
}

/* RxNaija name */
.navbar-brand .brand-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

/* Toggle icon (☰) */
.menu-toggle {
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  display: none; /* hidden by default */
}

/* Nav links */
.navbar-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.navbar-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s;
}

.navbar-links a:hover {
  color: var(--primary);
}

/* RESPONSIVE BEHAVIOR */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
  }

  .menu-toggle {
    display: block;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    z-index: 20;
  }

  .navbar-links {
    position: absolute;
    top: 100%;
    right: 2rem;
    background-color: white;
    border: 1px solid var(--gray-200);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    width: max-content;
    min-width: 160px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(-10px);
    border-radius: 8px;
  }

  .navbar-links.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}





input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear,
input[type="password"]::-webkit-contacts-auto-fill-button,
input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-clear-button,
input[type="password"]::-webkit-reveal {
  display: none !important;
  appearance: none;
}




.footer-content {
  max-width: 960px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.footer {
  text-align: center;
  margin-top: 3rem;
  padding: 1rem 0;
  font-size: 0.85rem;
  color: var(--gray-300);
  border-top: 1px solid var(--gray-200);
}



.footer-links a:hover {
  text-decoration: underline;
}

.footer-links .divider {
  padding: 0 0.25rem;
  font-weight: 400;
  opacity: 0.7;
  user-select: none;
  line-height: 1;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  position: relative;
}

.footer-links a {
  color: var(--primary);
  text-decoration: none;
  position: relative;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* ✅ Add | between items using pseudo-element */
.footer-links a:not(:last-child)::after {
  content: "|";
  position: absolute;
  right: -0.6rem;
  color: var(--primary);
  opacity: 0.6;
}





.footer-note {
  color: var(--gray-300);
  font-size: 0.85rem;
}

.form-box {
  max-width: 500px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

#register-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  background-color: var(--green-500);
  color: white;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

#register-btn:hover:not(:disabled) {
  background-color: #0e9e76;
}

#register-btn:disabled {
  background-color: var(--gray-300);
  cursor: not-allowed;
  color: white;
}

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  width: 100%;
  padding-right: 2.5rem; /* space for button */
}

.toggle-password {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--gray-300);
}
