/*
  FCE(T) Gombe brand theme override.
  Loaded after core.css / demo.css so it wins the cascade without touching
  the vendored Sneat build. Palette drawn from the FCE(T) Gombe crest.
*/
:root,
html {
  --fce-primary: #1b7a3d;
  --fce-primary-dark: #145c2e;
  --fce-primary-light: #e6f4ea;
  --fce-accent: #c8102e;

  --bs-primary: var(--fce-primary);
  --bs-primary-rgb: 27, 122, 61;
  --bs-link-color: var(--fce-primary);
  --bs-link-color-rgb: 27, 122, 61;
  --bs-link-hover-color: var(--fce-primary-dark);
  --bs-link-hover-color-rgb: 20, 92, 46;
}

/* Buttons */
.btn-primary {
  background-color: var(--fce-primary) !important;
  border-color: var(--fce-primary) !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
  background-color: var(--fce-primary-dark) !important;
  border-color: var(--fce-primary-dark) !important;
}
.btn-outline-primary {
  color: var(--fce-primary) !important;
  border-color: var(--fce-primary) !important;
}
.btn-outline-primary:hover,
.btn-outline-primary:active {
  background-color: var(--fce-primary) !important;
  border-color: var(--fce-primary) !important;
}
.btn-label-primary,
.badge.bg-label-primary {
  background-color: var(--fce-primary-light) !important;
  color: var(--fce-primary-dark) !important;
}

/* Text / background utilities */
.text-primary {
  color: var(--fce-primary) !important;
}
.bg-primary {
  background-color: var(--fce-primary) !important;
}
.border-primary {
  border-color: var(--fce-primary) !important;
}

/* Links */
a:not(.btn):not(.dropdown-item):not(.nav-link):not(.footer-link) {
  color: var(--fce-primary);
}
a:not(.btn):not(.dropdown-item):not(.nav-link):not(.footer-link):hover {
  color: var(--fce-primary-dark);
}

/* Form focus states */
.form-control:focus,
.form-select:focus {
  border-color: var(--fce-primary) !important;
  box-shadow: 0 0 0 0.15rem rgba(27, 122, 61, 0.2) !important;
}
.form-check-input:checked,
.form-check-input:active {
  background-color: var(--fce-primary) !important;
  border-color: var(--fce-primary) !important;
}
.form-check-input:focus {
  box-shadow: 0 0 0 0.15rem rgba(27, 122, 61, 0.2) !important;
}

/* Sidebar / menu */
.bg-menu-theme .menu-item.active > .menu-link:not(.menu-toggle),
.bg-menu-theme .menu-item.active > .menu-link.menu-toggle,
.menu-item.active > .menu-link {
  background: var(--fce-primary) !important;
  color: #fff !important;
  box-shadow: 0 2px 6px 0 rgba(27, 122, 61, 0.4) !important;
}
.bg-menu-theme .menu-item.active > .menu-link:not(.menu-toggle) i,
.bg-menu-theme .menu-item.active > .menu-link.menu-toggle i {
  color: #fff !important;
}
.menu-header .menu-header-text {
  color: var(--fce-primary) !important;
}

/* Nav pills / tabs */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: var(--fce-primary) !important;
}
.nav-tabs .nav-link.active {
  color: var(--fce-primary) !important;
}

/* Pagination */
.page-item.active .page-link {
  background-color: var(--fce-primary) !important;
  border-color: var(--fce-primary) !important;
}
.page-link {
  color: var(--fce-primary);
}

/* Dropdown */
.dropdown-item:active,
.dropdown-item.active {
  background-color: var(--fce-primary) !important;
}

/* Spinners */
.spinner-border.text-primary {
  color: var(--fce-primary) !important;
}
