/* Styling untuk Tombol Floating dan Menu */
#a11y-widget {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 9999;
	font-family: Arial, sans-serif;
}

#a11y-toggle {
	background-color: #0056b3;
	color: white;
	border: none;
	border-radius: 50%;
	width: 50px;
	height: 50px;
	font-size: 24px;
	cursor: pointer;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

#a11y-menu {
	display: none;
	position: absolute;
	bottom: 60px;
	right: 0;
	background-color: white;
	border: 1px solid #ccc;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	width: 200px;
	overflow: hidden;
}

#a11y-menu button {
	width: 100%;
	padding: 12px;
	border: none;
	border-bottom: 1px solid #eee;
	background: none;
	text-align: left;
	cursor: pointer;
	font-size: 14px;
	color: #333;
}

#a11y-menu button:hover {
	background-color: #f0f0f0;
}

/* --- KELAS EFEK AKSESIBILITAS --- */

/* 1. Kontras Tinggi */
body.a11y-high-contrast {
	background-color: #000 !important;
	color: #fff !important;
}
body.a11y-high-contrast * {
	background-color: #000 !important;
	color: #fff !important;
	border-color: #fff !important;
}

/* 2. Mode Grayscale (Buta Warna) - FIX SCROLL */
body.a11y-grayscale > *:not(#a11y-widget) {
	filter: grayscale(100%) !important;
}

/* 3. Font Mudah Dibaca (Disleksia) */
body.a11y-readable-font * {
	font-family: "Comic Sans MS", "Arial", sans-serif !important;
	line-height: 1.5 !important;
}

/* --- MODE SUARA (PEMBACA LAYAR) --- */
body.a11y-speech-active {
	cursor: help !important; /* Mengubah kursor agar pengunjung tahu mode suara aktif */
}

/* Sorotan untuk teks yang sedang dibaca */
.a11y-speaking {
	outline: 2px dashed #ff9900 !important;
	background-color: rgba(255, 153, 0, 0.2) !important;
	border-radius: 4px;
}
