body {
  background-color: #1a1a1a;
  color: #ffffff;
}

.navbar {
  background-color: #000000 !important;
  border-bottom: 1px solid #333;
}

.form-select {
  background-color: #2a2a2a;
  color: #ffffff;
  border: 1px solid #444;
}

.form-select:disabled {
  background-color: #222;
  color: #666;
}

.form-select option {
  background-color: #2a2a2a;
  color: #ffffff;
}

.btn-primary {
  background-color: #0066cc;
  border-color: #0066cc;
}

.btn-primary:hover {
  background-color: #0052a3;
  border-color: #0052a3;
}

.table {
  background-color: #2a2a2a;
  color: #ffffff;
}

.table thead th {
  background-color: #1a1a1a;
  border-color: #444;
}

.table td {
  border-color: #444;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: #333;
}

.form-control {
  background-color: #2a2a2a;
  color: #ffffff;
  border: 1px solid #444;
}

.form-control:focus {
  background-color: #2a2a2a;
  color: #ffffff;
  border-color: #0066cc;
  box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.form-control::placeholder {
  color: #888;
}

/* Accessibility Improvements */

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

/* Skip link visibility on focus */
.sr-only:focus,
.focus\:not-sr-only:focus {
  position: static !important;
  width: auto !important;
  height: auto !important;
  padding: inherit !important;
  margin: inherit !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
}

/* Button accessibility */
button:focus,
input[type="button"]:focus,
input[type="submit"]:focus {
  outline: 2px solid #fbbf24 !important;
  outline-offset: 2px !important;
}

/* Form accessibility */
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #60a5fa !important;
  outline-offset: 2px !important;
}

/* Improve table accessibility */
table {
  border-collapse: collapse;
}

th,
td {
  border: 1px solid #444;
  padding: 8px;
}

th {
  background-color: #1a1a1a;
  font-weight: bold;
  text-align: left;
}

/* Modal accessibility */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
  body {
    background-color: #000000;
    color: #ffffff;
  }

  .bg-gray-900 {
    background-color: #000000 !important;
  }

  .bg-gray-800 {
    background-color: #1a1a1a !important;
  }

  .bg-gray-700 {
    background-color: #333333 !important;
  }

  .text-gray-400 {
    color: #cccccc !important;
  }
}
