/* Modern UI polish for StartRight */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #6366f1;
    --secondary-color: #06b6d4;
    --text-color: #1e293b;
    --background-color: #ffffff;
    --card-background-color: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --border-radius: 20px;
    --transition-speed: 0.3s;
    --hero-gradient-1: #667eea;
    --hero-gradient-2: #764ba2;
}

html {
    scroll-padding-top: 70px; /* Offset for sticky header */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: var(--text-color);
    line-height: 1.6;
}

.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1020;
}

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    z-index: 10;
    overflow: visible;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 4rem 2rem 5rem 2rem;
    margin-bottom: 0;
    margin-top: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    z-index: 1;
}

.hero > * {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
}

.hero .display-4 {
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero .lead {
    font-weight: 400;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.navbar {
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.navbar-brand:hover {
    color: var(--primary-color);
}

.navbar-nav .nav-link.active-page {
    font-weight: 700;
    color: #4f2fa5 !important;
}

.navbar-brand .brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    margin-right: 10px;
}

.navbar-brand .site-tagline {
    font-size: 0.9rem;
    color: #4e4e4e;
    display: block;
}

.search-input {
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed);
}

.search-input:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
    outline: none;
}

/* Hero form styling */
.hero .form-select {
    border: 2px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed);
}

.hero .form-select:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
    outline: none;
}

.hero .input-group-text {
    background-color: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-right: none;
    backdrop-filter: blur(10px);
    border-radius: 12px 0 0 12px;
}

.hero .btn {
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed);
}

.category-card, .occupation-card {
    border-radius: 20px;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f1f5f9;
    overflow: hidden;
    position: relative;
    height: 100%;
}

.category-card:hover, .occupation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
}

.category-card .card-img-top, .occupation-card .card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Only zero out padding on our custom cards; keep Bootstrap defaults elsewhere (e.g., compare page) */
.category-card .card-body,
.occupation-card .card-body {
    padding: 0;
    background: #ffffff;
}

.card-header-section {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid #f1f5f9;
}

.card-metrics-section {
    background: #ffffff;
}

.card-footer-section {
    background: #fafbfc;
    border-top: 1px solid #f1f5f9;
}

