/* Bootstrap Overrides for University Color Scheme */
/* University Color: #003d7c */
/* Global Button Styles - WCAG AAA Compliant - All States Defined */

/* ============================================
   PRIMARY BUTTONS - UWS Brand Color
   ============================================ */
.btn-primary {
  background-color: #003d7c !important;
  border-color: #003d7c !important;
  color: #ffffff !important;
  --bs-btn-hover-color: #ffffff !important;
  --bs-btn-hover-bg: #0052a3 !important;
  --bs-btn-hover-border-color: #0052a3 !important;
  --bs-btn-active-color: #ffffff !important;
  --bs-btn-active-bg: #002d5c !important;
  --bs-btn-active-border-color: #002d5c !important;
  --bs-btn-focus-shadow-rgb: 0, 61, 124;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #0052a3 !important;
  border-color: #0052a3 !important;
  color: #ffffff !important;
}

.btn-primary:active,
.btn-primary.active {
  background-color: #002d5c !important;
  border-color: #002d5c !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 0.25rem rgba(0, 61, 124, 0.5) !important;
}

a.btn-primary:visited,
button.btn-primary:visited {
  background-color: #002d5c !important;
  border-color: #002d5c !important;
  color: #ffffff !important;
}

a.btn-primary:visited:hover,
a.btn-primary:visited:focus,
button.btn-primary:visited:hover,
button.btn-primary:visited:focus {
  background-color: #0052a3 !important;
  border-color: #0052a3 !important;
  color: #ffffff !important;
}

/* ============================================
   OUTLINE PRIMARY BUTTONS - UWS Brand Color
   ============================================ */
.btn-outline-primary {
  color: #003d7c !important;
  border-color: #003d7c !important;
  background-color: transparent !important;
  --bs-btn-hover-color: #ffffff !important;
  --bs-btn-hover-bg: #003d7c !important;
  --bs-btn-hover-border-color: #003d7c !important;
  --bs-btn-active-color: #ffffff !important;
  --bs-btn-active-bg: #002d5c !important;
  --bs-btn-active-border-color: #002d5c !important;
  --bs-btn-focus-shadow-rgb: 0, 61, 124;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: #003d7c !important;
  border-color: #003d7c !important;
  color: #ffffff !important;
}

.btn-outline-primary:active,
.btn-outline-primary.active {
  background-color: #002d5c !important;
  border-color: #002d5c !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 0.25rem rgba(0, 61, 124, 0.25) !important;
}

a.btn-outline-primary:visited {
  color: #003d7c !important;
  border-color: #003d7c !important;
  background-color: transparent !important;
}

a.btn-outline-primary:visited:hover,
a.btn-outline-primary:visited:focus {
  background-color: #003d7c !important;
  border-color: #003d7c !important;
  color: #ffffff !important;
}

/* ============================================
   SECONDARY BUTTONS - UWS Brand Color on Hover
   ============================================ */
.btn-secondary {
  color: #ffffff !important;
  background-color: #6c757d !important;
  border-color: #6c757d !important;
  --bs-btn-hover-color: #ffffff !important;
  --bs-btn-hover-bg: #003d7c !important;
  --bs-btn-hover-border-color: #003d7c !important;
  --bs-btn-active-color: #ffffff !important;
  --bs-btn-active-bg: #002d5c !important;
  --bs-btn-active-border-color: #002d5c !important;
  --bs-btn-focus-shadow-rgb: 0, 61, 124;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: #003d7c !important;
  border-color: #003d7c !important;
  color: #ffffff !important;
}

.btn-secondary:active,
.btn-secondary.active {
  background-color: #002d5c !important;
  border-color: #002d5c !important;
  color: #ffffff !important;
}

a.btn-secondary:visited {
  background-color: #6c757d !important;
  border-color: #6c757d !important;
  color: #ffffff !important;
}

a.btn-secondary:visited:hover,
a.btn-secondary:visited:focus {
  background-color: #003d7c !important;
  border-color: #003d7c !important;
  color: #ffffff !important;
}

/* ============================================
   OUTLINE SECONDARY BUTTONS - UWS Brand Color on Hover
   ============================================ */
.btn-outline-secondary {
  color: #6c757d !important;
  border-color: #6c757d !important;
  background-color: transparent !important;
  --bs-btn-hover-color: #ffffff !important;
  --bs-btn-hover-bg: #003d7c !important;
  --bs-btn-hover-border-color: #003d7c !important;
  --bs-btn-active-color: #ffffff !important;
  --bs-btn-active-bg: #002d5c !important;
  --bs-btn-active-border-color: #002d5c !important;
  --bs-btn-focus-shadow-rgb: 0, 61, 124;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background-color: #003d7c !important;
  border-color: #003d7c !important;
  color: #ffffff !important;
}

.btn-outline-secondary:active,
.btn-outline-secondary.active {
  background-color: #002d5c !important;
  border-color: #002d5c !important;
  color: #ffffff !important;
}

a.btn-outline-secondary:visited {
  color: #6c757d !important;
  border-color: #6c757d !important;
  background-color: transparent !important;
}

a.btn-outline-secondary:visited:hover,
a.btn-outline-secondary:visited:focus {
  background-color: #003d7c !important;
  border-color: #003d7c !important;
  color: #ffffff !important;
}

/* ============================================
   LIGHT BUTTONS - Ensure Dark Text on Light Background
   ============================================ */
.btn-light {
  color: #212529 !important;
  background-color: #f8f9fa !important;
  border-color: #f8f9fa !important;
}

.btn-light:hover,
.btn-light:focus {
  color: #212529 !important;
  background-color: #e9ecef !important;
  border-color: #e9ecef !important;
}

.btn-light:active {
  color: #212529 !important;
  background-color: #d3d9df !important;
  border-color: #d3d9df !important;
}

/* ============================================
   CUSTOM BUTTONS (btn-outline-custom) - Use UWS Colors
   ============================================ */
.btn-outline-custom {
  color: #003d7c !important;
  border-color: #003d7c !important;
  background-color: transparent !important;
}

.btn-outline-custom:hover,
.btn-outline-custom:focus {
  background-color: #003d7c !important;
  border-color: #003d7c !important;
  color: #ffffff !important;
}

.btn-outline-custom:active {
  background-color: #002d5c !important;
  border-color: #002d5c !important;
  color: #ffffff !important;
}

/* ============================================
   PAGINATION LINKS - Use University Color
   ============================================ */
.page-link {
  color: #003d7c;
  border-color: #dee2e6;
}

.page-link:hover {
  color: #002d5c;
  background-color: rgba(0, 61, 124, 0.1);
  border-color: #003d7c;
}

.page-link:focus {
  color: #002d5c;
  background-color: rgba(0, 61, 124, 0.1);
  border-color: #003d7c;
  box-shadow: 0 0 0 0.25rem rgba(0, 61, 124, 0.25);
}

.page-item.active .page-link {
  background-color: #003d7c;
  border-color: #003d7c;
  color: #fff;
}

.page-item.disabled .page-link {
  color: #6c757d;
  background-color: #fff;
  border-color: #dee2e6;
}

/* ============================================
   INFO ICON CUSTOM
   ============================================ */
.info-icon-custom {
  font-size: 1.5rem;
  font-weight: 600;
  color: #003d7c;
}
