/* Accessibility Floating Button & Menu */
.acc-floating-btn {
    position: fixed;
    bottom: 103px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #0056b3;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 999999;
    transition: transform 0.2s, background-color 0.2s;
}

.acc-floating-btn:hover {
    transform: scale(1.05);
    background-color: #004494;
}

.acc-floating-btn i {
    font-size: 32px;
}

.acc-menu {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 260px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    z-index: 999998;
    overflow: hidden;
    font-family: inherit;
    border: 1px solid #eee;
}

.acc-menu.show {
    display: flex;
}

.acc-menu-header {
    background-color: #0056b3;
    color: white;
    padding: 15px;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
}

.acc-menu-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #333;
    font-size: 14px;
    transition: background-color 0.2s;
}

.acc-menu-item.active {
    background-color: #e6f2ff;
    font-weight: bold;
    color: #0056b3;
}

.acc-menu-item:last-child {
    border-bottom: none;
}

.acc-menu-item:hover {
    background-color: #f8f9fa;
}

.acc-menu-item i {
    margin-right: 12px;
    font-size: 22px;
    width: 24px;
    text-align: center;
}

/* Accessibility Modes */
html.acc-high-contrast {
    filter: invert(100%) hue-rotate(180deg) contrast(120%);
}

html.acc-high-contrast img, 
html.acc-high-contrast video,
html.acc-high-contrast iframe {
    filter: invert(100%) hue-rotate(180deg);
}

html.acc-grayscale {
    filter: grayscale(100%);
}

html.acc-grayscale.acc-high-contrast {
    filter: invert(100%) hue-rotate(180deg) contrast(120%) grayscale(100%);
}

body.acc-large-text {
    font-size: 120% !important;
}

body.acc-large-text h1, 
body.acc-large-text h2, 
body.acc-large-text h3, 
body.acc-large-text h4, 
body.acc-large-text h5, 
body.acc-large-text h6,
body.acc-large-text p,
body.acc-large-text a,
body.acc-large-text span,
body.acc-large-text div,
body.acc-large-text td,
body.acc-large-text th,
body.acc-large-text li {
    font-size: 110% !important;
}

body.acc-highlight-links a {
    background-color: yellow !important;
    color: black !important;
    text-decoration: underline !important;
    font-weight: bold !important;
}
