/* Aurora brand override for Bootstrap 4 primary blue (#007bff) → rust (#c45234).
 * Loaded after bootstrap.css so the cascade wins without bumping specificity.
 * Only the "primary" palette is remapped; info/success/warning/danger stay as-is. */

/* ---------- Solid button ---------- */
.btn-primary {
  color: #fff;
  background-color: #c45234;
  border-color: #c45234;
}
.btn-primary:hover {
  color: #fff;
  background-color: #a8462c;
  border-color: #9d4128;
}
.btn-primary:focus,
.btn-primary.focus {
  color: #fff;
  background-color: #a8462c;
  border-color: #9d4128;
  box-shadow: 0 0 0 0.2rem rgba(196, 82, 52, 0.5);
}
.btn-primary.disabled,
.btn-primary:disabled {
  color: #fff;
  background-color: #c45234;
  border-color: #c45234;
}
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
  color: #fff;
  background-color: #8d3a25;
  border-color: #843622;
}
.btn-primary:not(:disabled):not(.disabled):active:focus,
.btn-primary:not(:disabled):not(.disabled).active:focus,
.show > .btn-primary.dropdown-toggle:focus {
  box-shadow: 0 0 0 0.2rem rgba(196, 82, 52, 0.5);
}

/* ---------- Outline button ---------- */
.btn-outline-primary {
  color: #c45234;
  border-color: #c45234;
}
.btn-outline-primary:hover {
  color: #fff;
  background-color: #c45234;
  border-color: #c45234;
}
.btn-outline-primary:focus,
.btn-outline-primary.focus {
  box-shadow: 0 0 0 0.2rem rgba(196, 82, 52, 0.5);
}
.btn-outline-primary.disabled,
.btn-outline-primary:disabled {
  color: #c45234;
  background-color: transparent;
}
.btn-outline-primary:not(:disabled):not(.disabled):active,
.btn-outline-primary:not(:disabled):not(.disabled).active,
.show > .btn-outline-primary.dropdown-toggle {
  color: #fff;
  background-color: #c45234;
  border-color: #c45234;
}
.btn-outline-primary:not(:disabled):not(.disabled):active:focus,
.btn-outline-primary:not(:disabled):not(.disabled).active:focus,
.show > .btn-outline-primary.dropdown-toggle:focus {
  box-shadow: 0 0 0 0.2rem rgba(196, 82, 52, 0.5);
}

/* ---------- btn-link ---------- */
.btn-link {
  color: #c45234;
}
.btn-link:hover {
  color: #8d3a25;
}

/* ---------- Links ----------
 * Bare `a` rule at specificity 0,0,1 — every Bootstrap class-level anchor
 * (.navbar-brand, .nav-link, .btn, .dropdown-item, .page-link, .alert-link,
 * .list-group-item-action, etc.) naturally outranks this and keeps its own
 * color. Any vendor widget that styles its anchors with a class selector
 * does too. A previous :not() chain bumped specificity high enough to
 * repaint .navbar-dark .navbar-brand — don't add :not() exclusions here. */
a {
  color: #c45234;
}
a:hover {
  color: #8d3a25;
}

/* ---------- Utility color classes ---------- */
.text-primary {
  color: #c45234 !important;
}
a.text-primary:hover,
a.text-primary:focus {
  color: #8d3a25 !important;
}
.bg-primary {
  background-color: #c45234 !important;
}
a.bg-primary:hover,
a.bg-primary:focus,
button.bg-primary:hover,
button.bg-primary:focus {
  background-color: #a8462c !important;
}
.border-primary {
  border-color: #c45234 !important;
}

/* ---------- Badge ---------- */
.badge-primary {
  color: #fff;
  background-color: #c45234;
}
a.badge-primary:hover,
a.badge-primary:focus {
  color: #fff;
  background-color: #a8462c;
}

/* ---------- Alert ---------- */
.alert-primary {
  color: #663220;
  background-color: #f4ddd6;
  border-color: #efcdc1;
}
.alert-primary hr {
  border-top-color: #eabfb0;
}
.alert-primary .alert-link {
  color: #422013;
}

/* ---------- List group ---------- */
.list-group-item-primary {
  color: #663220;
  background-color: #efcdc1;
}
.list-group-item-primary.list-group-item-action:hover,
.list-group-item-primary.list-group-item-action:focus {
  color: #663220;
  background-color: #eabfb0;
}
.list-group-item-primary.list-group-item-action.active {
  color: #fff;
  background-color: #663220;
  border-color: #663220;
}
.list-group-item.active {
  color: #fff;
  background-color: #c45234;
  border-color: #c45234;
}

/* ---------- Pagination ---------- */
.page-link {
  color: #c45234;
}
.page-link:hover {
  color: #8d3a25;
}
.page-item.active .page-link {
  color: #fff;
  background-color: #c45234;
  border-color: #c45234;
}
.page-link:focus {
  box-shadow: 0 0 0 0.2rem rgba(196, 82, 52, 0.25);
}

/* ---------- Form focus ring ---------- */
.form-control:focus {
  border-color: #db8b75;
  box-shadow: 0 0 0 0.2rem rgba(196, 82, 52, 0.25);
}
.custom-select:focus {
  border-color: #db8b75;
  box-shadow: 0 0 0 0.2rem rgba(196, 82, 52, 0.25);
}
.custom-file-input:focus ~ .custom-file-label {
  border-color: #db8b75;
  box-shadow: 0 0 0 0.2rem rgba(196, 82, 52, 0.25);
}
.custom-range::-webkit-slider-thumb {
  background-color: #c45234;
}
.custom-range::-moz-range-thumb {
  background-color: #c45234;
}
.custom-range::-ms-thumb {
  background-color: #c45234;
}

/* ---------- Custom checkbox / radio / switch ---------- */
.custom-control-input:checked ~ .custom-control-label::before {
  border-color: #c45234;
  background-color: #c45234;
}
.custom-control-input:focus ~ .custom-control-label::before {
  box-shadow: 0 0 0 0.2rem rgba(196, 82, 52, 0.25);
}
.custom-control-input:focus:not(:checked) ~ .custom-control-label::before {
  border-color: #db8b75;
}
.custom-control-input:not(:disabled):active ~ .custom-control-label::before {
  background-color: #f4ddd6;
  border-color: #f4ddd6;
}

/* ---------- Nav pills + dropdown active ---------- */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  color: #fff;
  background-color: #c45234;
}
.dropdown-item.active,
.dropdown-item:active {
  color: #fff;
  background-color: #c45234;
}

/* ---------- Progress + spinner ---------- */
.progress-bar {
  background-color: #c45234;
}
.spinner-border.text-primary,
.spinner-grow.text-primary {
  color: #c45234 !important;
}

/* ---------- Table ---------- */
.table-primary,
.table-primary > th,
.table-primary > td {
  background-color: #efcdc1;
}
.table-primary th,
.table-primary td,
.table-primary thead th,
.table-primary tbody + tbody {
  border-color: #e2a99a;
}
.table-hover .table-primary:hover {
  background-color: #eabfb0;
}
.table-hover .table-primary:hover > td,
.table-hover .table-primary:hover > th {
  background-color: #eabfb0;
}
