/* =============================================
   ROOT VARIABLES
   ============================================= */

:root {
  /* Brand palette */
  --brand-navy: #1a1a2e;
  --brand-navy-mid: #16213e;
  --brand-navy-deep: #0f3460;
  --brand-cyan: #00d2ff;
  --brand-cyan-bright: #00f5ff;
  --brand-orange: #f7971e;
  --brand-violet: #a29bfe;
  --brand-green: #2ecc71;
  --brand-purple: #6f42c1;
  --brand-teal: #20c997;

  /* Navbar sizing (single source of truth — used for both the navbar height
     and the content offset below, so they can't drift out of sync).
     64/60/56px matches the LinkedIn-style navbar skin actually in use in
     _Layout.cshtml (.navbar-custom.linkedin-navbar). */
  --navbar-height: 64px;
  --navbar-height-md: 60px;
  --navbar-height-sm: 56px;

  /* Height tokens for the plain/base .navbar-custom skin (no linkedin-navbar
     modifier) — only relevant if a layout ever uses that skin alone. */
  --navbar-height-base-sm: 22px;

  /* =========================================
     THEME TOKENS — default values = DARK theme.
     Overridden under [data-bs-theme="light"] below.
     Toggle by setting data-bs-theme="dark"|"light" on <html>.
     ========================================= */
  --page-bg: #615E50; /* Mossy olive with earthy brown undertones [BEHR Grounded T27-01] */
  --page-color: #FFFFFF;
  --page-secondary-color: rgba(255, 255, 255, 0.65);

  --table-color: #32CD32;
  --table-striped-color: #32CD32;
  --table-hover-color: #7CFC00;
  --table-header-color: #FFFFFF;

  --card-bg: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.14);
  --card-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.25);
  --card-hover-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.35);

  /* A step lighter than --card-bg, for a nested tile inside a card
     (e.g. stat tiles on the Import Standard page) */
  --surface-subtle-bg: rgba(255, 255, 255, 0.05);
  --surface-subtle-hover-bg: rgba(255, 255, 255, 0.09);
  --surface-subtle-number-color: var(--page-color);

  --input-bg: rgba(255, 255, 255, 0.06);
  --input-border: rgba(255, 255, 255, 0.2);
  --input-disabled-bg: rgba(255, 255, 255, 0.03);
  --input-icon-color: rgba(255, 255, 255, 0.45);

  --warning-bg: rgba(251, 191, 36, 0.12);
  --warning-border: rgba(251, 191, 36, 0.4);
  --warning-color: #fcd34d;

  --navbar-bg: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-mid) 50%, var(--brand-navy-deep) 100%);
  --navbar-border: transparent;
  --navbar-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  --navbar-brand-color: var(--brand-cyan);
  --navbar-brand-badge-bg: linear-gradient(135deg, var(--brand-cyan), var(--brand-navy-deep));
  --navbar-link-color: rgba(255, 255, 255, 0.85);
  --navbar-link-icon-color: rgba(255, 255, 255, 0.85);
  --navbar-link-hover-color: #ffffff;
  --navbar-link-hover-bg: rgba(255, 255, 255, 0.1);
  --navbar-dropdown-bg: var(--brand-navy);
  --navbar-dropdown-border: transparent;
  --navbar-dropdown-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  --navbar-dropdown-item-color: rgba(255, 255, 255, 0.85);
  --navbar-dropdown-item-hover-bg: rgba(255, 255, 255, 0.1);
  --navbar-dropdown-item-hover-color: #ffffff;
  --navbar-dropdown-header-color: rgba(255, 255, 255, 0.5);
  --navbar-divider-color: rgba(255, 255, 255, 0.08);
  --navbar-toggler-border: transparent;

  --footer-bg: var(--brand-navy);
  --footer-color: rgba(255, 255, 255, 0.6);
  --footer-border: rgba(255, 255, 255, 0.05);
  --footer-link: var(--brand-cyan);
  --footer-link-hover: var(--brand-cyan-bright);

  --checkbox-border: rgba(255, 255, 255, 0.65);
  --checkbox-bg: rgba(255, 255, 255, 0.08);
  --checkbox-checked-bg: var(--brand-cyan);
  --checkbox-checked-border: var(--brand-cyan);
  --checkbox-focus-ring: rgba(0, 210, 255, 0.35);

  /* Bootstrap's own vars follow the same tokens so built-in components
     (cards, modals, form controls) react to the theme too */
  --bs-body-bg: var(--page-bg);
  --bs-body-color: var(--page-color);
  --bs-secondary-color: var(--page-secondary-color);
}

