/* ===== Theme Variables ===== */
/* ===== Theme Variables ===== */
:root[data-theme="dark"] {
  --bg: #0d1420;
  --surface: #141d2c;
  --surface-alt: #1b2635;
  --text: #e7ecf3;
  --text-muted: #9aa7bb;
  --border: #263449;
  --navy: #0a1626;
  --navy-2: #101d33;
  --accent: #17a398;      /* brighter teal for contrast on dark */
  --accent-hover: #1ec2b4;
  --hero-text: #f2f5f9;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

:root[data-theme="dark"] {
  --bg: #0d1420;
  --surface: #141d2c;
  --surface-alt: #1b2635;
  --text: #e7ecf3;
  --text-muted: #9aa7bb;
  --border: #263449;
  --navy: #0a1626;
  --navy-2: #101d33;
  --accent: #17a398;      /* brighter teal for contrast on dark */
  --accent-hover: #1ec2b4;
  --hero-text: #f2f5f9;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

* { transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* ===== Navbar ===== */
.navbar {
  background: var(--navy);
  padding: 0.9rem 0;
}
.navbar-brand { font-size: 1.4rem; letter-spacing: -0.5px; }
.brand-mac { color: #ffffff; font-weight: 800; }
.brand-probe { color: var(--accent); font-weight: 800; }

.btn-outline-brand {
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
}
.btn-outline-brand:hover { background: var(--accent); color: #fff; }

/* ===== Theme Toggle Button ===== */
.theme-toggle-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  cursor: pointer;
}
.theme-toggle-btn:hover { background: var(--accent); border-color: var(--accent); }
#iconMoon { display: none; }
:root[data-theme="dark"] #iconSun { display: none; }
:root[data-theme="dark"] #iconMoon { display: block; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--hero-text);
}
.hero-title { font-size: 2.6rem; }
.hero-sub { color: rgba(255,255,255,0.75); }
.badge-pill {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: rgba(15, 122, 114, 0.2);
  border: 1px solid var(--accent);
  color: var(--hero-text);
  font-size: 0.8rem;
  letter-spacing: 0.3px;
}

.search-box { max-width: 600px; }
.search-box .form-control {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-brand {
  background: var(--accent);
  border: none;
  color: #ffffff;
  font-weight: 600;
}
.btn-brand:hover { background: var(--accent-hover); }

/* ===== Results ===== */
.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.result-card .card-title { color: var(--text); }
.badge-type {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 6px;
  background: var(--surface-alt);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
}

.alert { border-radius: 10px; }

/* ===== Footer ===== */
.footer-text { color: var(--text-muted); }


/* Nav links */
.nav-link { color: rgba(255,255,255) !important; }
.nav-link:hover { color: var(--accent) !important; }

/* Footer */
.footer-main { background: var(--surface); border-top: 1px solid var(--border); }
.footer-heading { color: var(--text); font-weight: 700; font-size: 0.9rem; }
.footer-link { color: var(--text-muted); text-decoration: none; }
.footer-link:hover { color: var(--accent); }
.footer-divider { border-color: var(--border); }

/* Accordion (FAQ page) theme support */
.accordion-item { background: var(--surface); border-color: var(--border); }
.accordion-button { background: var(--surface); color: var(--text); }
.accordion-button:not(.collapsed) { background: var(--surface-alt); color: var(--accent); }
.accordion-body { color: var(--text-muted); }

/* ===== Custom Mobile Toggler ===== */
.custom-toggler {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 42px;
}
.custom-toggler .toggler-bar {
  display: block;
  height: 2px;
  width: 100%;
  background-color: #ffffff;
  border-radius: 2px;
}
.custom-toggler:focus { box-shadow: none; outline: none; }

/* ===== Mobile Dropdown Menu Fix ===== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--navy-2);
    border-radius: 10px;
    margin-top: 12px;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .navbar-nav .nav-link {
    color: #ffffff !important;
    padding: 0.65rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 500;
  }
  .navbar-nav .nav-link:last-of-type { border-bottom: none; }
  .navbar-nav .nav-link:hover { color: var(--accent) !important; }

  .navbar-nav .btn-outline-brand {
    display: inline-block;
    margin: 0.75rem 0.5rem 0.5rem;
  }

  .navbar-nav .theme-toggle-btn {
    margin: 0.25rem 0.5rem 0;
  }
}
