/* Accessibility Styles for NPS IT Portal */

/* High contrast mode support */
@media (prefers-contrast: high) {
  .card, .info-card {
    border: 2px solid currentColor !important;
  }
  
  button, .btn {
    border: 2px solid currentColor !important;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for better keyboard navigation */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid #c084fc;
  outline-offset: 2px;
}

/* Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip links */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  z-index: 9999;
}

.skip-link:focus {
  top: 6px;
}

/* Ensure sufficient color contrast */
.text-muted {
  color: #6b7280 !important; /* Meets WCAG AA contrast requirements */
}

/* Better focus indicators for form controls */
.form-control:focus,
.form-select:focus,
.form-input:focus {
  border-color: #c084fc;
  box-shadow: 0 0 0 0.2rem rgba(192, 132, 252, 0.25);
}
