/* ── Peerless admin theme — PatternFly v5 CSS variable overrides ─── */
:root {
  --pf-v5-global--primary-color--100: #783b96;
  --pf-v5-global--primary-color--200: #6b2d89;
  --pf-v5-global--link--Color: #783b96;
  --pf-v5-global--link--Color--hover: #c5593c;
  --pf-v5-global--active-color--100: #783b96;
  --pf-v5-global--active-color--400: rgba(120, 59, 150, 0.12);
}

/* Top masthead bar */
.pf-v5-c-masthead,
#kc-page,
.pf-v5-c-page__header {
  background: linear-gradient(90deg, #0b0211 0%, #170621 100%) !important;
  border-bottom: 2px solid #783b96;
}

/* Sidebar */
.pf-v5-c-page__sidebar,
.pf-v5-c-nav {
  background: #0d0517 !important;
  border-right: 1px solid rgba(120, 59, 150, 0.22);
}

/* Nav links */
.pf-v5-c-nav__link {
  color: rgba(255, 255, 255, 0.72) !important;
}
.pf-v5-c-nav__link:hover {
  background: rgba(120, 59, 150, 0.16) !important;
  color: #ffffff !important;
}
.pf-v5-c-nav__link.pf-m-current,
.pf-v5-c-nav__link[aria-current="page"] {
  color: #ffffff !important;
  background: rgba(120, 59, 150, 0.26) !important;
  border-left: 3px solid #783b96;
}

/* Nav section titles */
.pf-v5-c-nav__section-title {
  color: rgba(255, 255, 255, 0.38) !important;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
}

/* Primary buttons */
.pf-v5-c-button.pf-m-primary {
  background: linear-gradient(90deg, #783b96 0%, #c5593c 100%) !important;
  border: 0 !important;
  color: #ffffff !important;
}
.pf-v5-c-button.pf-m-primary:hover {
  filter: brightness(1.08) saturate(1.06);
}

/* Active tab indicator */
.pf-v5-c-tabs__link::after {
  border-bottom-color: #783b96 !important;
}

/* Replace Keycloak logo with Peerless logo (CSS fallback) */
.pf-v5-c-masthead__brand img,
.pf-v5-c-brand img,
img[alt*="eycloak"] {
  content: url("../img/peerless-logo.svg") !important;
  width: 37px !important;
  height: 34px !important;
}

/* Focus ring */
*:focus-visible {
  outline-color: rgba(128, 25, 176, 0.55) !important;
}
