/* Keep profile avatar fully visible on hover/focus */
.pc-header .header-user-profile .pc-head-link:hover,
.pc-header .header-user-profile .pc-head-link:focus,
.pc-header .header-user-profile .pc-head-link:active {
  background-color: transparent !important;
  box-shadow: none !important;
}

.pc-header .header-user-profile .pc-head-link img.user-avtar {
  opacity: 1 !important;            /* force full visibility by default */
  filter: none !important;
  transition: none !important;      /* disable fade animations */
}

.pc-header .header-user-profile .pc-head-link:hover img.user-avtar,
.pc-header .header-user-profile .pc-head-link:focus img.user-avtar,
.pc-header .header-user-profile .pc-head-link:active img.user-avtar,
.pc-header .header-user-profile .pc-head-link.active img.user-avtar {
  opacity: 1 !important;
  filter: none !important;
}

/* Neutralize any global icon hover dim rules that might target images */
.pc-header .header-user-profile .pc-head-link:hover svg,
.pc-header .header-user-profile .pc-head-link:focus svg {
  opacity: 1 !important;
}

/* Remove header hover pseudo-element overlay that causes fade */
.pc-header .header-user-profile .pc-head-link::before {
  content: none !important;
  display: none !important;
}

/* Prevent any hover scaling of the avatar */
.pc-header .header-user-profile .pc-head-link:hover .user-avtar,
.pc-header .header-user-profile .pc-head-link:focus .user-avtar,
.pc-header .header-user-profile .pc-head-link:active .user-avtar {
  transform: none !important;
}


/* Activity logs panel - theme aware */
.offcanvas .activity-logs-body {
  overflow-y: auto;
}
.activity-item {
  background: var(--bs-body-bg);
}
.activity-item a {
  text-decoration: none;
}

/* Remove default link underlines across the app */
a,
a:hover,
a:focus,
.dropdown-item,
.breadcrumb a,
.list-group-item,
.pc-link {
  text-decoration: none !important;
}

/* Dark mode tweaks */
[data-pc-theme="dark"] .offcanvas,
[data-pc-theme="dark"] .offcanvas .offcanvas-header {
  background-color: #1f2330;
  color: rgba(255,255,255,0.85);
}
[data-pc-theme="dark"] .activity-item {
  background-color: #23283a;
  border-color: rgba(255,255,255,0.12);
}
[data-pc-theme="dark"] .activity-actor {
  color: #d8e3ff;
}
[data-pc-theme="dark"] .offcanvas .text-muted {
  color: rgba(255,255,255,0.6) !important;
}

/* Light mode tweaks */
[data-pc-theme="light"] .offcanvas .offcanvas-header {
  background-color: #f8f9fa;
}
[data-pc-theme="light"] .activity-item {
  background-color: #ffffff;
  border-color: rgba(0,0,0,0.08);
}

