/* Accessibility Widget Styles */
#acc-widget-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    font-family: 'Open Sans', sans-serif;
}

#acc-widget-btn {
    width: 70px;
    height: 70px;
    background-color: #0c3c8e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    border: none;
    outline: none;
}

#acc-widget-btn:hover {
    transform: scale(1.1);
}

#acc-widget-btn i {
    font-size: 35px;
}

#acc-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 300px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: none;
    overflow: hidden;
    color: #333;
}

#acc-panel.active {
    display: block;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.acc-header {
    background: #0c3c8e;
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: 600;
}

.acc-body {
    padding: 15px;
}

.acc-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.acc-option:last-child {
    border-bottom: none;
}

.acc-label {
    font-size: 16px;
    font-weight: 500;
}

.acc-controls {
    display: flex;
    gap: 5px;
}

.acc-btn {
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 6px 14px;
    cursor: pointer;
    font-weight: bold;
    font-size: 15px;
    transition: background 0.2s;
}

.acc-btn:hover {
    background: #e0e0e0;
}

.acc-btn.active {
    background: #0c3c8e;
    color: white;
    border-color: #0c3c8e;
}

.acc-footer {
    padding: 10px;
    background: #f9f9f9;
    text-align: center;
}

#acc-reset {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    background: none;
    border: none;
    text-decoration: underline;
    cursor: pointer;
}

/* Accessibility Modes */

/* 1. Text Resizing managed via inline styles on html/body in JS */

/* 2. Color Contrast */
body.acc-monochrome>*:not(#acc-widget-container):not(#acc-reading-guide) {
    filter: grayscale(100%) !important;
}

body.acc-high-contrast {
    background-color: #000 !important;
    color: #fff !important;
}

body.acc-high-contrast *:not(#acc-widget-container):not(#acc-widget-container *) {
    background-color: transparent !important;
    color: #fff !important;
    border-color: #fff !important;
    background-image: none !important;
}

body.acc-high-contrast a:not(#acc-widget-container *) {
    color: #ffff00 !important;
    text-decoration: underline !important;
}

body.acc-high-contrast button:not(#acc-widget-container *) {
    background-color: #fff !important;
    color: #000 !important;
}

/* 3. Link Highlighting */
body.acc-highlight-links a {
    background-color: yellow !important;
    color: black !important;
    text-decoration: underline !important;
    outline: 2px solid orange !important;
}

/* 4. Cursor Enlargement */
body.acc-big-cursor {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath fill='black' stroke='white' stroke-width='1' d='M7,2l12,11.2l-5.8,1.4l3.3,6.2l-2.2,1.2l-3.3-6.2L7,22V2z'/%3E%3C/svg%3E"), auto !important;
}

body.acc-big-cursor * {
    cursor: inherit !important;
}

/* 5. Focus Indication */
body.acc-focus-indicator *:focus {
    outline: 5px solid lime !important;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5) !important;
}

/* 6. Reading Guide */
#acc-reading-guide {
    position: fixed;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 0, 0, 0.5);
    z-index: 9999;
    pointer-events: none;
    display: none;
}

body.acc-reading-guide-active #acc-reading-guide {
    display: block;
}