/*
 * 2026-05-09 - Added sidebar logo sizing for ARW brand mark.
 * 2026-05-09 - Changed ARW theme primary color from purple to blue.
 * 2026-05-09 - Rebranded theme stylesheet to ARW.
 */

:root,
[data-bs-theme=light] {
  --bs-primary: #3b7ddd;
  --bs-primary-rgb: 59, 125, 221;

  --bs-primary-text-emphasis: #183258;
  --bs-primary-bg-subtle: #d8e5f8;
  --bs-primary-border-subtle: #b1cbf1;
}

/* Force Bootstrap button vars to use our primary */
.btn-primary {
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-bg: #326abc;
  --bs-btn-hover-border-color: #326abc;
  --bs-btn-active-bg: #2f64b1;
  --bs-btn-active-border-color: #2f64b1;
}

.btn-outline-primary {
  --bs-btn-color: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-bg: var(--bs-primary);
  --bs-btn-hover-border-color: var(--bs-primary);
  --bs-btn-active-bg: #2f64b1;
  --bs-btn-active-border-color: #2f64b1;
}

/* --- Keep Bootstrap blue UI bits aligned with ARW blue --- */
:root,
[data-bs-theme=light] {
  /* Often used by themes/utilities */
  --bs-blue: #3b7ddd;

  /* Links/focus ring commonly appear blue */
  --bs-link-color: #3b7ddd;
  --bs-link-hover-color: #2f64b1;
  --bs-focus-ring-color: rgba(59, 125, 221, 0.25);
}

/* AdminKit notification indicator / bubble */
.indicator,
.indicator:before,
.indicator-number,
.navbar .indicator,
.navbar .indicator-number {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
}

/* Any leftover Bootstrap “primary” backgrounds/text that might be hard-coded in the theme */
.bg-primary,
.badge.bg-primary,
.text-bg-primary {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
}

/* If something uses Bootstrap's .text-primary but theme overwrote it */
.text-primary,
.link-primary {
  color: var(--bs-primary) !important;
}

/* --- Global link color override --- */
a {
  color: var(--bs-primary);
  text-decoration-color: rgba(59, 125, 221, 0.4);
}

a:hover,
a:focus {
  color: #2f64b1;
  text-decoration-color: #2f64b1;
}

.text-primary,
.link-primary,
.nav-link {
  color: var(--bs-primary) !important;
}

.text-primary:hover,
.link-primary:hover,
.nav-link:hover {
  color: #2f64b1 !important;
}

.sidebar-link,
.sidebar-link:hover,
.sidebar-item.active > .sidebar-link {
  color: var(--bs-primary) !important;
}

.sidebar-item.active > .sidebar-link {
  background-color: var(--bs-primary-bg-subtle) !important;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  min-height: 92px;
}

.sidebar-brand-logo {
  width: 185px;
  max-width: 100%;
  height: auto;
  max-height: 76px;
  object-fit: contain;
}

/* Replace leftover Bootstrap blue variable */
:root {
  --bs-blue: #3b7ddd;
}

/* --- Form controls: checkboxes & radios --- */
.form-check-input {
  --bs-form-check-bg: #fff;
  --bs-form-check-border-color: #3b7ddd;
}

.form-check-input:checked {
  background-color: #3b7ddd;
  border-color: #3b7ddd;
}

.form-check-input:focus {
  border-color: #3b7ddd;
  box-shadow: 0 0 0 0.25rem rgba(59, 125, 221, 0.25);
}

/* Radio buttons (same variables, but this ensures consistency) */
.form-check-input[type="radio"]:checked {
  background-color: #3b7ddd;
  border-color: #3b7ddd;
}
