/* ================================
   BDx LMS — Global Styles (Updated)
   ================================ */

/* ---- Base / Reset ---- */
html { scroll-behavior: smooth; }
* { box-sizing: border-box; }
img { max-width: 100%; height: auto; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  margin: 0;
  background-color: #f9f9f9;
  color: #333;
}

/* ======================
   NAVBAR (Landing Pages)
   ====================== */

.navbar {
  background-color: #67bed9; /* Requested color */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #032748; /* Dark for contrast */
  text-decoration: none;
}

/* Landing navbar links (scoped to .navbar) */
.navbar .nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.navbar .nav-links li a,
.navbar .nav-links a {
  text-decoration: none;
  color: #0b1220;            /* High contrast on #67bed9 */
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.25s ease, color 0.25s ease;
}

.navbar .nav-links li a:hover,
.navbar .nav-links a:hover,
.navbar .nav-links li a.active {
  background: rgba(255, 255, 255, 0.25);
  color: #0b1220;
}

/* Burger (landing) */
.burger {
  display: none;
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 2px;
}

.burger div {
  width: 20px;
  height: 2px;
  background-color: #0b1220; /* Visible over #67bed9 */
  margin: 5px;
  transition: all 0.3s ease;
}

/* Mobile dropdown panel (class toggled by JS) */
.nav-active {
  display: flex !important;
  flex-direction: column;
  background: #67bed9; /* match bar */
  position: absolute;
  top: 64px;
  right: 20px;
  left: 20px;
  border-radius: 10px;
  padding: 0.75rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

@media screen and (max-width: 768px) {
  .navbar .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .navbar .nav-links li { margin: 0.25rem 0; }

  .burger { display: block; }
}

/* =================
   HERO / HEADER
   ================= */

header {
  background: #2776c4;
  color: white;
  text-align: center;
  padding: 3rem 1rem;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
}

header .cta-button {
  display: inline-block;
  margin: 1rem 0.5rem 0;
  padding: 0.75rem 1.5rem;
  background: rgb(255, 255, 255);
  color: #2578cb;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s ease, color 0.3s ease;
}

header .cta-button.secondary {
  background: #004080;
  color: white;
}

header .cta-button:hover {
  background: #31b8b3;
  color: #072b2a;
}

/* =================
   SECTIONS
   ================= */

.features, .pricing, .subscribe, .benefits, .ai-section, .demo {
  padding: 4rem 1rem;
  text-align: center;
}

.feature-grid, .pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature, .plan {
  background: rgb(223, 246, 235);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.plan h3 { margin-top: 0; }

.plan .price {
  font-size: 1.8rem;
  color: #004080;
  margin: 0.5rem 0;
}

.plan-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.1rem;
  background: #004080;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.25s ease;
}

.plan-btn:hover { background: #003366; }

/* =================
   FORMS
   ================= */

form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

form input, form select, form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
}

form button {
  background: #004080;
  color: white;
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.25s ease;
}

form button:hover { background: #1976d3; }

.success { color: green; font-weight: bold; }

/* =================
   FOOTER
   ================= */

footer {
  background: #f0f0f0;
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  color: #555;
}

/* =================
   LIST UTILITIES
   ================= */

/* Remove bullet points from list items globally */
ul {
  list-style: none;
  padding-left: 0;
}

/* Add light background colors to pricing options */
.plan:nth-child(1) { background-color: #f0f9ff; }
.plan:nth-child(2) { background-color: #f5f5f5; }
.plan:nth-child(3) { background-color: #fff8f0; }

/* Alternate background colors for 'Why Choose BDx LMS' feature list */
.benefits ul li {
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}
.benefits ul li:nth-child(odd)  { background-color: #eef6ff; }
.benefits ul li:nth-child(even) { background-color: #f9f9f9; }

/* ==========================================
   APP NAV (Internal dashboards/pages ONLY)
   Scoped so it won't affect the landing navbar
   ========================================== */

nav { margin-bottom: 10px; }

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.5rem;
  flex-wrap: wrap;
}

/* Primary app bar */
.primary-nav {
  background-color: #004080;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.facility-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.facility-logo {
  height: 40px;
  width: auto;
  border-radius: 6px;
  background: white;
  padding: 3px;
}

.facility-name {
  font-weight: bold;
  font-size: 1.2rem;
  color: #fff;
}

/* App-level nav links — SCOPED */
.primary-nav .nav-links,
.operations-nav .nav-links,
.admin-panel .nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

/* This was previously global; now scoped to primary/operations/admin only */
.primary-nav .nav-links li a {
  color: #fefefe;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  transition: background 0.3s ease, color 0.3s ease;
}
.primary-nav .nav-links li a:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Secondary tiers */
.operations-nav {
  background-color: #f0f4f8;
  border-top: 2px solid #d9d9d9;
}

.admin-panel {
  background-color: #f0f5ff;
  border-top: 2px solid #c7d7f2;
}

.operations-nav .nav-title,
.admin-panel .nav-title {
  font-weight: bold;
  color: #004080;
  margin-bottom: 0.5rem;
}

.operations-nav .nav-links li a,
.admin-panel .nav-links li a {
  color: #004080;
  background-color: #e9f2ff;
  border-radius: 6px;
  padding: 6px 14px;
  transition: background 0.3s ease, color 0.3s ease;
}

.operations-nav .nav-links li a:hover,
.admin-panel .nav-links li a:hover {
  background-color: #d0e7ff;
}

/* App nav responsiveness */
@media (max-width: 768px) {
  .nav-container { flex-direction: column; align-items: flex-start; }

  .primary-nav .nav-links,
  .operations-nav .nav-links,
  .admin-panel .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }

  .facility-logo { height: 35px; }
}

/* ===========================
   FINAL VISIBILITY OVERRIDES
   (Safety net for edge cases)
   =========================== */

.navbar { background: #67bed9 !important; }

.navbar .nav-links li a,
.navbar .nav-links a,
.nav-active a,
.nav-active li a {
  color: #0b1220 !important; /* Ensure readable on landing navbar */
}

.navbar .nav-links li a:hover,
.navbar .nav-links a:hover {
  background: rgba(255, 255, 255, .25) !important;
  color: #0b1220 !important;
}

.burger div { background: #0b1220 !important; }