.card-title {
    font-weight: 700;
    color: #1e293b;
    font-size: 1.15rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.card-text {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

footer {
    background-color: #f8f9fa;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid #e9ecef;
}

.footer a,
footer a {
  color: #1e293b !important;
  text-decoration: underline;
  font-weight: 500;
}

.footer a:hover,
footer a:hover {
  color: #0a1930 !important;
  text-decoration: underline;
}

/* Occupation page enhancements */
.key-facts { background: linear-gradient(180deg,#ffffff,#fbfbff); border-radius: 12px; }
.key-facts h3{ margin-bottom:0.75rem; }
.key-facts.compact { padding: 0.75rem; }
.badge { font-weight:600; }

/* Truncated job summary */
.job-summary.truncate { max-height: 6.5rem; overflow: hidden; position: relative; }
.job-summary.truncate:after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2rem; background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,1)); }
.job-summary.expanded { max-height: none; }

/* Make charts look tidy */
canvas { max-width:100%; height:auto; }

/* Main content area styling */
.container-fluid {
    background-color: #ffffff;
    min-height: calc(100vh - 200px);
}

/* Enhanced card styling - removed gradient accent for cleaner look */

.occupation-card .badge {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

/* Modern Badge Styles */
.badge-salary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.45rem 0.75rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.813rem;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
    white-space: nowrap;
    flex-shrink: 0;
}

.badge-education {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    padding: 0.45rem 0.75rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.813rem;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.badge-doctoral {
  background: linear-gradient(90deg, #6d5dfc 0%, #6c63ff 100%);
  color: #fff !important;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.45em 1.2em;
  font-size: 1em;
  box-shadow: none;
  border: none;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.badge-doctoral a,
.badge-doctoral a:visited,
.badge-doctoral a:active {
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
}

.badge-doctoral a:hover,
.badge-doctoral a:focus {
  color: #e0e0ff !important;
  text-decoration: underline !important;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.btn-icon:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #ef4444;
    transform: scale(1.05);
}

.btn-icon.active {
    background: #fef2f2;
    border-color: #ef4444;
    color: #ef4444;
}

.btn-icon i {
    font-size: 1.1rem;
}

.occupation-card .btn {
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.occupation-card .btn:hover {
    transform: translateY(-1px);
}

.btn-view-details {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    font-size: 0.938rem;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
    transition: all 0.2s ease;
}

.btn-view-details:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
    color: white;
}

.btn-view-details:active {
    transform: translateY(0);
}

.btn-view-details i {
    transition: transform 0.2s ease;
}

.btn-view-details:hover i {
    transform: translateX(4px);
}

/* Card separation and grid improvements - using Bootstrap's default g-4 spacing */

/* Enhanced metrics display for better readability */
.metric-item {
    position: relative;
}

.metric-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
}

.metric-label i {
    font-size: 1rem;
    color: #94a3b8;
}

.metric-caption {
    font-size: 0.813rem;
    color: #94a3b8;
    line-height: 1.5;
}

.metric-value-badge {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    letter-spacing: 0.02em;
    color: white !important;
}

.metric-bar {
    height: 6px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
}

.metric-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Work-Life Balance Bars */
.work-life-bars-container {
    display: flex;
    gap: 3px;
    height: 6px;
}

.work-life-bars-container > div {
    flex: 1;
    border-radius: 3px;
    transition: all 0.2s ease;
}

/* Holland Code Badges */
.holland-codes-display {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.holland-badge {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.875rem;
    color: white;
    transition: all 0.2s ease;
}

.holland-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.holland-badge.realistic { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.holland-badge.investigative { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%); }
.holland-badge.artistic { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.holland-badge.social { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.holland-badge.enterprising { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }
.holland-badge.conventional { background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%); }

.personality-filter .dropdown {
    position: relative;
    z-index: 20;
}

/* Sidebar button styling */
#clearFavorites {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white !important;
    font-weight: 500;
    transition: all 0.2s ease;
}

#clearFavorites:hover {
    background-color: #c82333;
    border-color: #bd2130;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

#compareBtn {
    background-color: #198754;
    border-color: #198754;
    font-weight: 500;
}

#compareBtn:hover {
    background-color: #157347;
    border-color: #146c43;
}

/* Remove favorite button */
.btn-remove-favorite {
  width: 1.5em;
  height: 1.5em;
  background: none;
  border: none;
  color: #6366f1;
  font-size: 1.2em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.btn-remove-favorite::before {
  content: '\00d7'; /* Unicode multiplication sign (×) */
  font-size: 1.2em;
  color: #c82333;
  display: block;
}

.btn-remove-favorite:focus,
.btn-remove-favorite:hover {
  color: #c82333;
  outline: 2px solid #c82333;
  background: #f3f4f6;
}

/* Progress bars styling */
.progress {
    border-radius: 10px;
    background-color: rgba(108, 117, 125, 0.1);
}

.progress-bar {
    border-radius: 10px;
}

/* Work-life balance bars */
.work-life-bars {
    height: 8px;
}

.work-life-bars > * {
    flex: 1;
    height: 100%;
    border-radius: 2px;
    margin-right: 2px;
}

.work-life-bars > *:last-child {
    margin-right: 0;
}

/* Occupation name + compare button */
.page-compare-area .btn { vertical-align: middle; }


#compareTray {
    z-index: 1030;
}

.compare-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50rem;
    font-size: 0.9rem;
}

.compare-chip .btn-close {
    font-size: 0.7rem;
    margin-left: 0.5rem;
}

.occ-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background-color: #e9ecef;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}

.occ-chip .btn-close {
    font-size: 0.8rem;
}

.col-md-3 .card {
    position: sticky;
    top: 14%;
    height: 100%;
    max-height: 84vh;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.125);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Sidebar styling improvements */
.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.list-group-item {
  border: none;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.list-group-item .fw-medium {
  font-size: 0.95rem;
  color: #222;
}


@media (max-width: 992px) {
    #categoryContainer.row-cols-md-4 > * {
        width: 33.3333%;
    }
}

@media (max-width: 768px) {
    #categoryContainer.row-cols-md-4 > * {
        width: 50%;
    }
}