/* LIGHT THEME — overrides every token above */
[data-bs-theme="light"] {
  --page-bg: #F8F8FF; /* GhostWhite */
  --page-color: #1a1a2e;
  --page-secondary-color: #6c757d;

  --table-color: #212529;
  --table-striped-color: #212529;
  --table-hover-color: #0a66c2;
  --table-header-color: #1a1a2e;

  --card-bg: #ffffff;
  --card-border: #e5e7eb;
  --card-shadow: 0 0.25rem 0.75rem rgba(15, 23, 42, 0.06);
  --card-hover-shadow: 0 0.5rem 1.25rem rgba(15, 23, 42, 0.12);

  --surface-subtle-bg: #f7fafc;
  --surface-subtle-hover-bg: #edf2f7;
  --surface-subtle-number-color: #2d3748;

  --input-bg: #ffffff;
  --input-border: #e2e8f0;
  --input-disabled-bg: #f7fafc;
  --input-icon-color: #a0aec0;

  --warning-bg: #fffbeb;
  --warning-border: #fbd38d;
  --warning-color: #975a16;

  --navbar-bg: #ffffff;
  --navbar-border: #e5e7eb;
  --navbar-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --navbar-brand-color: #0a66c2;
  --navbar-brand-badge-bg: linear-gradient(135deg, #0a66c2, #004182);
  --navbar-link-color: #475569;
  --navbar-link-icon-color: #64748b;
  --navbar-link-hover-color: #0a66c2;
  --navbar-link-hover-bg: #eaf4ff;
  --navbar-dropdown-bg: #ffffff;
  --navbar-dropdown-border: #e2e8f0;
  --navbar-dropdown-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
  --navbar-dropdown-item-color: #334155;
  --navbar-dropdown-item-hover-bg: #eaf4ff;
  --navbar-dropdown-item-hover-color: #0a66c2;
  --navbar-dropdown-header-color: #64748b;
  --navbar-divider-color: #e5e7eb;
  --navbar-toggler-border: #d1d5db;

  --footer-bg: #ffffff;
  --footer-color: #64748b;
  --footer-border: #e5e7eb;
  --footer-link: #0a66c2;
  --footer-link-hover: #004182;

  --checkbox-border: #64748b;
  --checkbox-bg: #ffffff;
  --checkbox-checked-bg: #0a66c2;
  --checkbox-checked-border: #0a66c2;
  --checkbox-focus-ring: rgba(10, 102, 194, 0.25);

  --bs-body-bg: var(--page-bg);
  --bs-body-color: var(--page-color);
  --bs-secondary-color: var(--page-secondary-color);
}


/* =============================================
   HTML, BODY, MAIN AND LAYOUT
   ============================================= */

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  font-weight: bold;
  transition: background-color 0.2s ease, color 0.2s ease;
  /* NOTE: bolding the entire body affects tables, muted text, and form
     labels too. If default-weight body copy is ever wanted back, scope
     this to headings/nav instead of `body`. */
}

/* Content area below the fixed navbar. flex: 1 0 auto lets it grow to
   push the footer to the bottom of the viewport on short pages. */
body > .container-fluid {
  flex: 1 0 auto;
  margin-top: var(--navbar-height);
  padding: 1rem 1.5rem 1.5rem 1.5rem !important;
  width: 100%;
}

@media (max-width: 992px) {
  body > .container-fluid {
    margin-top: var(--navbar-height-md);
    padding: 0.85rem 0.85rem 1.2rem 0.85rem !important;
  }
}

@media (max-width: 576px) {
  body > .container-fluid {
    margin-top: var(--navbar-height-sm);
    padding: 0.75rem 0.65rem 1rem 0.65rem !important;
  }
}

main {
  padding: 0.5rem 0.25rem;
}

.card-body {
  padding: 1.25rem !important;
}

/* Cards react to the theme instead of staying a fixed white/gray regardless
   of dark or light mode — a translucent "raised panel" on dark, a clean
   white card on light. */
