
/* Tambahkan ini di dalam <style> index.php */



    /* 4. PROTEKSI: Frontend UI Restriction */
        @media (min-width: 768px) {
            body { display: none !important; } /* Sembunyikan konten jika layar dibuka lebar (Desktop) */
        }
        
        /* Mencegah seleksi teks */
        * { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
    
        :root {
            --bg-dark: #000000;
            --card-bg: rgba(15, 23, 42, 0.6);
            --accent-cyan: #22d3ee;
            --accent-purple: #a855f7;
            --accent-blue: #3b82f6;
            --accent-yellow: #eab308;
            --accent-red: #ef4444;
            --accent-green: #22c55e;
            --text-main: #f8fafc;
            --text-dim: #475569; 
        }

        * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body, html {
    margin: 0; padding: 0; 
    height: 100%; width: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* 1. Deep Obsidian Base */
    background-color: #020617;
    
    /* 2. Layered Mesh Gradient: Memberikan efek pendaran cahaya dari pojok kiri dan kanan atas */
    background-image: 
        radial-gradient(circle at 50% -20%, rgba(30, 58, 138, 0.3) 0%, transparent 70%),
        radial-gradient(circle at 0% 0%, rgba(15, 23, 42, 0.5) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(2, 6, 23, 1) 0%, transparent 50%);
    
    background-attachment: fixed;
    color: #f8fafc;
    overflow-x: hidden;
}

/* 3. Subtle Tech Grid: Memberikan tekstur profesional yang sangat tipis */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    /* Grid garis sangat halus */
    background: #0f172a; 
    background-size: 30px 30px; /* Ukuran kotak grid */
    z-index: -1;
    pointer-events: none;
}

        /* --- Header & AI Animation --- */
      /* --- Header & AI Animation (FIXED) --- */
.logo-container { 
    text-align: center; 
    padding-top: 25px; 
    margin-bottom: 25px; 
    position: relative; 
    z-index: 10; 
}

.ai-box {
    display: inline-flex;    /* PENTING: Agar box menciut mengikuti panjang teks */
    align-items: center;
    justify-content: center;
    width: auto;             /* Pastikan tidak ada width: 60px */
    height: auto;            /* Pastikan tidak ada height: 60px */
    min-width: 100px;        /* Lebar minimal */
    margin: 0 auto 15px;
    padding: 10px 25px;      /* Ruang napas di dalam kotak */
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--accent-blue);
    animation: glowCycle 6s infinite ease-in-out;
}

.brand-text {
    font-family: 'BatangasBold', sans-serif;
    font-size: 20px;         /* Sesuaikan ukuran font */
    letter-spacing: 2px;
    margin: 0;
    color: #fff;
    white-space: nowrap;     /* Mencegah teks turun ke bawah jika box sempit */
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}

.sub-text {
    font-size: 14px;
    color: #ccd8e8;
    letter-spacing: 2px;
    margin-top: 5px;
    font-weight: 600;
    text-transform: uppercase;
    display: block;
}

/* Animasi Glow yang sudah diperbaiki tanda kurungnya */
@keyframes glowCycle {
    0%, 100% { 
        border-color: var(--accent-cyan); 
        box-shadow: 0 0 15px rgba(34, 211, 238, 0.4), inset 0 0 10px rgba(34, 211, 238, 0.2);
        transform: scale(1);
    }
    33% { 
        border-color: var(--accent-purple); 
        box-shadow: 0 0 20px rgba(168, 85, 247, 0.5), inset 0 0 10px rgba(168, 85, 247, 0.3);
        transform: scale(1.03);
    }
    66% { 
        border-color: var(--accent-blue); 
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.4), inset 0 0 10px rgba(59, 130, 246, 0.2);
        transform: scale(1);
    }
}

        /* --- AI Loading Bar --- */
        #ai-loader {
            display: none; position: fixed; top: 50%; left: 50%;
            transform: translate(-50%, -50%); width: 150px; z-index: 10000;
        }
        .loader-bar {
            height: 3px; width: 100%; background: rgba(255,255,255,0.1);
            border-radius: 10px; overflow: hidden; position: relative;
        }
        .loader-progress {
            width: 40%; height: 100%; background: var(--accent-cyan);
            box-shadow: 0 0 15px var(--accent-cyan);
            animation: loadingMove 1.5s infinite linear;
        }
        @keyframes loadingMove { from { left: -50%; } to { left: 100%; } }

        /* --- Grid Menu 6 Halaman --- */
        .grid-container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 20px; max-width: 500px; margin: 0 auto; }
        .menu-card {
            position: relative; /* Penting untuk posisi badge */
            background: var(--card-bg); padding: 25px 10px; border-radius: 13px;
            text-align: center; border: 1px solid rgba(255,255,255,0.03); transition: 0.3s;
            cursor: pointer;
        }
        .menu-card:active { transform: scale(0.95); }
        .menu-card i { font-size: 28px; margin-bottom: 10px; display: block; transition: 0.3s; }
               /* --- Label Menu --- */
        /* --- Penyesuaian Teks Label agar Lebih Terang & Profesional --- */
        .menu-card span {
            color: #cbd5e1; /* Slate lebih terang: mudah dibaca, tetap elegan */
            font-weight: 800; /* Tebalkan sedikit agar lebih tegas */
            text-transform: uppercase;
            font-size: 10px;
            margin-top: 0px;
            display: block;
            transition: color 0.3s ease;
            letter-spacing: 1px;
        }
        
        /* Efek saat ditekan (Active) */
        .menu-card:active span {
            color: #ffffff; /* Berubah menjadi putih bersih saat diklik */
        }

        /* --- Warna Ikon & Glow Efek (Professional Slate Palette) --- */

