/* DIGI HAM LINK v83 — EchoLink popup button clarity ONLY.
   Presentation-only. Do not turn on any hidden control or change its disabled state. */

/* Respect application permission gates and dynamically hidden buttons. */
#dhlEchoDirectory button[hidden] { display: none !important; }

/* Real interactive actions: readable text, clear fill, and affordance. */
#dhlEchoDirectory button:not(:disabled):not([aria-disabled="true"]):not([hidden]) {
  box-sizing: border-box;
  min-height: 38px;
  max-width: 100%;
  color: #f7fcff !important;
  -webkit-text-fill-color: #f7fcff !important;
  font-weight: 650 !important;
  opacity: 1 !important;
  filter: none !important;
  border: 1px solid #57b8e9 !important;
  border-radius: 9px;
  background: linear-gradient(180deg, #17618e 0%, #0d446b 100%) !important;
  box-shadow: inset 0 1px 0 rgba(217, 245, 255, .19), 0 1px 4px rgba(0, 5, 18, .19);
  text-shadow: none !important;
  cursor: pointer !important;
  transition: background-color .16s ease, box-shadow .16s ease,
              border-color .16s ease, transform .12s ease !important;
}

/* Primary action is visibly distinct when ready; NOT when disabled. */
#dhlEchoDirectory #dhlEchoLiveConnect:not(:disabled):not([aria-disabled="true"]):not([hidden]),
#dhlEchoDirectory #dhlEchoCredSave:not(:disabled):not([aria-disabled="true"]):not([hidden]) {
  background: linear-gradient(180deg, #087eb2 0%, #07628e 100%) !important;
  border-color: #46dcff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.23), 0 2px 8px rgba(0, 141, 208, .16);
}

/* Hover and focus should communicate that a button is actionable. */
@media (hover: hover) {
  #dhlEchoDirectory button:not(:disabled):not([aria-disabled="true"]):not([hidden]):hover {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    border-color: #83e4ff !important;
    background: linear-gradient(180deg, #2179ad 0%, #105b89 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 3px 12px rgba(23, 171, 234, .27) !important;
  }
  #dhlEchoDirectory #dhlEchoLiveConnect:not(:disabled):hover,
  #dhlEchoDirectory #dhlEchoCredSave:not(:disabled):hover {
    background: linear-gradient(180deg, #109ad0 0%, #087bab 100%) !important;
  }
}
#dhlEchoDirectory button:not(:disabled):not([aria-disabled="true"]):focus-visible {
  outline: 3px solid #b5f2ff !important;
  outline-offset: 2px !important;
}
#dhlEchoDirectory button:not(:disabled):not([aria-disabled="true"]):active {
  transform: translateY(1px);
  box-shadow: inset 0 1px 6px rgba(0, 0, 0, .20) !important;
}

/* A genuinely disabled action remains visually disabled and cannot appear active. */
#dhlEchoDirectory button:disabled,
#dhlEchoDirectory button[aria-disabled="true"] {
  color: #99acbb !important;
  -webkit-text-fill-color: #99acbb !important;
  background: #243b4e !important;
  border: 1px solid #3b5265 !important;
  opacity: .58 !important;
  filter: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  cursor: not-allowed !important;
  transform: none !important;
}
@media (prefers-reduced-motion: reduce) {
  #dhlEchoDirectory button { transition: none !important; transform: none !important; }
}