.card {
  --bs-card-bg: var(--card-bg);
  border-radius: 0.75rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

/* Scoped to .border-0/.shadow-sm specifically (rather than a blanket .card
   rule) so this doesn't fight component-specific cards elsewhere — like
   .import-card — that already define their own border/shadow design.
   !important is needed here only to beat Bootstrap's .border-0/.shadow-sm
   utility classes, which are themselves !important. */
.card.border-0 {
  border: 1px solid var(--card-border) !important;
}

.card.shadow-sm {
  box-shadow: var(--card-shadow) !important;
}

  .card.border-0:hover,
  .card.shadow-sm:hover {
    box-shadow: var(--card-hover-shadow) !important;
  }

.table td, .table th {
  padding: 0.5rem 0.75rem !important;
}

/* Data rows follow the active theme (lime on dark, dark text on light) —
   avoids plain white on the dark theme's body background. Headers use a
   separate token so they stay legible against both themes. */
.table {
  --bs-table-color: var(--table-color);
  --bs-table-striped-color: var(--table-striped-color);
  --bs-table-hover-color: var(--table-hover-color);
}

  .table thead {
    color: var(--table-header-color);
  }

.form-group, .mb-3 {
  margin-bottom: 0.75rem !important;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.75rem !important;
}

p {
  margin-bottom: 0.5rem !important;
}

.sticky-bottom-nav {
  position: sticky;
  bottom: 0;
  z-index: 10;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Checkboxes/radios — default Bootstrap styling is too faint against both
   the dark theme's olive body and light-on-white cards. Adds a visible
   border + tinted unchecked background, with a themed checked color. */
.form-check-input {
  width: 1.15em;
  height: 1.15em;
  margin-top: 0.2em;
  border: 2px solid var(--checkbox-border);
  background-color: var(--checkbox-bg);
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

  .form-check-input:checked {
    background-color: var(--checkbox-checked-bg);
    border-color: var(--checkbox-checked-border);
  }

  .form-check-input:focus {
    border-color: var(--checkbox-checked-border);
    box-shadow: 0 0 0 0.2rem var(--checkbox-focus-ring);
  }

  .form-check-input:indeterminate {
    background-color: var(--checkbox-checked-bg);
    border-color: var(--checkbox-checked-border);
  }


/* =============================================
   FOOTER
   ============================================= */

.footer-custom {
  flex-shrink: 0;
  margin-top: auto;
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
  color: var(--footer-color) !important;
  padding: 0.3rem 0;
  font-size: 0.7rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

  .footer-custom a {
    color: var(--footer-link) !important;
    text-decoration: none;
  }

    .footer-custom a:hover {
      color: var(--footer-link-hover) !important;
      text-decoration: underline;
    }


/* =========
   NAVBAR
   ========= */

.navbar-custom {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-mid) 50%, var(--brand-navy-deep) 100%) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  padding: 0 !important;
  min-height: var(--navbar-height) !important;
  flex-shrink: 0;
  margin: 0 !important;
  border: none;
  display: flex;
  align-items: center !important;
}

  .navbar-custom .container-fluid {
    display: flex;
    align-items: center !important;
    padding: 0 0.6rem !important;
    min-height: 24px !important;
    margin: 0 !important;
  }

  .navbar-custom > .container-fluid > .navbar-collapse > .navbar-nav > .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
  }

  .navbar-custom .navbar-brand {
    font-weight: 700;
    font-size: 0.85rem !important;
    color: var(--brand-cyan) !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 24px;
    display: flex;
    align-items: center;
    height: 24px;
  }

    .navbar-custom .navbar-brand i {
      color: var(--brand-orange);
      margin-right: 3px;
      font-size: 0.75rem;
    }

/* Only apply flex layout on large screens (when navbar is expanded) */
@media (min-width: 992px) {
  .navbar-custom .navbar-collapse {
    display: flex;
    align-items: center !important;
  }
}

.navbar-custom .navbar-nav {
  display: flex;
  align-items: center !important;
  height: 24px;
  position: relative !important;
}

.navbar-custom .nav-item {
  display: flex;
  align-items: center;
  height: 24px;
}

.navbar-custom .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  padding: 0 0.4rem !important;
  border-radius: 3px;
  font-size: 0.82rem !important;
  transition: all 0.2s ease;
  line-height: 24px;
  display: flex;
  align-items: center;
  height: 24px;
  margin: 0;
}

  .navbar-custom .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1);
  }

  .navbar-custom .nav-link i {
    margin-right: 3px;
    font-size: 0.7rem;
    width: 14px;
    text-align: center;
  }

.navbar-custom .dropdown-toggle {
  display: flex;
  align-items: center;
  height: 24px;
  line-height: 24px;
  padding: 0 0.3rem !important;
}

  .navbar-custom .dropdown-toggle::after {
    color: rgba(255, 255, 255, 0.5);
    margin-left: 2px;
    font-size: 0.4rem;
  }

.navbar-custom .navbar-toggler {
  padding: 0 3px !important;
  font-size: 0.6rem;
  border: none;
  display: flex;
  align-items: center;
  height: 24px;
}

.navbar-custom .navbar-toggler-icon {
  width: 14px;
  height: 14px;
}

.navbar-custom .dropdown-menu {
  background: var(--brand-navy);
  border: none;
  border-radius: 6px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  padding: 0.15rem;
  min-width: 180px !important;
  position: absolute !important;
  top: 100% !important;
  bottom: auto !important;
  left: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  transform: none !important;
  transition: opacity 0.12s ease, visibility 0.12s ease;
}

  .navbar-custom .dropdown-menu[data-bs-popper] {
    top: 100% !important;
    bottom: auto !important;
    transform: none !important;
  }

  .navbar-custom .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 0;
    width: 100%;
    height: 8px;
  }

.navbar-custom .dropdown {
  position: relative !important;
}

.navbar-custom .dropdown-menu .dropdown-item {
  color: rgba(255, 255, 255, 0.85);
  padding: 0.12rem 0.5rem;
  border-radius: 4px;
  font-size: 0.78rem !important;
  transition: all 0.2s ease;
  line-height: 1.4;
}

  .navbar-custom .dropdown-menu .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
  }

  .navbar-custom .dropdown-menu .dropdown-item i {
    width: 14px;
    text-align: center;
    margin-right: 4px;
    font-size: 0.7rem;
  }

