﻿.accessibility-toggle {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 65px;
    height: 65px;
    border: none;
    border-radius: 50%;
    background: #0056b3;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    z-index: 999999;
    box-shadow: 0 0 25px rgba(0,86,179,.5);
    transition: .3s;
}

    .accessibility-toggle:hover {
        transform: scale(1.1);
    }

.accessibility-panel {
    position: fixed;
    right: 20px;
    bottom: 95px;
    width: 340px;
    max-height: 80vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0,0,0,.25);
    display: none;
    z-index: 999999;
}

    .accessibility-panel.show {
        display: block;
    }

.widget-header {
    background: #0056b3;
    color: white;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 18px 18px 0 0;
    text-align: center;
}

.widget-section {
    padding: 15px;
}

.widget-title {
    font-weight: bold;
    color: #0056b3;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 6px;
}

.accessibility-panel button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: .2s;
}

    .accessibility-panel button:hover {
        background: #f0f7ff;
        border-color: #0056b3;
    }

    .accessibility-panel button.active {
        background: #0056b3;
        color: white;
        border-color: #0056b3;
    }

        .accessibility-panel button.active::after {
            content: "✓";
            margin-left: auto;
            font-weight: bold;
        }

.btn-reset {
    background: #dc3545 !important;
    color: white !important;
    border: none !important;
}

#readingMask {
    display: none;
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999990;
}

#readingGuide {
    display: none;
    position: fixed;
    left: 0;
    width: 100%;
    height: 3px;
    background: red;
    pointer-events: none;
    z-index: 999991;
}

.high-contrast,
.high-contrast * {
    background: black !important;
    color: yellow !important;
    border-color: white !important;
}

body.grayscale #wrapper {
    filter: grayscale(100%);
}

body.invert #wrapper {
    filter: invert(100%);
}

.highlight-links a {
    background: yellow !important;
    color: blue !important;
    text-decoration: underline !important;
}

.highlight-headings h1,
.highlight-headings h2,
.highlight-headings h3,
.highlight-headings h4,
.highlight-headings h5 {
    background: yellow;
    color: black;
    padding: 3px;
}

#accessibility-widget {
    filter: none !important;
}



button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.form-control:focus,
.form-check-input:focus,
.btn:focus-visible {
    outline: 2px solid #ffd147;
    border-radius: 4px;
    border-color: #ffd147;
    box-shadow: 0 0 0 3px rgba(255, 209, 71, 0.35) !important;
}

a:focus-visible {
    background-color: #ffd147;
    color: #000000;
}
