/* ==========================================================================
   TUTORIAL UI STYLES - VIRTUAL MAIMUN
   ========================================================================== */

/* 1. Overlay Gelap Utama */
.tutorial-overlay {
    position: fixed; 
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); 
    z-index: 99999990;
    display: flex; 
    align-items: center; 
    justify-content: center;
    animation: fadeIn 0.5s ease;
    /* KUNCI: Memastikan klik tembus ke elemen di bawah overlay */
    pointer-events: none;
}

/* 2. Kotak Dialog (Modal Putih) */
.tutorial-box {
    background-color: #fff; 
    padding: 30px; 
    border-radius: 20px;
    width: 450px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-align: center; 
    font-family: sans-serif;
    z-index: 99999999; 
    box-sizing: border-box; 
    /* Animasi Pop-in untuk kesan profesional */
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    /* PENTING: Mengembalikan kemampuan klik pada modal */
    pointer-events: auto;
}

/* 3. Maskot Utama - POSISI KIRI (Default) */
.mascot-active { 
    display: block; 
    width: 160px; 
    position: absolute; 
    left: -70px; 
    bottom: 0; 
    z-index: 100;
    transition: all 0.3s ease; /* Transisi halus saat pindah posisi */
}

/* Modifier Maskot Kanan - POSISI KANAN (Khusus Menu Hamburger) */
.mascot-right {
    left: auto !important;     /* Mematikan left: -70px */
    right: -70px !important;   /* Menentukan posisi kanan panel */
    transform: none !important; /* Hapus flip jika kamu mau atur hadapnya sendiri nanti */
}


/* 4. Highlight/Spotlight */
.spotlight {
    position: absolute; 
    z-index: 99999995; 
    pointer-events: none;
    border: 4px solid #00a0e9; 
    border-radius: 12px; 
    filter: drop-shadow(0 0 8px rgba(0, 160, 233, 0.8));
    /* Shadow gelap di luar spotlight */
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.85); 
}

/* 5. Tombol Navigasi */
.btn-nav { 
    margin: 10px; 
    padding: 10px 20px; 
    cursor: pointer; 
    border-radius: 10px; 
    border: none; 
    background-color: #00a0e9; 
    color: #fff; 
    font-weight: bold; 
    transition: background-color 0.3s ease;
    pointer-events: auto; /* Memastikan tombol ini bisa diklik */
}
.btn-nav:hover { background-color: #007bb5; }

/* 6. Animasi */
@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Transisi halus konten agar tidak berkedip */
#tutor-text, #mascot-img {
    transition: opacity 0.3s ease;
}