#wpadminbar .wpforms-menu-notification-counter {
  display: inline-block !important;
  min-width: 18px !important;
  height: 18px !important;
  border-radius: 9px !important;
  margin: 7px 0 0 2px !important;
  vertical-align: top !important;
  font-size: 11px !important;
  line-height: 1.6 !important;
  text-align: center !important;
}

#wpadminbar .wpforms-menu-notification-indicator {
  float: right !important;
  margin: 10px 0 0 !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 4px !important;
}

#wpadminbar .wpforms-menu-notification-indicator:after {
  display: block !important;
  content: "";
  position: absolute !important;
  width: inherit !important;
  height: inherit !important;
  border-radius: inherit !important;
  background-color: inherit !important;
  animation: wpforms-menu-notification-indicator-pulse 1.5s infinite !important;
}

@keyframes wpforms-menu-notification-indicator-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

#wpadminbar .wpforms-menu-form-notifications {
  border-top: 1px solid #3c4146 !important;
  margin-top: 6px !important;
  padding-top: 6px !important;
}

#wpadminbar .wpforms-menu-form-notifications > .ab-item .wp-admin-bar-arrow::before {
  top: 6px !important;
}

#wpadminbar #wp-admin-bar-wpforms-upgrade a {
  background-color: #00a32a;
  color: #ffffff;
}

#wpadminbar #wp-admin-bar-wpforms-upgrade a:hover {
  background-color: #008a20;
}

#wpadminbar .wpforms-menu-form-last {
  border-bottom: 1px solid #3c4146 !important;
  margin-bottom: 6px !important;
  padding-bottom: 6px !important;
}


/* Focus Management Styles - WCAG 2.1 Compliance */
/* Added for keyboard accessibility and screen reader support */

/* Button Focus Styles */
.hvac-button:focus,
.hvac-content .button:focus,
.hvac-content button:focus,
.hvac-content input[type="submit"]:focus,
.hvac-email-submit:focus,
.hvac-filter-submit:focus,
.hvac-certificate-actions button:focus,
.hvac-certificate-actions a:focus {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.2);
    border-radius: 4px;
}

/* Input Focus Styles */
.hvac-form-input:focus,
.hvac-content input[type="text"]:focus,
.hvac-content input[type="email"]:focus,
.hvac-content input[type="password"]:focus,
.hvac-content input[type="url"]:focus,
.hvac-content textarea:focus,
.hvac-content select:focus,
.hvac-email-form-row input:focus,
.hvac-email-form-row textarea:focus,
.hvac-filter-group input:focus,
.hvac-filter-group select:focus {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
    border-color: #005fcc;
    box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.2);
}

/* Link Focus Styles */
.hvac-content a:focus,
.hvac-event-link:focus,
.hvac-certificate-link:focus,
.hvac-attendee-profile-icon:focus,
.hvac-dashboard-nav a:focus,
.hvac-email-navigation a:focus {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
    text-decoration: underline;
    background-color: rgba(0, 95, 204, 0.1);
    border-radius: 2px;
}

/* Interactive Element Focus Styles */
.hvac-attendee-checkbox:focus,
.hvac-select-all-container input[type="checkbox"]:focus,
.hvac-modal-close:focus,
.hvac-certificate-table tr:focus {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.2);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .hvac-content *:focus {
        outline: 3px solid #000000;
        outline-offset: 2px;
        background-color: #ffff00;
        color: #000000;
    }
}

/* Focus-visible polyfill support */

/* Reset focus for mouse users while preserving keyboard accessibility */
.js-focus-visible :focus:not(.focus-visible) {
    outline: none;
    box-shadow: none;
}

/* Ensure focus is visible for keyboard users */
.js-focus-visible .focus-visible {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
}
