/* Styling Floating Button Utama */
.a11y-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: transform 0.3s ease;
}
.a11y-fab:hover {
    transform: scale(1.1);
}

/* Panel Menu Aksesibilitas */
.a11y-menu {
    position: fixed;
    bottom: 90px;
    right: 30px;
    background: #ffffff;
    width: 250px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 15px;
    z-index: 9998;
    display: none;
    flex-direction: column;
    gap: 10px;
    border: 1px solid #e5e7eb;
}
.a11y-menu.active {
    display: flex;
    animation: slideUp 0.3s ease;
}
.a11y-header {
    font-weight: bold;
    color: #1f2937;
    font-size: 14px;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 8px;
    margin-bottom: 5px;
    text-align: center;
}
.a11y-btn {
    background: #f9fafb;
    border: 1px solid #d1d5db;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.2s;
}
.a11y-btn:hover {
    background: #e5e7eb;
}
.a11y-btn.active-feature {
    background: #dcfce7;
    border-color: #10b981;
    color: #065f46;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* CSS Kelas Kontras Tinggi (Dark Mode Standar) */
body.high-contrast {
    background: #121212 !important;
    color: #f1f1f1 !important;
}

/* Terapkan ke semua elemen selain elemen widget aksesibilitas */
body.high-contrast *:not(.a11y-fab):not(.a11y-fab *):not(.a11y-menu):not(.a11y-menu *) {
    background-color: #121212 !important;
    color: #f1f1f1 !important;
    border-color: #444 !important;
}
body.high-contrast a:not(.a11y-menu *) {
    color: #fbbf24 !important; /* Warna kuning kontras */
}