/**
 * ========================================
 * KODE CSS: wd-notif (Dengan Background Gambar)
 * ========================================
 */

/* Kontainer Utama - Menggunakan nama class yang unik */
.wd-notif-container{
    transition: all 500ms ease;
    transition-property: opacity, bottom, right;
    font-family: Arial, sans-serif;
    font-size: 14px;
    min-height: 14px;
    position: fixed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
    line-height: 22px;
    padding: 12px 18px;
    opacity: 0;
    z-index: 9999;
    
    /* === PROPERTI TAMBAHAN UNTUK BACKGROUND GAMBAR === */
    background-image: url('https://cdn.ketua123.cloud/bg-notif.jpg'); 
    background-size: 100% 100%; /* Membuat gambar mengisi seluruh kontainer */
    background-repeat: no-repeat; /* Mencegah gambar berulang */
    background-color: transparent; /* Pastikan tidak ada warna solid di bawah gambar */
    /* ================================================= */
}

/* Posisi Awal (di luar layar) */
.wd-notif-container.bottom-right {
    top: auto !important;
    bottom: -100px; /* Sembunyikan di luar layar */
    right: 20px;
}

/* Posisi Saat Aktif (DESKTOP) */
.wd-notif.bottom-right {
    /* Mendorong notifikasi 75px dari bawah */
    bottom: 75px !important;
    /* Mendorong notifikasi 10px dari kanan */
    right: 10px !important;
    
    /* Atur lebar dan pastikan border-radius sesuai dengan gambar */
    max-width: 320px; 
    border-radius: 4px; 
}


/* Media Query untuk Mobile (Tampilan Layar Kecil) */
@media (max-width: 640px) {
    
    /* 1. Aturan Kontainer Umum Mobile */
    .wd-notif-container {
        margin: 0 !important;
    }
    
    /* 2. ATURAN KRITIS (POSISI SAAT AKTIF DI MOBILE) */
    .wd-notif.bottom-right {
        bottom: 75px !important; 
        max-width: 80%;
        min-width: 280px;
        right: 10px !important; 
        left: auto !important; 
        border-radius: 4px;
    }
    
    /* Posisi awal (sembunyi) harus diatur di dalam media query juga */
    .wd-notif-container.bottom-right {
        right: 15px;
    }
}