@media (max-width: 576px) {
    #categoryContainer.row-cols-md-4 > * {
        width: 100%;
    }
}

/* New Search Layout Styles */
.search-container {
    position: relative;
}

.search-input-main {
    padding: 1rem 1rem 1rem 3.5rem;
    border: none;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    height: 60px;
}

.search-input-main:focus {
    background-color: #ffffff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 0 0 4px rgba(255, 255, 255, 0.3);
    outline: none;
    transform: translateY(-2px);
}

.search-icon {
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    font-size: 1.2rem;
    color: #6c757d;
}

.filter-select {
    border: 2px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    height: 48px;
}

.filter-select:focus {
    border-color: rgba(255, 255, 255, 0.6);
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    outline: none;
}

.btn-clear-filters {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 12px;
    padding: 0.7rem 1rem;
    font-weight: 500;
    height: 48px;
    transition: all 0.3s ease;
}

.btn-clear-filters:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-1px);
}

/* Personality Multi-Select Styling */
.personality-filter {
    position: relative;
    z-index: 20;
}

.personality-filter .dropdown-toggle {
    justify-content: space-between;
    align-items: center;
    display: flex;
    color: #333 !important;
}

.personality-filter .dropdown-toggle:hover {
    background-color: #ffffff !important;
    color: #333 !important;
    border-color: #dee2e6 !important;
}

.personality-filter .dropdown-toggle:focus,
.personality-filter .dropdown-toggle:active,
.personality-filter .dropdown-toggle.show {
    color: #333 !important;
    background-color: #ffffff !important;
    border-color: #dee2e6 !important;
}

.personality-dropdown {
    background-color: #ffffff !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 12px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    padding: 0.5rem;
    min-width: 280px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 30;
    margin-top: 4px;
}

.personality-dropdown.show {
    display: block !important;
}

.personality-dropdown .dropdown-item {
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: none;
    color: #333 !important;
    font-size: 0.9rem;
}

.personality-dropdown .dropdown-item:hover {
    background-color: #f8f9fa !important;
    color: #333 !important;
}

.personality-dropdown .dropdown-item:active,
.personality-dropdown .dropdown-item:focus {
    background-color: #e9ecef !important;
    color: #333 !important;
}

.personality-dropdown .dropdown-item label {
    cursor: pointer;
    margin: 0;
    display: flex;
    align-items: center;
    width: 100%;
    color: #333 !important;
    font-weight: normal;
}

.personality-checkbox {
    accent-color: var(--primary-color);
    margin-right: 0.5rem !important;
}

/* Ensure dropdown doesn't get cut off */
.hero {
    overflow: visible !important;
}

.hero .container-lg {
    overflow: visible !important;
}

/* Responsive adjustments for filter columns */
@media (max-width: 1200px) {
    .filter-select, .btn-clear-filters {
        font-size: 0.9rem;
    }
    
    .personality-dropdown {
        min-width: 250px;
    }
}

/* ========================================
   ADA/WCAG 2.1 AA Accessibility Styles
   ======================================== */

/* Ensure semantic lists maintain visual styling */
.list-unstyled {
    list-style: none !important;
    padding-left: 0 !important;
    margin-bottom: 0;
}

.top-states-list,
.wage-regions {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

/* Skip link - visible on focus */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 4px 0;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
}

/* Enhanced focus indicators for keyboard navigation */
*:focus-visible {
    outline: 3px solid #6366f1;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Focus styles for buttons */
.btn:focus-visible {
    outline: 3px solid #6366f1;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

/* Focus styles for form controls */
.form-control:focus,
.form-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
    outline: none;
}

/* Focus styles for cards */
.occupation-card:focus-within {
    outline: 3px solid #6366f1;
    outline-offset: 2px;
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.2);
}