.navbar-custom .dropdown-header {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.6rem !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.12rem 0.5rem;
}

.navbar-custom .dropdown-divider {
  border-color: rgba(255, 255, 255, 0.08);
  margin: 0.05rem 0;
}

.navbar-custom .nav-item.dropdown,
.navbar-custom .dropend {
  position: relative;
}

/* Hover corridor to avoid accidental close while moving to submenu */
.navbar-custom .dropend::after {
  content: "";
  position: absolute;
  top: 0;
  right: -12px;
  width: 14px;
  height: 100%;
}

.navbar-custom .dropend .dropdown-menu {
  position: absolute !important;
  top: 0 !important;
  left: 100% !important;
  bottom: auto !important;
  transform: none !important;
  margin-left: 2px !important;
}

.navbar-custom .dropend > .dropdown-toggle::after {
  content: "";
  display: none;
}

.navbar-custom .dropend .dropdown-item {
  padding-left: 0.5rem;
}

.navbar-custom .dropend > .dropdown-toggle {
  color: var(--brand-violet) !important;
}

  .navbar-custom .dropend > .dropdown-toggle:hover {
    color: #ffffff !important;
    background: rgba(162, 155, 254, 0.15);
  }

.navbar-custom .dropend .dropdown-menu .dropdown-item {
  color: rgba(255, 255, 255, 0.85) !important;
}

  .navbar-custom .dropend .dropdown-menu .dropdown-item:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1);
  }

/* RESPONSIVE */
@media (max-width: 992px) {
  .navbar-custom .container-fluid {
    padding-left: 0.6rem !important;
    padding-right: 0.6rem !important;
  }

  .navbar-custom .navbar-nav {
    padding-top: 0.2rem;
    align-items: flex-start !important;
    height: auto !important;
  }

  .navbar-custom .nav-link {
    padding: 0.1rem 0.3rem !important;
    font-size: 0.75rem !important;
    line-height: 1.4;
    height: auto !important;
  }

  .navbar-custom .nav-item {
    height: auto !important;
  }
}

@media (max-width: 576px) {
  .navbar-custom {
    min-height: var(--navbar-height-base-sm) !important;
  }

    .navbar-custom .container-fluid {
      min-height: var(--navbar-height-base-sm) !important;
      padding: 0 0.4rem !important;
    }

    .navbar-custom .navbar-brand {
      font-size: 0.7rem !important;
      line-height: var(--navbar-height-base-sm);
      height: var(--navbar-height-base-sm);
    }

      .navbar-custom .navbar-brand i {
        font-size: 0.6rem;
      }

    .navbar-custom .nav-link {
      font-size: 0.7rem !important;
      padding: 0.05rem 0.2rem !important;
      line-height: 1.3;
      height: auto !important;
    }

      .navbar-custom .nav-link i {
        font-size: 0.55rem;
        width: 10px;
      }

    .navbar-custom .dropdown-toggle {
      height: auto;
      line-height: 1.3;
    }

    .navbar-custom .nav-item {
      height: auto !important;
    }

    .navbar-custom .dropdown-menu {
      min-width: 130px !important;
    }

    .navbar-custom .navbar-toggler-icon {
      width: 12px;
      height: 12px;
    }

    .navbar-custom .navbar-toggler {
      height: var(--navbar-height-base-sm) !important;
    }

  .card-body {
    padding: 0.75rem !important;
  }

  .table td, .table th {
    padding: 0.3rem 0.4rem !important;
    font-size: 0.75rem !important;
  }

  h1 {
    font-size: 1.4rem !important;
  }

  h2 {
    font-size: 1.2rem !important;
  }

  h3 {
    font-size: 1.05rem !important;
  }
}


/* LinkedIn-style navbar skin — this is the modifier class actually applied
   in _Layout.cshtml (`navbar-custom linkedin-navbar`). It overrides the
   dark base skin above via higher selector specificity; the base skin still
   supplies shared behavior (dropend submenu positioning, hover corridors). */

