/* Accessibility Classes */

/* 1. High Contrast Mode */
body.a11y-high-contrast {
    background-color: #000000 !important;
    color: #ffff00 !important;
}
body.a11y-high-contrast * {
    background-color: transparent !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
}
body.a11y-high-contrast img, body.a11y-high-contrast video {
    filter: contrast(150%) !important;
}
body.a11y-high-contrast a {
    color: #00ff00 !important;
    text-decoration: underline !important;
}

/* 2. Monochrome Mode */
body.a11y-monochrome {
    filter: grayscale(100%) !important;
}

/* 3. Dyslexia Font Mode */
body.a11y-dyslexia * {
    font-family: Arial, Helvetica, sans-serif !important;
    letter-spacing: 0.1em !important;
    word-spacing: 0.2em !important;
    line-height: 1.6 !important;
}

/* 4. Highlight Links */
body.a11y-highlight-links a, body.a11y-highlight-links button {
    background-color: #ffeb3b !important;
    color: #000000 !important;
    text-decoration: underline !important;
    border: 2px solid #000 !important;
    font-weight: bold !important;
}

/* 5. Stop Animations */
body.a11y-stop-animations *, body.a11y-stop-animations #pejabatContainer {
    animation: none !important;
    transition: none !important;
}

/* Accessibility Menu UI */
#a11y-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #00764B;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 9999;
    transition: transform 0.3s;
    border: 2px solid #fff;
}
#a11y-btn:hover {
    transform: scale(1.1);
}

#a11y-panel {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 320px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 9998;
    transform: scale(0);
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}
#a11y-panel.active {
    transform: scale(1);
}

.a11y-header {
    background-color: #00764B;
    color: #fff;
    padding: 15px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.a11y-close {
    cursor: pointer;
    font-size: 18px;
}
.a11y-body {
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
}
.a11y-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}
.a11y-item:last-child {
    border-bottom: none;
}
.a11y-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}
.a11y-item-info i {
    width: 20px;
    text-align: center;
    color: #00764B;
    font-size: 18px;
}

/* Switch Toggle for a11y */
.a11y-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    margin-bottom: 0;
}
.a11y-switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}
.a11y-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}
.a11y-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .a11y-slider {
    background-color: #00764B;
}
input:checked + .a11y-slider:before {
    transform: translateX(20px);
}

/* Resizer Buttons */
.a11y-resizer {
    display: flex;
    gap: 10px;
}
.a11y-btn-size {
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    color: #333;
}
.a11y-btn-size:hover {
    background: #e0e0e0;
}
.a11y-reset-btn {
    width: 100%;
    margin-top: 10px;
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 6px;
    font-weight: bold;
}