/* Focus styles for links */
a:focus-visible {
    outline: 3px solid #6366f1;
    outline-offset: 2px;
    text-decoration: underline;
}

/* Ensure adequate color contrast for text */
.text-muted {
    color: #64748b !important; /* WCAG AA compliant gray */
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .occupation-card {
        border: 2px solid #000;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
    
    .badge-salary,
    .badge-education {
        border: 2px solid #000;
    }
}

/* 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;
        scroll-behavior: auto !important;
    }
    
    .occupation-card:hover,
    .btn:hover {
        transform: none !important;
    }
}

/* Screen reader only text */
.visually-hidden-focusable:not(:focus):not(:focus-within) {
    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;
}

/* Ensure minimum touch target size (44x44px per WCAG) */
.btn-icon {
    min-width: 44px;
    min-height: 44px;
}

.add-to-favorites,
.btn-sm {
    min-height: 44px;
    padding: 0.5rem 1rem;
}

/* Keyboard navigation for pagination */
.pagination .page-link:focus-visible {
    z-index: 3;
    outline: 3px solid #6366f1;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

/* Ensure checkbox/radio inputs are accessible */
input[type="checkbox"]:focus-visible {
    outline: 3px solid #6366f1;
    outline-offset: 2px;
}

/* Improve dropdown menu accessibility */
.dropdown-menu:focus-visible {
    outline: 3px solid #6366f1;
    outline-offset: 2px;
}

/* Holland badge focus for keyboard users */
.holland-badge:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 5px rgba(99, 102, 241, 0.5);
}

/* Purple pagination styling */

.pagination-purple {
    color: #4f2fa5 !important;
    border-color: #dee2e6;
}

.pagination-purple:hover {
    background: linear-gradient(135deg, #4f2fa5 0%, #5b21b6 100%) !important;
    color: white !important;
    border-color: #4f2fa5;
}

.page-item.active .pagination-purple {
    background: linear-gradient(135deg, #4f2fa5 0%, #5b21b6 100%) !important;
    color: white !important;
    border-color: #4f2fa5 !important;
    z-index: 3;
}

.page-item.disabled .pagination-purple {
    color: #6c757d !important;
    background-color: #fff !important;
    border-color: #dee2e6;
    cursor: not-allowed;
}

/* Ensure sufficient contrast for disabled states */
button:disabled,
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Status messages - ensure they're announced by screen readers */
[role="status"],
[aria-live="polite"] {
    position: relative;
}

/* Ensure form labels are properly associated */
label {
    cursor: pointer;
}

/* WCAG 2 AA Contrast Fixes for Compare Page */
.badge.rounded-pill { color: #fff !important; background-color: #3b82f6 !important; }
.badge.bg-warning { color: #1f2937 !important; background-color: #ffc107 !important; }
.badge.bg-info, .badge.bg-secondary { color: #343a40 !important; background-color: #e2e3e5 !important; }
.text-primary, .h6.fw-bold.text-primary { color: #0157d8 !important; }
.text-info, .h6.fw-bold.text-info { color: #0c5460 !important; }
.text-warning, .h6.fw-bold.text-warning { color: #b45309 !important; }
.text-secondary, .h6.fw-bold.text-secondary { color: #343a40 !important; }
.text-muted, small.text-muted { color: #495057 !important; }
a.text-primary, a.text-info, a.text-warning, a.text-secondary { text-decoration: underline; }
.badge.rounded-pill[style*="#10b981"] { color: #fff !important; background-color: #10b981 !important; }
.badge.bg-primary.bg-opacity-10.text-primary { color: #fff !important; background-color:  #4f46e5 !important; }
.h6.fw-bold.text-primary, h6.fw-bold.text-primary { color: #0157d8 !important; }
.h6.fw-bold.text-success { color: #005c31 !important; }
.btn-link { color: #0359db !important; }
a.text-primary, a.text-success { color: #0157d8 !important; text-decoration: underline; }

.metric-value-badge.bg-warning {color: black !important;}