/* web/css/accessibility.css */

/* Wadah Utama Floating di Pojok Kanan Bawah */
.fab-accessibility-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 99999;
    font-family: Arial, sans-serif;
}

/* Tombol Lingkaran Utama (FAB) */
.fab-main-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #0056b3;
    color: white;
    border: none;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab-main-btn:hover {
    background-color: #004085;
    transform: scale(1.05);
}

/* Animasi Rotasi Tombol Saat Menu Aktif */
.fab-main-btn.active {
    transform: rotate(15deg);
    background-color: #dc3545; /* Berubah merah saat menu terbuka */
}

/* Kotak Menu Opsi */
.fab-menu-options {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 240px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.25);
    padding: 15px;
    display: none; /* Tersembunyi secara default */
    border: 1px solid #e0e0e0;
    animation: fadeInUp 0.2s ease-out;
}

/* Animasi Muncul */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fab-menu-options.show {
    display: block;
}

/* Tipografi di Dalam Menu */
.fab-menu-title {
    font-weight: bold;
    font-size: 15px;
    color: #333;
    margin-bottom: 10px;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}

.fab-group-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #777;
    margin-top: 10px;
    margin-bottom: 5px;
    font-weight: 600;
}

/* Baris Tombol Font */
.fab-btn-row {
    display: flex;
    gap: 5px;
}

.fab-sub-btn {
    flex: 1;
    padding: 6px;
    border: 1px solid #ccc;
    background: #f8f9fa;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    font-size: 13px;
}
.fab-sub-btn:hover { background: #e2e6ea; }

/* Tombol Berbentuk Baris */
.fab-action-link {
    display: block;
    width: 100%;
    padding: 8px 10px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: left;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
}

.btn-voice {
    background-color: #e3f2fd;
    color: #0d47a1;
    border-color: #bbdefb;
}
.btn-voice:hover { background-color: #bbdefb; }

/* ==========================================================================
   STYLE MODIFIKASI UNTUK MODE KONTRAS TINGGI / MONOCHROME (FIXED)
   ========================================================================== */

/* Ubah seluruh halaman menjadi hitam putih */
body.monochrome { 
    filter: grayscale(100%) !important; 
}

/* KECUALIKAN TOMBOL AKSESIBILITAS: Kembalikan warnanya agar tidak ikut hilang/abu-abu */
body.monochrome .fab-accessibility-container {
    filter: grayscale(0%) !important; /* Memaksa tombol tetap berwarna biru/asli */
    z-index: 9999999 !important; /* Memastikan tidak tertutup elemen lain */
}

/* Modifikasi tambahan jika Anda menggunakan Mode Kontras Tinggi */
body.high-contrast { 
    background-color: #000000 !important; 
    color: #ffff00 !important; 
}

body.high-contrast .fab-menu-options { 
    background-color: #111 !important; 
    border: 2px solid #fff; 
}

body.high-contrast .fab-menu-title, 
body.high-contrast .fab-group-label { 
    color: #fff !important; 
}

body.high-contrast .fab-sub-btn { 
    background: #000; 
    color: #fff; 
    border-color: #fff; 
}
