/* Accessibility Features */
.accessibility-toolbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #000;
    color: #fff;
    padding: 5px 0;
    z-index: 9999;
    font-size: 14px;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.accessibility-toolbar.show {
    transform: translateY(0);
}

.accessibility-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.accessibility-btn {
    background: #333;
    color: #fff;
    border: 1px solid #555;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.accessibility-btn:hover,
.accessibility-btn:focus {
    background: #555;
    outline: 2px solid #fff;
}

.accessibility-btn.active {
    background: #007bff;
    border-color: #007bff;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 4px 4px;
}

.skip-link:focus {
    top: 0;
    color: #fff;
}

/* High contrast mode */
body.high-contrast {
    background: #000 !important;
    color: #fff !important;
}

body.high-contrast .navbar,
body.high-contrast .card,
body.high-contrast .btn,
body.high-contrast .footer {
    background: #000 !important;
    color: #fff !important;
    border: 1px solid #fff !important;
}

body.high-contrast .btn-primary {
    background: #fff !important;
    color: #000 !important;
}

body.high-contrast a {
    color: #ffff00 !important;
}

body.high-contrast .text-muted {
    color: #ccc !important;
}

/* Large text mode */
body.large-text {
    font-size: 18px !important;
}

body.large-text h1 { font-size: 2.5rem !important; }
body.large-text h2 { font-size: 2rem !important; }
body.large-text h3 { font-size: 1.75rem !important; }
body.large-text h4 { font-size: 1.5rem !important; }
body.large-text h5 { font-size: 1.25rem !important; }

/* Focus indicators */
*:focus {
    outline: 3px solid #007bff !important;
    outline-offset: 2px !important;
}

/* Screen reader only content */
.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;
}

/* Accessibility toggle button */
.accessibility-toggle {
    position: fixed;
    top: 80px;
    right: 20px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    z-index: 9998;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.accessibility-toggle:hover,
.accessibility-toggle:focus {
    background: #0056b3;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .accessibility-controls {
        gap: 10px;
    }
    
    .accessibility-btn {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .accessibility-toggle {
        width: 45px;
        height: 45px;
        font-size: 18px;
        right: 15px;
    }
}