/* Button and Title Fixes for Accessibility */

/* Ensure buttons have high contrast and are visible on both light and dark backgrounds */
.btn-primary {
    background: #2b5797 !important; /* Darker blue */
    border-color: #1e3c6e !important;
    color: #ffffff !important;
    font-weight: 600;
}

.btn-primary:hover {
    background: #1e3c6e !important;
    border-color: #152c52 !important;
}

/* View details button specific styling */
.btn-sm.btn-primary {
    background: #2b5797 !important;
    border-color: #1e3c6e !important;
    color: #ffffff !important;
}

.btn-sm.btn-primary:hover {
    background: #1e3c6e !important;
}

/* Ensure page titles are visible on any background */
.page-title {
    color: #1a1a1a !important; /* Dark text for light theme */
    -webkit-text-fill-color: #1a1a1a !important; /* Override transparent text */
    background: none !important; /* Remove gradient background */
    font-weight: 700;
    text-shadow: none !important;
}

/* Dark theme adjustments */
[data-theme="dark"] .page-title {
    color: #f1f5f9 !important; /* Light text for dark mode */
    -webkit-text-fill-color: #f1f5f9 !important;
}

/* Card header titles */
.card-header h5 {
    color: #ffffff !important;
    font-weight: 600;
}

/* Ensure all headings have proper contrast */
h1, h2, h3, h4, h5, h6 {
    color: #1a1a1a;
}

[data-theme="dark"] h1, 
[data-theme="dark"] h2, 
[data-theme="dark"] h3, 
[data-theme="dark"] h4, 
[data-theme="dark"] h5, 
[data-theme="dark"] h6 {
    color: #f1f5f9;
}