.navbar.navbar-custom.linkedin-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1080;
  background: var(--navbar-bg) !important;
  border-bottom: 1px solid var(--navbar-border);
  box-shadow: var(--navbar-shadow);
  min-height: var(--navbar-height) !important;
  padding: 0 !important;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

  .navbar.navbar-custom.linkedin-navbar .linkedin-navbar-container {
    min-height: var(--navbar-height) !important;
    padding: 0.55rem 1.1rem !important;
    gap: 0.75rem;
  }

  .navbar.navbar-custom.linkedin-navbar .linkedin-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--navbar-brand-color) !important;
    font-size: 1.15rem !important;
    font-weight: 700;
    text-decoration: none;
    line-height: 1;
    height: auto;
  }

  .navbar.navbar-custom.linkedin-navbar .linkedin-brand-badge {
    width: 2rem;
    height: 2rem;
    border-radius: 0.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--navbar-brand-badge-bg);
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(10, 102, 194, 0.25);
  }

  .navbar.navbar-custom.linkedin-navbar .linkedin-brand i {
    color: #ffffff !important;
    margin: 0;
    width: auto;
    font-size: 0.95rem;
  }

  .navbar.navbar-custom.linkedin-navbar .navbar-toggler {
    border: 1px solid var(--navbar-toggler-border);
    border-radius: 0.6rem;
    padding: 0.35rem 0.5rem !important;
    height: auto;
  }

  .navbar.navbar-custom.linkedin-navbar .navbar-collapse {
    align-items: center;
  }

  .navbar.navbar-custom.linkedin-navbar .navbar-nav {
    gap: 0.1rem;
    height: auto;
  }

  .navbar.navbar-custom.linkedin-navbar .nav-item {
    height: auto;
  }

  .navbar.navbar-custom.linkedin-navbar .nav-link,
  .navbar.navbar-custom.linkedin-navbar .dropdown-toggle {
    color: var(--navbar-link-color) !important;
    font-weight: 600;
    padding: 0.5rem 0.75rem !important;
    border-radius: 0.6rem;
    font-size: 0.9rem !important;
    line-height: 1.2;
    height: auto;
  }

    .navbar.navbar-custom.linkedin-navbar .nav-link i,
    .navbar.navbar-custom.linkedin-navbar .dropdown-toggle i {
      color: var(--navbar-link-icon-color);
      margin-right: 0.4rem;
      font-size: 0.9rem;
      width: 1rem;
    }

    .navbar.navbar-custom.linkedin-navbar .nav-link:hover,
    .navbar.navbar-custom.linkedin-navbar .dropdown-toggle:hover,
    .navbar.navbar-custom.linkedin-navbar .nav-link:focus,
    .navbar.navbar-custom.linkedin-navbar .dropdown-toggle:focus,
    .navbar.navbar-custom.linkedin-navbar .dropdown.show > .dropdown-toggle {
      color: var(--navbar-link-hover-color) !important;
      background: var(--navbar-link-hover-bg);
    }

      .navbar.navbar-custom.linkedin-navbar .nav-link:hover i,
      .navbar.navbar-custom.linkedin-navbar .dropdown-toggle:hover i,
      .navbar.navbar-custom.linkedin-navbar .dropdown.show > .dropdown-toggle i {
        color: var(--navbar-link-hover-color);
      }

  .navbar.navbar-custom.linkedin-navbar .dropdown-menu {
    background: var(--navbar-dropdown-bg);
    border: 1px solid var(--navbar-dropdown-border);
    border-radius: 0.9rem;
    padding: 0.45rem;
    margin-top: 0.4rem;
    box-shadow: var(--navbar-dropdown-shadow);
    min-width: 230px !important;
  }

  .navbar.navbar-custom.linkedin-navbar .dropdown-item {
    border-radius: 0.6rem;
    padding: 0.45rem 0.65rem;
    color: var(--navbar-dropdown-item-color);
    font-size: 0.88rem !important;
  }

  .navbar.navbar-custom.linkedin-navbar .dropend .dropdown-menu .dropdown-item {
    color: var(--navbar-dropdown-item-color) !important;
  }

    .navbar.navbar-custom.linkedin-navbar .dropend .dropdown-menu .dropdown-item:hover,
    .navbar.navbar-custom.linkedin-navbar .dropend .dropdown-menu .dropdown-item:focus {
      color: var(--navbar-dropdown-item-hover-color) !important;
    }

  .navbar.navbar-custom.linkedin-navbar .dropdown-item i {
    color: var(--navbar-link-icon-color);
  }

  .navbar.navbar-custom.linkedin-navbar .dropdown-item:hover,
  .navbar.navbar-custom.linkedin-navbar .dropdown-item:focus {
    background: var(--navbar-dropdown-item-hover-bg);
    color: var(--navbar-dropdown-item-hover-color);
  }

  .navbar.navbar-custom.linkedin-navbar .dropdown-header {
    color: var(--navbar-dropdown-header-color) !important;
    font-size: 0.72rem !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .navbar.navbar-custom.linkedin-navbar .dropdown-divider {
    border-top-color: var(--navbar-divider-color);
    margin: 0.35rem 0;
  }

  .navbar.navbar-custom.linkedin-navbar .dropend .dropdown-menu {
    left: calc(100% + 0.35rem) !important;
    top: -0.45rem !important;
  }

  .navbar.navbar-custom.linkedin-navbar .dropend > .dropdown-toggle::after {
    margin-left: auto;
  }

@media (max-width: 992px) {
  .navbar.navbar-custom.linkedin-navbar .linkedin-navbar-container {
    min-height: var(--navbar-height-md) !important;
    padding: 0.55rem 0.85rem !important;
  }

  .navbar.navbar-custom.linkedin-navbar .navbar-collapse {
    background: var(--navbar-bg);
    border: 1px solid var(--navbar-border);
    border-radius: 0.85rem;
    margin-top: 0.6rem;
    padding: 0.6rem;
    box-shadow: var(--navbar-dropdown-shadow);
  }

  .navbar.navbar-custom.linkedin-navbar .navbar-nav {
    width: 100%;
    gap: 0.2rem;
  }

  .navbar.navbar-custom.linkedin-navbar .nav-link,
  .navbar.navbar-custom.linkedin-navbar .dropdown-toggle {
    width: 100%;
    justify-content: flex-start;
  }

  .navbar.navbar-custom.linkedin-navbar .dropdown-menu,
  .navbar.navbar-custom.linkedin-navbar .dropend .dropdown-menu,
  .navbar.navbar-custom.linkedin-navbar .dropdown-menu[data-bs-popper] {
    position: static !important;
    transform: none !important;
    margin-top: 0.35rem !important;
    margin-left: 0 !important;
    border-radius: 0.7rem;
    box-shadow: inset 0 0 0 1px var(--navbar-divider-color);
  }
}

@media (max-width: 576px) {
  .navbar.navbar-custom.linkedin-navbar .linkedin-brand {
    font-size: 1.02rem !important;
  }

  .navbar.navbar-custom.linkedin-navbar .linkedin-search .form-control {
    min-height: 2.05rem;
    font-size: 0.85rem;
  }
}


/* ============================
   INDEX HERO TITLE STYLES
   ============================ */

.hero-title-wrapper {
  position: relative;
  display: inline-block;
}

  .hero-title-wrapper .hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
  }

  .hero-title-wrapper .hero-content {
    position: relative;
    z-index: 1;
  }

  .hero-title-wrapper .hero-subtitle {
    display: inline-block;
    font-size: 0.45em;
    letter-spacing: 3px;
    font-weight: 300;
    position: relative;
    padding: 0 20px;
    margin-top: 0.75rem;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    color: inherit !important;
  }

    /* Individual subtitle spans */
    .hero-title-wrapper .hero-subtitle .subtitle-light {
      font-weight: 700;
      color: #FF0000 !important;
      -webkit-text-fill-color: #FF0000 !important;
      background: none !important;
      /* NOTE: pure red on the olive (#615E50) body background sits close
         to the WCAG AA contrast floor — worth checking with a contrast
         tool if this text carries real meaning. */
    }

    .hero-title-wrapper .hero-subtitle .subtitle-bold {
      font-weight: 700;
      background: linear-gradient(135deg, #00d2ff, #3a7bd5);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      padding: 0 4px;
    }
    .hero-title-wrapper .hero-subtitle .subtitle-light-end {
      font-weight: 700;
      color: #FFD700 !important;
      -webkit-text-fill-color: #FFD700 !important;
      background: none !important;
    }

  .hero-title-wrapper .hero-underline {
    display: block;
    margin: 8px auto 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--brand-cyan), transparent);
    border-radius: 2px;
  }

