/* ACCESSIBILITY MODULE CSS */
#accessibility-widget {
    position: fixed;
    bottom: 20px;
    right: 20px; /* Changed from left to right */
    z-index: 10000;
    font-family: 'Arial', sans-serif;
}

#accessibility-toggle-btn {
    background-color: #005a9c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}
#accessibility-toggle-btn:hover {
    background-color: #003d6b;
}

#accessibility-panel {
    display: none;
    position: absolute;
    bottom: 75px;
    right: 0; /* Changed from left to right */
    width: 320px; /* Made wider */
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    padding: 20px;
    animation: slide-up 0.3s ease-out;
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#accessibility-panel.active {
    display: block;
}

#accessibility-panel h3 {
    margin-top: 0;
    font-size: 1.3em;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accessibility-option {
    margin-bottom: 15px;
}

.accessibility-option-title {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #555;
}

.accessibility-option button, #close-accessibility-panel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.accessibility-option button {
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    padding: 10px 15px;
    cursor: pointer;
    margin-right: 5px;
    margin-bottom: 5px;
    border-radius: 5px;
    font-size: 1em;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.accessibility-option button:hover {
    background-color: #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.accessibility-option button:last-child {
    margin-right: 0;
}

/* Specific styling for the single Reset All button */
#reset-styles-btn {
    width: 100%;
    margin-top: 10px;
}


#close-accessibility-panel {
    width: 100%;
    background-color: #d9534f;
    color: white;
    border: none;
    padding: 12px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 15px;
    transition: background-color 0.3s;
}
#close-accessibility-panel:hover {
    background-color: #c9302c;
}

/* Accessibility Feature Classes (to be toggled with JS) */
body.high-contrast {
    background-color: #000000 !important;
    color: #ffffff !important;
}
body.high-contrast *, body.high-contrast *:before, body.high-contrast *:after {
     background-color: #000000 !important;
     color: #ffffff !important;
     border-color: #ffffff !important;
}

body.high-contrast a {
    color: #FFFF00 !important;
}

body.grayscale {
    filter: grayscale(100%);
}

body.readable-font, body.readable-font * {
    font-family: 'Arial', 'Helvetica', sans-serif !important;
}

body.highlight-links a {
    background-color: #FFEB3B !important;
    color: #000000 !important;
    padding: 3px 5px;
    text-decoration: underline !important;
    border-radius: 3px;
}
