/* Floating Panel */
.accessibility-wrapper {
    position: fixed !important;
    bottom: 20px;
    left: 20px;
    z-index: 100;
}

.accessibility-panel {
    position: absolute;
    bottom: 50px;
    left: 0;
    animation: fadeInUp 0.25s ease-out;
    max-height: 380px;
    overflow-y: auto;
    backdrop-filter: blur(6px);
    width: 300px;
}

.accessibility-panel li {
    list-style-type: none;
    margin-top: 2px;
    margin-bottom: 2px;
}

.hidden {
    display: none;
}

/* Animasi masuk */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tombol */
.accessibility-toggle {
    cursor: pointer;
    font-weight: bold;
    border-radius: 25px;
    background: linear-gradient(135deg, #00923f 0%, #04672f 100%);
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(4, 103, 47, 0.4);
    transition: all 0.3s ease;
    color: white;
}

.accessibility-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(4, 103, 47, 0.5);
    background: linear-gradient(135deg, #03be54 0%, #00923f 100%);
}

/* Tombol panel */
.acc-btn {
    width: 100%;
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #ccc;
    text-align: left;
}

.acc-btn:hover {
    background: #e3e3e3;
}

.acc-icon {
    display: flex;
    width: 20px;
    height: 20px;
    justify-content: center;
    align-items: center;
}

.acc-icon-svg {
    width: 18px;
    height: 18px;
    fill: #000; /* pastikan terlihat */
}

/* Efek */
/* .grayscale       { filter: grayscale(100%); } */
/* .high-contrast   { filter: contrast(180%) brightness(120%); } */
.dark-mode       { background-color: #111 !important; color: #eee !important; }
.light-mode      { background-color: #fff !important; color: #000 !important; }
.readable-font   { font-family: Arial, Helvetica !important; letter-spacing: .5px; }
.underline-links a { text-decoration: underline !important; }
.justify-text p  { text-align: justify !important; }

body[data-font-size] { font-size: var(--fontSize); }

/* ====== FIX POSISI & FILTER ====== */
html.grayscale  #page-content { filter: grayscale(100%); }
html.high-contrast #page-content { filter: contrast(180%) brightness(120%); }

/* memastikan tombol tetap fixed */
.accessibility-wrapper {
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;
    z-index: 100 !important;
}