/* Hero title responsive */
@media (max-width: 768px) {
  .hero-title-wrapper .hero-subtitle {
    font-size: 0.4em;
    letter-spacing: 2px;
    padding: 0 10px;
  }

  .hero-title-wrapper .hero-bg-glow {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 576px) {
  .hero-title-wrapper .hero-subtitle {
    font-size: 0.35em;
    letter-spacing: 1px;
    padding: 0 5px;
  }

  .hero-title-wrapper .hero-underline {
    width: 50px;
    height: 2px;
  }

  .hero-title-wrapper .hero-bg-glow {
    width: 80px;
    height: 80px;
  }
}

.hero-description {
  color: var(--page-color);
  font-weight: 700;
}


/* ============================
   UTILITY / BRAND COLOR CLASSES
   ============================ */

.text-red {
  color: #FF0000 !important;
}

.text-blue {
  color: #3333FF !important;
}


.text-gold {
  color: #FFD700 !important;
}

.text-black {
  color: #000000 !important;
}

.color-brand-dark {
  color: var(--brand-navy);
}

.color-brand-cyan {
  color: var(--brand-cyan);
}

.color-brand-orange {
  color: var(--brand-orange);
}

.color-brand-violet {
  color: var(--brand-violet);
}

.color-brand-green {
  color: var(--brand-green);
}

.font-weight-bold {
  font-weight: 700 !important;
}

.text-purple {
  color: var(--brand-purple);
}

.bg-purple {
  background-color: var(--brand-purple);
}

.border-purple {
  border-color: var(--brand-purple) !important;
}

.bg-purple.bg-opacity-10 {
  background-color: rgba(111, 66, 193, 0.1);
}

.text-teal {
  color: var(--brand-teal);
}

.bg-teal {
  background-color: var(--brand-teal);
}

.border-teal {
  border-color: var(--brand-teal) !important;
}

.bg-teal.bg-opacity-10 {
  background-color: rgba(32, 201, 151, 0.1);
}


/* =====================
   DASHBOARD STYLES
   ===================== */

.dashboard-title-xs {
  font-size: 0.7rem;
}

.dashboard-body-sm {
  font-size: 0.85rem;
}

.dashboard-muted-xs {
  font-size: 0.7rem;
}

.dashboard-header-sm {
  font-size: 0.9rem;
}

.dashboard-card-icon {
  font-size: 1.5rem;
}

.dashboard-list-item {
  font-size: 0.85rem;
}

.dashboard-list-note {
  font-size: 0.7rem;
}

.dashboard-badge-xs {
  font-size: 0.7rem;
}

.dashboard-badge-chip {
  display: inline-block;
  min-width: 80px;
  text-align: center;
}

.dashboard-scroll-sm {
  max-height: 60px;
  overflow-y: auto;
  font-size: 0.7rem;
}

.dashboard-truncate-100 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}

