.accessibility-widget {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 10000;
    font-family: sans-serif !important;
    font-size: 16px !important;
    line-height: normal !important;
    text-align: left !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.accessibility-btn {
    width: 50px;
    height: 50px;
    background: #000;
    border-radius: 50% !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 2px solid #fff !important;
    transition: all 0.3s ease;
    padding: 0 !important;
    margin: 0 !important;
}

.accessibility-btn:hover {
    background: #2eb8ac;
    border-color: #2eb8ac !important;
}

.accessibility-btn:hover svg {
    fill: #fff;
}

.accessibility-btn svg {
    fill: #fff;
    width: 30px;
    height: 30px;
}

.accessibility-panel {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 320px;
    max-height: calc(100vh - 120px);
    height: auto !important;
    background: #000 !important;
    color: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    display: none;
    overflow: hidden;
    flex-direction: column;
    border: 2px solid #fff !important;
    box-sizing: border-box !important;
}

.accessibility-panel.active {
    display: flex;
}

.accessibility-header {
    padding: 15px !important;
    background: #111 !important;
    border-bottom: 1px solid #333 !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box !important;
}

.accessibility-header h3 {
    margin: 0 !important;
    font-size: 18px !important;
    color: #fff !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.accessibility-close {
    cursor: pointer;
}

.accessibility-content {
    padding: 10px !important;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    background: #000 !important;
    flex: 1;
    box-sizing: border-box !important;
}

.acc-option {
    padding: 12px 5px !important;
    background: #222 !important;
    color: #fff !important;
    border-radius: 8px !important;
    cursor: pointer;
    text-align: center !important;
    font-size: 13px !important;
    transition: all 0.2s;
    border: 1px solid #444 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    box-sizing: border-box !important;
    line-height: 1.2 !important;
}

.acc-option:hover {
    background: #fff;
    color: #000;
}

.acc-option.active {
    background: #fff;
    border-color: #000;
    color: #000;
}

.acc-option i {
    font-size: 18px;
    margin-bottom: 5px;
}

/* Accessibility transformations */
html.acc-grayscale { filter: grayscale(100%) !important; }
html.acc-high-contrast { filter: contrast(150%) !important; }
html.acc-negative { filter: invert(100%) !important; }
html.acc-bright { filter: brightness(120%) !important; }
html.acc-sepia { filter: sepia(100%) !important; }
html.acc-low-sat { filter: saturate(50%) !important; }
html.acc-high-sat { filter: saturate(200%) !important; }

.acc-night-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 150, 0, 0.15);
    pointer-events: none;
    z-index: 9999;
}

.acc-dyslexic {
    font-family: "OpenDyslexic", sans-serif !important;
}

@font-face {
    font-family: "OpenDyslexic";
    src: url("https://cdn.jsdelivr.net/npm/opendyslexic@1.0.3/OpenDyslexic-Regular.otf");
}

.acc-big-cursor {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 24 24' fill='black' stroke='white' stroke-width='1'><path d='M7 2l12 11.2l-5.8.5l3.3 7.3l-2.2 1l-3.2-7.4L7 19V2z'/></svg>"), auto !important;
}

.acc-big-cursor * {
    cursor: inherit !important;
}

.acc-highlight-links a {
    outline: 2px solid #ffcc00 !important;
    background: rgba(255, 204, 0, 0.2) !important;
}

.acc-highlight-headers h1,
.acc-highlight-headers h2,
.acc-highlight-headers h3,
.acc-highlight-headers h4,
.acc-highlight-headers h5,
.acc-highlight-headers h6 {
    outline: 2px solid #007bff !important;
}

.acc-text-spacing {
    letter-spacing: 0.1em !important;
}

.acc-line-height {
    line-height: 2 !important;
}

.acc-reading-guide {
    position: fixed;
    height: 4px;
    background: #ffcc00;
    width: 100%;
    pointer-events: none;
    z-index: 10001;
    display: none;
}

.acc-reading-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10001;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
    display: none;
}

.acc-stop-animations *,
.acc-stop-animations *::before,
.acc-stop-animations *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
}
