/* Public site color accents: purple buttons + subtle purple links/focus. */
:root {
  --site-purple-500: #7c3aed;
  --site-purple-600: #6d28d9;
  --site-purple-700: #5b21b6;
}

.site-navbar {
  background-color: var(--site-purple-700) !important;
  border-bottom: 1px solid rgba(221, 214, 254, 0.22);
}

.site-navbar a,
.site-navbar button,
.site-navbar span {
  color: #f5f3ff !important;
}

.site-navbar a:hover,
.site-navbar button:hover {
  color: #ffffff !important;
}

.site-navbar .site-nav-link {
  display: inline-flex;
  align-items: center;
  border-radius: 0.5rem;
  padding: 0.375rem 0.625rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #ede9fe !important;
  transition: background-color 120ms ease, color 120ms ease;
}

.site-navbar .site-nav-link:hover {
  background: rgba(167, 139, 250, 0.2);
  color: #ffffff !important;
}

.site-navbar .site-nav-pill {
  border-radius: 0.625rem;
  border: 1px solid rgba(221, 214, 254, 0.45) !important;
  background: rgba(255, 255, 255, 0.12) !important;
  padding: 0.35rem 0.7rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #f5f3ff !important;
  line-height: 1;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.site-navbar .site-nav-pill:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.65) !important;
}

/* Keep navbar action buttons transparent (e.g., Logout). */
.site-navbar button,
.site-navbar form button {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.btn,
a.btn,
a[class*="bg-indigo"],
a[class*="bg-blue"],
a[class*="bg-violet"],
a[class*="bg-purple"] {
  background-color: var(--site-purple-600) !important;
  border-color: var(--site-purple-600) !important;
  color: #ffffff !important;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
.btn:hover,
a.btn:hover,
a[class*="bg-indigo"]:hover,
a[class*="bg-blue"]:hover,
a[class*="bg-violet"]:hover,
a[class*="bg-purple"]:hover {
  background-color: var(--site-purple-700) !important;
  border-color: var(--site-purple-700) !important;
}

/* Cancel/destructive actions should be red, not purple. */
.btn-danger,
.bg-danger,
button[id*="cancel"],
button[id*="Cancel"],
button[class*="cancel"],
button[class*="danger"],
a[class*="cancel"],
a[class*="danger"],
[data-action="cancel"],
[data-variant="danger"] {
  background-color: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #ffffff !important;
}

.btn-danger:hover,
.bg-danger:hover,
button[id*="cancel"]:hover,
button[id*="Cancel"]:hover,
button[class*="cancel"]:hover,
button[class*="danger"]:hover,
a[class*="cancel"]:hover,
a[class*="danger"]:hover,
[data-action="cancel"]:hover,
[data-variant="danger"]:hover {
  background-color: #b91c1c !important;
  border-color: #b91c1c !important;
}

/* Secondary actions: white button with purple text and border. */
.btn-secondary,
button[class*="secondary"],
a[class*="secondary"],
[data-variant="secondary"],
[data-action="secondary"] {
  background-color: #ffffff !important;
  border: 1px solid var(--site-purple-600) !important;
  color: var(--site-purple-600) !important;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.08);
}

.btn-secondary:hover,
button[class*="secondary"]:hover,
a[class*="secondary"]:hover,
[data-variant="secondary"]:hover,
[data-action="secondary"]:hover {
  background-color: #f5f3ff !important;
  border-color: var(--site-purple-700) !important;
  color: var(--site-purple-700) !important;
  box-shadow: 0 4px 10px rgba(91, 33, 182, 0.12);
}

/* Treat blue/lineup actions as secondary style. */
#display-lineup-btn,
button[class*="bg-blue"],
a[class*="bg-blue"] {
  background-color: #ffffff !important;
  border: 1px solid var(--site-purple-600) !important;
  color: var(--site-purple-600) !important;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.08);
}

#display-lineup-btn:hover,
button[class*="bg-blue"]:hover,
a[class*="bg-blue"]:hover {
  background-color: #f5f3ff !important;
  border-color: var(--site-purple-700) !important;
  color: var(--site-purple-700) !important;
  box-shadow: 0 4px 10px rgba(91, 33, 182, 0.12);
}

/* Close/X buttons should be white (not purple). */
.btn-close,
button[aria-label="Close"],
button[id*="close"],
button[id*="Close"] {
  background-color: #ffffff !important;
  border: 1px solid #d1d5db !important;
  color: #4b5563 !important;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.08);
}

.btn-close:hover,
button[aria-label="Close"]:hover,
button[id*="close"]:hover,
button[id*="Close"]:hover {
  background-color: #f9fafb !important;
  border-color: #9ca3af !important;
  color: #1f2937 !important;
}

a {
  color: var(--site-purple-600);
}

a:hover {
  color: var(--site-purple-700);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--site-purple-500);
  outline-offset: 2px;
}

/* Keep dropdown controls neutral for readability (not purple). */
select,
.form-select,
.dropdown-toggle,
button[aria-haspopup="true"],
.member-dropdown-btn,
.js-location-trigger,
.js-role-trigger {
  background-color: #ffffff !important;
  border-color: #d1d5db !important;
  color: #1f2937 !important;
}

select:hover,
.form-select:hover,
.dropdown-toggle:hover,
button[aria-haspopup="true"]:hover,
.member-dropdown-btn:hover,
.js-location-trigger:hover,
.js-role-trigger:hover {
  background-color: #f9fafb !important;
  border-color: #9ca3af !important;
  color: #111827 !important;
}

/* Keep navbar controls readable on purple navbar. */
.site-navbar .dropdown-toggle,
.site-navbar button[aria-haspopup="true"] {
  background: transparent !important;
  border-color: transparent !important;
  color: #f5f3ff !important;
}

/* Footer refresh */
.site-footer {
  background: #ffffff;
  box-shadow: none;
}

.site-footer-link {
  color: #4b5563 !important;
  font-weight: 500;
  padding: 0;
  border: 0;
  background: transparent;
  transition: color 120ms ease;
}

.site-footer-link:hover {
  color: #111827 !important;
}

.site-footer-divider {
  color: #9ca3af;
}

.site-footer-copy {
  color: #6b7280;
}