.dashboard-truncate-80 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80px;
}


/* ============================================
   SHARED STYLES
   ============================================ */

.table-header-gray,
.table-header-light {
  background-color: #f8f9fa;
}

.actions-col {
  width: 1%;
  white-space: nowrap;
}

.actions-cell {
  white-space: nowrap;
  min-width: 150px;
  padding-right: 0.75rem;
}

.nowrap-actions {
  flex-wrap: nowrap;
}

.status-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  min-width: 80px;
  display: inline-block;
  text-align: center;
}

.status-Implemented {
  background-color: #28a745;
  color: white;
}

.status-PartiallyImplemented {
  background-color: #ffc107;
  color: #212529;
}

.status-NotImplemented {
  background-color: #dc3545;
  color: white;
}

.status-NotApplicable {
  background-color: #6c757d;
  color: white;
}

.status-Planned {
  background-color: #17a2b8;
  color: white;
}

.status-UnderReview {
  background-color: var(--brand-purple);
  color: white;
}

.font-07 {
  font-size: 0.7rem;
}

.font-075 {
  font-size: 0.75rem;
}

.font-08 {
  font-size: 0.8rem;
}

.font-085 {
  font-size: 0.85rem;
}

.font-09 {
  font-size: 0.9rem;
}

.font-125 {
  font-size: 1.25rem;
}

.font-15 {
  font-size: 1.5rem;
}

.font-25 {
  font-size: 2.5rem;
}

.font-35 {
  font-size: 3.5rem;
}

.font-4 {
  font-size: 4rem;
}

.min-h-18 {
  min-height: 18px;
}

.min-h-20 {
  min-height: 20px;
}

.max-h-60-scroll {
  max-height: 60px;
  overflow-y: auto;
}

.z-1100 {
  z-index: 1100;
}

.display-none {
  display: none;
}

.progress-h-8 {
  height: 8px;
}

.progress-h-20 {
  height: 20px;
}

.progress-h-25 {
  height: 25px;
}

.borderless-table-head th,
.borderless-table-head td {
  white-space: nowrap;
}

.card-theme-hover {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

  .card-theme-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
  }

.link-card-hover:hover .card-theme-hover {
  border-color: var(--bs-primary) !important;
}


/* ===============================
   IMPORT STANDARD PAGE STYLES
   =============================== */

.import-container {
  max-width: 900px;
  margin: 0 auto;
}

.import-card {
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  background: var(--card-bg);
}

  .import-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-hover-shadow);
  }

.import-header {
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-mid) 100%);
  padding: 1.5rem 2rem;
  color: white;
}

  .import-header h4 {
    font-weight: 600;
    margin: 0;
  }

  .import-header i {
    opacity: 0.9;
  }

.import-body {
  padding: 2rem;
}

/* Feature Badges */
.feature-badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0.125rem;
}

  .feature-badge.clause {
    background-color: #ebf4ff;
    color: #2b6cb0;
  }

  .feature-badge.control {
    background-color: #f0fff4;
    color: #276749;
  }

  .feature-badge.annex {
    background-color: #faf5ff;
    color: #6b46c1;
  }

