/* Override navbar colors - apply on all pages (not just those with data-bs-theme) */
.navbar,
:root[data-bs-theme=light] .navbar,
:root[data-bs-theme=dark] .navbar {
  --bs-navbar-color: #606261 !important;
  --bs-navbar-hover-color: #C0392B !important;
  --bs-navbar-active-color: #C0392B !important;
}

.nav-link,
:root[data-bs-theme=light] .nav-link,
:root[data-bs-theme=dark] .nav-link {
  color: #606261 !important;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active,
:root[data-bs-theme=light] .nav-link:hover,
:root[data-bs-theme=light] .nav-link:focus,
:root[data-bs-theme=light] .nav-link.active,
:root[data-bs-theme=dark] .nav-link:hover,
:root[data-bs-theme=dark] .nav-link:focus,
:root[data-bs-theme=dark] .nav-link.active {
  color: #C0392B !important;
}

/* Dropdown menu styles */
.dropdown-menu {
  --bs-dropdown-link-color: #606261 !important;
  --bs-dropdown-link-hover-color: #C0392B !important;
  --bs-dropdown-link-hover-bg: rgba(192, 57, 43, 0.1) !important;
  --bs-dropdown-link-active-color: #C0392B !important;
  --bs-dropdown-link-active-bg: rgba(192, 57, 43, 0.1) !important;
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active {
  color: #C0392B !important;
  background-color: rgba(192, 57, 43, 0.1) !important;
}

/* Custom color overrides */
:root[data-bs-theme=light],
:root[data-bs-theme=dark] {
    --bs-primary: #C0392B !important;
    --bs-primary-rgb: 192, 57, 43 !important;
}

/* Button styles */
.btn-primary {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #a33225 !important;
    border-color: #a33225 !important;
    color: #fff !important;
}

.btn-outline-primary {
    color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--bs-primary) !important;
    color: #fff !important;
}

/* Link styles */
a {
    color: var(--bs-primary);
}

a:hover {
    color: #a33225;
}

/* Navbar styles */
.navbar-nav .nav-link.active {
    color: var(--bs-primary) !important;
}

/* Button overrides */
.btn-success,
a.btn-success,
button.btn-success {
  background-color: #C0392B !important;
  border-color: #C0392B !important;
  color: #fff !important;
}

.btn-success:hover,
a.btn-success:hover,
button.btn-success:hover {
  background-color: #a33225 !important;
  border-color: #a33225 !important;
}

/* Breadcrumb positioning fix - Updated 2025-01-27 */
.breadcrumb {
  position: relative;
  z-index: 1;
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Ensure breadcrumbs don't overlap with fixed header */
@media (max-width: 991.98px) {
  .breadcrumb {
    margin-top: 1rem;
  }
}

/* Cache busting comment - Updated 2025-01-27 */ 