/* --- Skema Warna Vibrant Neon-Pastel (Lebih Cerah & Glowing) --- */

/* Profile: Sky Blue Vibrant - Lebih tegas dan bersih */
 .colored-profile i { color: #38bdf8; text-shadow: 0 0 0px rgba(56, 189, 248, 0.4); }
/* Produk: Bright Aquamarine - Mencerminkan higienitas produk PG-USP */
 .colored-produk i  { color: #2dd4bf; text-shadow: 0 0 0px rgba(45, 212, 191, 0.4); }
/* Pesanan: Bright Amber - Warna emas transaksi yang lebih menyala */
 .colored-pesanan i { color: #fbbf24; text-shadow: 0 0 0px rgba(251, 191, 36, 0.4); }

/* Support: Bright Coral/Rose - Lebih terlihat untuk pusat bantuan */
.colored-support i { color: #c084fc; text-shadow: 0 0 0px rgba(192, 132, 252, 0.4) }



/* --- Label Menu (Tetap Slate 300 agar seimbang) --- */

        .menu-badge-left {
            position: absolute;
            top: 8px;
            right: 38px; /* Posisi di pojok kiri atas */
            background: #029e11; /* Biru Pastel (Sky Blue) */
            color: #000; /* Teks hitam agar kontras dengan warna pastel */
            font-size: 9px;
            font-weight: 800;
            padding: 2px 6px;
            border-radius: 4px;
            border: 1px solid #0f570b;
            box-shadow: 0 0 10px rgba(125, 211, 252, 0.4);
            z-index: 11;
        }
        
                /* --- Badge Notifikasi Home --- */
        .menu-badge-home {
            position: absolute;
            top: 8px;    /* Perkecil nilai ini (misal dari 15px ke 8px) untuk menaikkan posisi */
            right: 8px;  /* Perkecil nilai ini untuk menggeser lebih rapat ke pojok kanan */
            background: #db4b60;
            color: #fff;
            font-size: 9px;
            font-weight: 800;
            padding: 2px 6px;
            border-radius: 4px;
            border: 1px solid #752a38;
            box-shadow: 0 0 10px rgba(125, 211, 252, 0.4);
            z-index: 10; /* Naikkan z-index agar tidak tertutup oleh efek cahaya biru neon */
        }
        
        @keyframes pulse-badge {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }

        /* --- SPA Content & Blur Transition --- */
        #spa-content { display: none; height: 100%; width: 100%; overflow-y: auto; padding-bottom: 100px; transition: filter 0.3s ease, opacity 0.3s ease; }
        .page-blur { filter: blur(10px); opacity: 0.4; }

        /* --- Static Navigation Footer --- */
        .nav-actions {
            display: none; position: fixed; bottom: 30px; right: 25px;
            gap: 12px; z-index: 9999; align-items: center;
        }
        .btn-static {
            width: 55px; height: 55px; border-radius: 50%; border: none;
            display: flex; align-items: center; justify-content: center;
            font-size: 18px; cursor: pointer; box-shadow: 0 8px 20px rgba(0,0,0,0.6);
            display: none; transition: 0.2s;
        }
        .btn-static:active { transform: scale(0.85); }
        
        .btn-back { background: #f8fafc; color: #000; display: flex; }
        .btn-save { background: #22c55e; color: #fff; }
        .btn-edit { background: #fde047; color: #000; }
        .btn-delete { background: #ef4444; color: #fff; }
        .btn-topup { background: var(--accent-purple); color: #fff; }
        .btn-notif { background: var(--accent-blue); color: #fff; }
        .btn-cart { background: #eab308; color: #000; position: relative; }

        .badge-qty {
            position: absolute; top: -5px; right: -5px; background: #ef4444;
            color: #fff; font-size: 10px; font-weight: 800; padding: 2px 6px;
            border-radius: 10px; border: 2px solid #000;
        }

        .fade-in { animation: fadeIn 0.4s forwards; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
        
        /* --- Efek Cahaya Bergerak Subtil --- */

.menu-card {
    overflow: hidden; /* Memastikan cahaya tidak keluar dari kotak */
}

.menu-card::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center, 
        rgba(255, 255, 255, 0.04) 0%, 
        transparent 50%
    );
    pointer-events: none; /* Agar tidak mengganggu klik */
    animation: randomLight 12s infinite ease-in-out;
    opacity: 0.6;
}

/* Membuat gerakan cahaya berbeda-beda di setiap kartu agar terasa "random" */
.menu-card:nth-child(2n)::after { animation-duration: 15s; animation-delay: -2s; }
.menu-card:nth-child(3n)::after { animation-duration: 18s; animation-delay: -5s; }
.menu-card:nth-child(4n)::after { animation-duration: 10s; animation-delay: -1s; }

@keyframes randomLight {
    0% { transform: translate(-20%, -20%); }
    25% { transform: translate(10%, -10%); }
    50% { transform: translate(-10%, 20%); }
    75% { transform: translate(20%, 10%); }
    100% { transform: translate(-20%, -20%); }
}

/* Tambahan: Efek saat hover atau active agar lebih responsif */
.menu-card:active::after {
    background: radial-gradient(
        circle at center, 
        rgba(255, 255, 255, 0.08) 0%, 
        transparent 40%
    );
    transition: 0.3s;
}

/* --- Pembaruan Efek Cahaya (Lebih Jelas & Dinamis) --- */

.menu-card {
    overflow: hidden; 
    position: relative;
}

.menu-card::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center, 
        rgba(255, 255, 255, 0.12) 0%, /* Intensitas dinaikkan dari 0.04 ke 0.12 */
        rgba(255, 255, 255, 0.05) 30%,
        transparent 60%
    );
    pointer-events: none;
    animation: randomLight 8s infinite ease-in-out; /* Tempo dipercepat dari 12s ke 8s */
    opacity: 1; /* Opasitas penuh untuk layer gradient */
}

/* Variasi gerakan agar tidak seragam */
.menu-card:nth-child(odd)::after { 
    animation-duration: 10s; 
    animation-direction: reverse; 
}

@keyframes randomLight {
    0% { transform: translate(-25%, -25%); }
    33% { transform: translate(15%, -10%); }
    66% { transform: translate(-10%, 20%); }
    100% { transform: translate(-25%, -25%); }
}

/* Efek Kilatan Saat Menu Ditekan */
.menu-card:active::after {
    background: radial-gradient(
        circle at center, 
        rgba(255, 255, 255, 0.2) 0%, 
        transparent 50%
    );
    transition: 0.2s;
}

/* --- Efek Cahaya Bergerak Biru Neon Subtil --- */

.menu-card {
    overflow: hidden; /* Memastikan cahaya tidak keluar dari kotak */
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.05), rgba(15, 23, 42, 1)); 
    border: 1px solid rgba(34, 211, 238, 0.2);
}

.menu-card::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center, 
        rgba(34, 211, 238, 0.06) 0%, /* Warna biru neon sangat subtil */
        transparent 50%
    );
    pointer-events: none; /* Agar tidak mengganggu klik */
    animation: randomLight 12s infinite ease-in-out;
    opacity: 0.6;
}

/* Membuat gerakan cahaya berbeda-beda di setiap kartu agar terasa "random" */
.menu-card:nth-child(2n)::after { animation-duration: 15s; animation-delay: -2s; }
.menu-card:nth-child(3n)::after { animation-duration: 18s; animation-delay: -5s; }
.menu-card:nth-child(4n)::after { animation-duration: 10s; animation-delay: -1s; }

@keyframes randomLight {
    0% { transform: translate(-20%, -20%); }
    25% { transform: translate(10%, -10%); }
    50% { transform: translate(-10%, 20%); }
    75% { transform: translate(20%, 10%); }
    100% { transform: translate(-20%, -20%); }
}

/* Tambahan: Efek saat hover atau active agar lebih responsif */
.menu-card:active::after {
    background: radial-gradient(
        circle at center, 
        rgba(34, 211, 238, 0.12) 0%, /* Biru neon lebih kuat saat aktif */
        transparent 40%
    );
    transition: 0.3s;
}

/* --- Loading Custom Font --- */
@font-face {
    font-family: 'BatangasBold';
    src: url('../font/BatangasBold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

/* --- Update Logo Container Styling --- */
.logo-container h2 {
    font-family: 'BatangasBold', sans-serif;
    letter-spacing: 3px; /* Sedikit ditambah agar lebih elegan */
    margin: 0;
    font-size: 24px; /* Sesuaikan ukuran jika diperlukan */
}

.logo-container p {
    font-family: 'BatangasBold', sans-serif;
    font-size: 12px;
    color: #ccd8e8;
    letter-spacing: 2.5px;
    margin-top: 5px;
    font-weight: 400; /* Batangas Bold sudah tebal, jadi p cukup normal */
    opacity: 0.9;
}

/* Tambahkan di dalam <style> index.php */
.nav-actions {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-static {
    transition: transform 0.2s, opacity 0.3s;
}


/* --- Slideshow CSS Updated --- */
.slideshow-wrapper {
    margin: 10px 20px 25px 20px; 
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 160px; 
    border-radius: 13px;
    overflow: hidden; /* Ini yang menyebabkan dot terpotong jika di dalam */
    border: 1px solid rgba(34, 211, 238, 0.2);
    background: var(--card-bg);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.mySlides {
    display: none;
    height: 100%;
}

.mySlides img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* Dot Navigation - SEKARANG DI LUAR FOTO */
.dot-container {
    text-align: center;
    padding: 10px 0; /* Memberi ruang di bawah foto */
    width: 100%;
    position: relative; /* Diubah dari absolute */
    bottom: 0; /* Reset posisi */
}

.dot {
    height: 4px;
    width: 15px;
    margin: 0 3px;
    background-color: rgba(255,255,255,0.15); /* Sedikit lebih redup agar elegan */
    border-radius: 2px;
    display: inline-block;
    transition: all 0.4s ease;
}

.active-dot {
    background-color: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
    width: 25px;
}

#btn-report {
    background: #38bdf8; 
    color: #000; /* Teks hitam jika background sangat terang */
    position: relative;
}

#btn-trans {
    background: #fef08a; /* Kuning muda lembut */
    color: #854d0e;      /* Teks cokelat tua agar kontrasnya tetap nyaman */
    position: relative;
    border: none;
    box-shadow: 0 0 10px rgba(254, 240, 138, 0.2); /* Glow tipis senada */
}

.btn-static:active {
    transform: scale(0.9);
    filter: brightness(1.2);
}


/* --- CSS Tambahan untuk index.php (BUG FIX MOBILE SCROLL) --- */
.modal-overlay {
    display: none; /* Default hidden agar kompatibel dengan jQuery fadeIn() */
    position: fixed; 
    z-index: 10005; /* PENTING: Ditingkatkan agar mutlak di atas .nav-actions (9999) */
    left: 0; 
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(15, 23, 42, 0.8); /* Warna gelap yang lebih menyatu */
    backdrop-filter: blur(4px);
    overflow-y: auto; /* Memastikan bisa di-scroll jika konten panjang */
    overflow-x: hidden;
    padding: 30px 10px; /* Beri ruang napas atas-bawah agar tidak menempel di tepi layar HP */
    box-sizing: border-box;
    /* CATATAN: Jangan gunakan display: flex di sini agar tombol close (X) tidak terpotong di HP kecil */
}

/* Pastikan kotak modal di dalamnya bisa merespons padding overlay dengan baik */
.modal-overlay > .add-product-modal {
    margin: 0 auto; /* Otomatis ke tengah layar secara horizontal */
}