/* Accessibility Fixes - Address low-contrast text issues */
/* Based on Google Insights recommendations */

/* Fix low-contrast text in breadcrumbs */
.breadcrumb-container {
  background-color: #f8f9fa;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
}

.breadcrumb-container a {
  color: #495057 !important; /* Darker text for better contrast */
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb-container a:hover {
  color: #212529 !important; /* Even darker on hover */
  text-decoration: underline;
}

.breadcrumb-container span {
  color: #6c757d !important; /* Medium contrast for current page */
}

/* Fix low-contrast text in badges */
.badge {
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.badge.bg-danger {
  background-color: #dc3545 !important;
  color: #ffffff !important; /* White text on red background */
}

.badge.bg-success {
  background-color: #198754 !important;
  color: #ffffff !important; /* White text on green background */
}

.badge.bg-info {
  background-color: #0dcaf0 !important;
  color: #000000 !important; /* Black text on light blue background */
}

.badge.bg-warning {
  background-color: #ffc107 !important;
  color: #000000 !important; /* Black text on yellow background */
}

.badge.bg-primary {
  background-color: #0d6efd !important;
  color: #ffffff !important; /* White text on blue background */
}

.badge.bg-secondary {
  background-color: #6c757d !important;
  color: #ffffff !important; /* White text on gray background */
}

.badge.bg-dark {
  background-color: #212529 !important;
  color: #ffffff !important; /* White text on dark background */
}

.badge.bg-light {
  background-color: #f8f9fa !important;
  color: #212529 !important; /* Dark text on light background */
}

/* Fix low-contrast text in breadcrumbs */
.breadcrumb-container {
  background: #ffffff !important;
  border-bottom: 2px solid #e9ecef;
}

.breadcrumb {
  color: #495057 !important;
  font-weight: 500;
}

.breadcrumb-item a {
  color: #0d6efd !important;
  font-weight: 600;
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: #0a58ca !important;
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: #212529 !important;
  font-weight: 700;
}

/* Fix low-contrast text in navigation */
.navbar-nav a {
  color: #ffffff !important; /* White text on dark background */
  font-weight: 500;
}

.navbar-nav a:hover {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Fix low-contrast text in footer */
.footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #ffffff;
}

.footer a {
  color: #ffeb3b !important; /* Bright yellow for good contrast */
  text-decoration: underline;
  font-weight: 600;
}

.footer a:hover {
  color: #fff59d !important; /* Lighter yellow on hover */
  background-color: rgba(255, 235, 59, 0.2);
}

.footer-section h4 {
  color: #fa4006 !important; /* Bright orange for good contrast */
  font-weight: 600;
}

.footer-section p,
.footer-section li {
  color: rgba(255, 255, 255, 0.9) !important; /* High contrast white */
}

/* Fix low-contrast text in hero section */
.hero {
  background: linear-gradient(135deg, #011e44 0%, #fa4006 100%);
  color: #ffffff;
}

.hero h1,
.hero h2,
.hero h3 {
  color: #ffffff !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Add shadow for better contrast */
}

.hero p {
  color: rgba(255, 255, 255, 0.95) !important; /* High contrast white */
}

.hero .btn {
  background-color: #fa4006;
  color: #ffffff !important;
  font-weight: 600;
  border: 2px solid #ffffff;
}

.hero .btn:hover {
  background-color: #ffffff;
  color: #fa4006 !important;
}

/* Fix low-contrast text in buttons */
.btn {
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.375rem;
  padding: 0.75rem 1.5rem;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #fa4006;
  color: #ffffff !important;
  border: 2px solid #fa4006;
}

.btn-primary:hover {
  background-color: #c73202;
  color: #ffffff !important;
  border-color: #c73202;
}

.btn-secondary {
  background-color: #6c757d;
  color: #ffffff !important;
  border: 2px solid #6c757d;
}

.btn-secondary:hover {
  background-color: #5a6268;
  color: #ffffff !important;
  border-color: #5a6268;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Fix low-contrast text in links */
a {
  color: #fa4006 !important; /* Bright orange for good contrast */
  text-decoration: underline;
  font-weight: 500;
}

a:hover {
  color: #c73202 !important; /* Darker orange on hover */
  text-decoration-thickness: 3px;
}

/* Fix low-contrast text in form elements */
input, textarea, select {
  border: 2px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 0.75rem;
  font-size: 1rem;
  color: #495057;
  background-color: #ffffff;
}

input:focus, textarea:focus, select:focus {
  outline: 3px solid #fa4006;
  outline-offset: 2px;
  border-color: #fa4006;
}

label {
  color: #495057 !important; /* Dark gray for good contrast */
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

/* Fix low-contrast text in cards */
.card {
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-title {
  color: #212529 !important; /* Dark text for good contrast */
  font-weight: 600;
}

.card-text {
  color: #495057 !important; /* Medium dark text for good contrast */
}

/* Fix low-contrast text in alerts */
.alert {
  padding: 1rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}

.alert-success {
  background-color: #d1e7dd;
  border-color: #badbcc;
  color: #0f5132 !important; /* Dark green text */
}

.alert-danger {
  background-color: #f8d7da;
  border-color: #f5c2c7;
  color: #842029 !important; /* Dark red text */
}

.alert-warning {
  background-color: #fff3cd;
  border-color: #ffecb5;
  color: #664d03 !important; /* Dark yellow text */
}

.alert-info {
  background-color: #cff4fc;
  border-color: #b6effb;
  color: #055160 !important; /* Dark blue text */
}

/* Fix low-contrast text in tables */
.table {
  background-color: #ffffff;
  border-collapse: collapse;
  width: 100%;
}

.table th {
  background-color: #f8f9fa;
  color: #495057 !important; /* Dark text for good contrast */
  font-weight: 600;
  padding: 0.75rem;
  border-bottom: 2px solid #dee2e6;
}

.table td {
  color: #495057 !important; /* Dark text for good contrast */
  padding: 0.75rem;
  border-bottom: 1px solid #dee2e6;
}

/* Fix low-contrast text in modals */
.modal-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

.modal-title {
  color: #212529 !important; /* Dark text for good contrast */
  font-weight: 600;
}

.modal-body {
  color: #495057 !important; /* Dark text for good contrast */
}

/* Fix low-contrast text in tooltips */
.tooltip {
  background-color: #212529;
  color: #ffffff !important; /* White text on dark background */
  padding: 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

/* Fix low-contrast text in dropdowns */
.dropdown-menu {
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-menu a {
  color: #495057 !important; /* Dark text for good contrast */
  padding: 0.5rem 1rem;
  display: block;
  text-decoration: none;
}

.dropdown-menu a:hover {
  background-color: #f8f9fa;
  color: #212529 !important; /* Darker text on hover */
}

/* Fix low-contrast text in pagination */
.pagination {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination li {
  margin: 0 0.25rem;
}

.pagination a {
  color: #fa4006 !important; /* Bright orange for good contrast */
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  border-radius: 0.25rem;
}

.pagination a:hover {
  background-color: #f8f9fa;
  color: #c73202 !important; /* Darker orange on hover */
}

.pagination .active a {
  background-color: #fa4006;
  color: #ffffff !important; /* White text on orange background */
  border-color: #fa4006;
}

/* Fix low-contrast text in progress bars */
.progress {
  background-color: #e9ecef;
  border-radius: 0.375rem;
  height: 1rem;
  overflow: hidden;
}

.progress-bar {
  background-color: #fa4006;
  color: #ffffff !important; /* White text on orange background */
  text-align: center;
  line-height: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Ensure all text meets WCAG AA contrast requirements */
/* Minimum contrast ratio: 4.5:1 for normal text, 3:1 for large text */

/* High contrast mode support */
@media (prefers-contrast: high) {
  * {
    border-color: #000000 !important;
  }
  
  .btn, .badge, .alert {
    border-width: 2px !important;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
} 