/* Alert Custom */
.alert-import {
  border-radius: 10px;
  border: none;
}

  .alert-import.alert-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
  }

  .alert-import.alert-danger {
    background: linear-gradient(135deg, #fc8181 0%, #e53e3e 100%);
    color: white;
  }

  .alert-import.alert-info {
    background: linear-gradient(135deg, #63b3ed 0%, #4299e1 100%);
    color: white;
  }

  .alert-import .btn-close {
    filter: brightness(0) invert(1);
  }

.alert-warning-custom {
  background-color: var(--warning-bg);
  border: 1px solid var(--warning-border);
  color: var(--warning-color);
  border-radius: 10px;
  padding: 0.75rem 1rem;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat-item {
  background: var(--surface-subtle-bg);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
  transition: all 0.2s;
}

  .stat-item:hover {
    background: var(--surface-subtle-hover-bg);
    transform: translateY(-2px);
  }

  .stat-item .number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--surface-subtle-number-color);
  }

  .stat-item .label {
    font-size: 0.8rem;
    color: var(--bs-secondary-color);
    margin-top: 0.25rem;
  }

  .stat-item .icon {
    font-size: 1.5rem;
    color: #667eea;
    margin-bottom: 0.5rem;
  }

/* Standard Select */
.standard-select-wrapper {
  position: relative;
}

  .standard-select-wrapper select {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: 2px solid var(--input-border);
    transition: all 0.3s;
    background-color: var(--input-bg);
    color: var(--page-color);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
  }

    .standard-select-wrapper select:focus {
      border-color: #667eea;
      box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
    }

    .standard-select-wrapper select:disabled {
      background-color: var(--input-disabled-bg);
      cursor: not-allowed;
    }

  .standard-select-wrapper::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--input-icon-color);
    pointer-events: none;
  }

/* Import Button */
.btn-import {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 10px;
  padding: 0.75rem 2.5rem;
  font-weight: 600;
  transition: all 0.3s;
  color: white;
  min-width: 180px;
  position: relative;
  overflow: hidden;
}

  .btn-import:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    color: white;
  }

  .btn-import:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }

  .btn-import.loading {
    pointer-events: none;
    opacity: 0.8;
  }

  .btn-import .spinner-border {
    width: 1.2rem;
    height: 1.2rem;
    border-width: 0.15rem;
  }

/* Import Progress */
.import-progress {
  display: none;
  margin-top: 1.5rem;
}

  .import-progress.show {
    display: block;
  }

.progress {
  height: 8px;
  border-radius: 10px;
  background-color: #edf2f7;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  width: 0%;
  transition: width 0.3s ease;
}

/* Responsive Import Styles */
@media (max-width: 768px) {
  .import-header {
    padding: 1.25rem 1.5rem;
  }

  .import-body {
    padding: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.75rem;
  }

  .stat-item .number {
    font-size: 1.25rem;
  }

  .btn-import {
    min-width: 140px;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .import-header {
    padding: 1rem 1.25rem;
  }

    .import-header h4 {
      font-size: 1.1rem;
    }

  .import-body {
    padding: 1rem;
  }

  .feature-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .stat-item {
    padding: 0.75rem;
  }

    .stat-item .number {
      font-size: 1.1rem;
    }

    .stat-item .icon {
      font-size: 1.2rem;
      margin-bottom: 0.25rem;
    }

  .btn-import {
    min-width: 100%;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .standard-select-wrapper select {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }
}


/* =============================================
   AUTH PAGES (Login, etc.)
   ============================================= */

.auth-shell {
  position: relative;
  min-height: calc(100vh - var(--navbar-height) - 4rem);
  display: flex;
  align-items: center;
  overflow: hidden;
}

  .auth-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 640px;
    height: 640px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.14) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
  }

.auth-card {
  position: relative;
  z-index: 1;
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  box-shadow: var(--card-hover-shadow);
  background: var(--card-bg);
  overflow: hidden;
}

/* Reuses the same accent gradient as the navbar brand badge (cyan->navy in
   dark theme, blue->dark-blue in light theme) so the login header/button
   read as "on brand" in either theme instead of going flat white in light
   mode, which a plain --navbar-bg reuse would have done. */
.auth-header {
  background: var(--navbar-brand-badge-bg);
  padding: 2rem 1.5rem 1.75rem;
  text-align: center;
  color: #ffffff;
}

  .auth-header h4 {
    font-weight: 700;
    margin-top: 0.75rem;
    margin-bottom: 0;
  }

  .auth-header small {
    display: block;
    margin-top: 0.25rem;
    color: rgba(255, 255, 255, 0.85);
  }

.auth-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  font-size: 1.4rem;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.auth-body {
  padding: 2rem 1.75rem;
}

  .auth-body .form-floating > .form-control {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--page-color);
  }

    .auth-body .form-floating > .form-control:focus {
      border-color: var(--brand-cyan);
      box-shadow: 0 0 0 0.2rem var(--checkbox-focus-ring);
    }

  .auth-body .form-floating > label {
    color: var(--bs-secondary-color);
  }

.btn-auth {
  background: var(--navbar-brand-badge-bg);
  border: none;
  color: #ffffff;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: 0.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

  .btn-auth:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    filter: brightness(1.08);
  }

  .btn-auth:active {
    transform: translateY(0);
  }

.auth-footer {
  background: transparent;
  border-top: 1px solid var(--card-border);
  padding: 1rem;
}

@media (max-width: 576px) {
  .auth-header {
    padding: 1.5rem 1rem 1.25rem;
  }

  .auth-body {
    padding: 1.5rem 1.25rem;
  }

  .auth-glow {
    width: 400px;
    height: 400px;
  }
}