/*
Theme Name: OVO PPOB Theme
Theme URI: https://ezidcode.com/
Author: Davidson Iglesias Rumondor
Author URI: https://ezidcode.com/
Description: Theme WordPress dengan tampilan modern seperti aplikasi PPOB, dirancang khusus untuk plugin WP PPOB Manager.
Version: 1.7.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ovoppob
*/

/* --- Palet Warna & Pengaturan Global --- */
:root {
    --app-purple: #4E2C84;
    --app-purple-dark: #371766;
    --app-bg: #f3f4f8;
    --text-color: #140A39;
    --text-light: #6c757d;
    --card-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--app-bg);
    color: var(--text-color);
    margin: 0 0 80px 0; /* Memberi ruang untuk footer nav */
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

/* --- Latar Belakang Header FINAL dengan Kontrol Absolut di HP --- */

/* 1. Aturan Default untuk Desktop */
.app-header {
    position: relative;
    overflow: hidden;
    background-color: var(--app-purple);

    /* GANTI URL DI BAWAH INI dengan URL gambar Anda */
    background-image: url('assets/images/header-bg.gif');
    
    background-size: cover; /* 'cover' bekerja baik di desktop */
    background-position: center top; /* Fokus di bagian atas-tengah */
    background-repeat: no-repeat;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

/* 2. Aturan KHUSUS yang Hanya Aktif di Layar HP (lebar di bawah 768px) */
@media (max-width: 768px) {
    .app-header {
        /* KUNCI: Perbesar gambar secara vertikal dan biarkan lebarnya otomatis.
           Nilai 150% akan "zoom in" pada gambar. Anda bisa menaikkannya
           (misal: 180%) jika ingin bagian bawah lebih terpotong. */
        background-size: auto 160%;

        /* Setelah di-zoom, kita tetap memposisikannya di atas */
        background-position: center top;
    }
}

/* Pastikan konten (teks, saldo, dll) tetap di atas latar belakang */
.header-main, .header-menu {
    position: relative;
    z-index: 2;
    background: none;
}




.site-branding {
    display: flex;
    align-items: center;
}

.site-logo img {
    width: 95px;
    height: 95px;
    border-radius: 8px;
    margin-right: 70px;
}

.site-info .site-name {
    font-size: 14px;
    font-weight: 500;
    opacity: 1; /* k */
    display: block;
    color: #fff; /* Warna putih untuk nama website */
}

.site-info .user-balance {
    font-size: 18px;
    font-weight: bold;
    display: block;
    color: #fff; /* Tambahkan ini */
}
.user-balance a { color: #fff; text-decoration: none; font-size: 14px; }

.header-promo a {
    background-color: rgba(255,255,255,0.15);
    padding: 8px 15px;
    border-radius: 20px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.header-menu {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    text-align: center;
}

.header-menu a {
    color: white;
    text-decoration: none;
}

.header-menu .icon-circle {
    width: 45px;
    height: 45px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin: 0 auto 8px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.header-menu span {
    font-size: 13px;
    font-weight: 500;
}

/* --- Banner Notifikasi & Promo --- */
.notification-banner {
    background-color: #fff;
    padding: 12px 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    box-shadow: var(--card-shadow);
    margin: 15px auto;
}
.notification-banner .fa-bell {
    color: var(--app-purple);
    margin-right: 10px;
}
.notification-banner marquee {
    font-size: 14px;
    font-weight: 500;
}

.promo-banner {
    background-color: var(--app-purple-dark);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
}
.promo-info { display: flex; flex-direction: column; }
.promo-title { font-weight: bold; font-size: 16px; }
.promo-subtitle { font-size: 13px; opacity: 0.8; }
.promo-link {
    background: #fff;
    color: var(--app-purple);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
}


/* --- Konten Halaman & Styling Plugin PPOB --- */
.page-content-wrapper {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.wppob-category-item {
    border: none;
    box-shadow: none;
    padding: 10px 5px;
    background-color: transparent;
}
.wppob-category-item:hover img {
    transform: scale(1.1);
}
.wppob-category-item span {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-light);
}

/* --- Navigasi Bawah (Footer) --- */
.app-footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    display: flex;
    justify-content: space-around;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    z-index: 1000;
    border-top: 1px solid #f0f0f0;
}
.footer-nav-item {
    text-align: center;
    padding: 10px 5px;
}
.footer-nav-item a {
    text-decoration: none;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.footer-nav-item .fa-solid { font-size: 20px; }
.footer-nav-item span { font-size: 11px; font-weight: 500; }
.footer-nav-item.active a {
    color: var(--app-purple);
}

/* --- Menu Samping (Sidebar) --- */
.user-sidebar-menu {
    position: fixed;
    top: 0;
    right: 0; /* Posisikan di tepi kanan layar */
    width: 380px; /* Atur lebar sidebar di desktop */
    height: 100%;
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 2000;
    
    /* KUNCI: Sembunyikan dengan menggesernya 100% ke kanan dari posisinya */
    transform: translateX(100%); 
    
    /* Animasi transisi yang lebih halus */
    transition: transform 0.35s ease-in-out; 
}

.user-sidebar-menu.active {
    /* Tampilkan dengan menggesernya kembali ke posisi semula (0) */
    transform: translateX(0);
}
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1500;
    display: none;
}
.sidebar-overlay.active {
    display: block;
}
.sidebar-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.sidebar-header h3 { margin: 0; flex-grow: 1; }
.close-sidebar-btn {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
}
.sidebar-links { list-style: none; margin: 0; padding: 0; }
.sidebar-links li { margin-bottom: 10px; }
.sidebar-links a {
    display: block;
    padding: 12px 15px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.2s;
}
.sidebar-links a:hover { background-color: #e9ecef; }
.sidebar-links a i { margin-right: 10px; width: 20px; text-align: center; }


/* --- Perbaikan: Menambahkan Kurva Elegan pada Header --- */

.app-header {
    position: relative; /* Diperlukan agar pseudo-element bisa diposisikan */
    overflow: hidden; /* Mencegah kurva keluar dari batas header */
    z-index: 1;
}

.app-header::after {
    content: '';
    position: absolute;
    bottom: -80px; /* Posisikan sebagian besar di luar header bawah */
    left: -25%; /* Mulai dari luar sisi kiri */
    right: -25%; /* Meluber hingga ke luar sisi kanan */
    height: 150px; /* Ketinggian dari kurva */
    background-color: rgba(255, 255, 255, 0.05); /* Warna transparan agar terlihat halus */
    border-radius: 50%; /* Ini adalah trik untuk menciptakan lengkungan sempurna */
    z-index: -1; /* Letakkan di belakang konten header */
}

/* Sedikit penyesuaian untuk menu agar tidak terhalang */
.header-menu {
    position: relative;
    z-index: 2;
}



/* ======================================================================== */
/* --- PERBAIKAN FINAL V5: MEMASTIKAN ANIMASI GELOMBANG BERJALAN --- */
/* ======================================================================== */

/* Pastikan header siap untuk animasi */
.app-header {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Gelombang 1 (Belakang) */
.app-header::before {
    content: '';
    position: absolute;
    z-index: -1;
    left: -50%;
    right: -50%;
    bottom: -120px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    animation: wave-animation-slow 15s ease-in-out infinite alternate !important;
}

/* Gelombang 2 (Depan) */
.app-header::after {
    content: '';
    position: absolute;
    z-index: -1;
    left: -40%;
    right: -40%;
    bottom: -140px;
    height: 190px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 45%;
    animation: wave-animation-fast 12s ease-in-out infinite alternate !important;
}

/* Definisi gerakan untuk gelombang lambat */
@keyframes wave-animation-slow {
    from {
        transform: translateX(-20px);
    }
    to {
        transform: translateX(20px);
    }
}

/* Definisi gerakan untuk gelombang cepat */
@keyframes wave-animation-fast {
    from {
        transform: translateX(15px);
    }
    to {
        transform: translateX(-15px);
    }
}

/* Pastikan konten header tetap di atas */
.header-main, .header-menu {
    position: relative;
    z-index: 2;
}

 /* ---Akhir 


/* --- Styling untuk Slider Promo --- */
.splide-container {
    margin-top: 25px;
    margin-bottom: 25px;
}

.splide__slide img {
    width: 100%;
    height: auto;
    border-radius: 12px; /* Membuat sudut gambar melengkung */
    display: block;
}

/* Kustomisasi titik navigasi (pagination) */
.splide__pagination__page {
    background: rgba(78, 44, 132, 0.3); /* Warna titik tidak aktif */
    opacity: 1;
}

.splide__pagination__page.is-active {
    background: var(--app-purple); /* Warna titik aktif */
    transform: scale(1.2);
}


/* ======================================================================== */
/* --- PERBAIKAN FINAL V4: KATEGORI STABIL UNTUK HP & DESKTOP --- */
/* ======================================================================== */

/* 1. Aturan KHUSUS untuk Layar HP (di bawah 768px) */
@media (max-width: 768px) {
    
  .page-content-wrapper {
    background-color: transparent !important; /* Membuat background menjadi transparan */
    box-shadow: none !important; /* Menghilangkan bayangan */
    padding: 0 !important; /* Menghilangkan jarak di dalam kotak */
    border: none !important; /* Menghilangkan garis tepi jika ada */
}

    /* Atur grid menjadi 4 kolom */
    .wppob-category-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 10px !important;
    }
}

/* 2. Gaya KARTU untuk setiap ikon kategori (berlaku di semua layar) */
/* Penyesuaian agar ikon kartu tetap terlihat bagus tanpa latar belakang */
.wppob-category-item {
    background: #fff; /* Latar belakang kartu ikon tetap putih */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06); /* Bayangan halus untuk efek 3D */
}


/* 3. Ukuran PASTI untuk gambar ikon */
.wppob-category-item img {
    width: 40px !important;   /* Ukuran lebar ikon dikecilkan sedikit */
    height: 40px !important;  /* Ukuran tinggi ikon dikecilkan sedikit */
    object-fit: contain;
    margin-bottom: 8px;
}

/* 4. Gaya untuk teks di bawah ikon */
.wppob-category-item span {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: var(--text-color) !important;
    line-height: 1.2;
}
/* Untuk desktop, biarkan pengaturan plugin yang bekerja */

/* 3. Perbaikan Tampilan "Info & Promo Spesial" */
.promo-banner {
    background-color: var(--app-purple-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-radius: 12px;
}

/* Hapus kode promo banner lama agar tidak konflik */
.promo-info, .promo-title, .promo-subtitle, .promo-link {
    all: unset; /* Reset semua style sebelumnya */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.promo-info .promo-title {
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    display: block;
}
.promo-info .promo-subtitle {
    color: #fff;
    opacity: 0.8;
    font-size: 13px;
    display: block;
}

.promo-link {
    background-color: #fff;
    color: var(--app-purple) !important;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap; /* Mencegah teks "Lihat Semua" turun baris */
    font-size: 14px;
}

/* 4. Perbaikan Footer (memastikan ikon di tengah) */
.footer-nav-item a {
    justify-content: center;
}


/* ======================================================================== */
/* --- GAYA UNTUK HALAMAN & SIDEBAR AKUN SAYA V2 --- */
/* ======================================================================== */
.account-container { background-color: #f3f4f8; }
.page-template-template-akun .app-header, .page-template-template-akun .site-content { display: none; }
.account-header { background: var(--app-purple); color: #fff; padding: 20px 15px 40px 15px; border-bottom-left-radius: 20px; border-bottom-right-radius: 20px; position: relative; overflow: hidden; }
.account-title { text-align: center; font-size: 18px; margin: 0 0 20px 0; }
.account-profile { display: flex; align-items: center; }
.account-avatar { width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 24px; margin-right: 15px; flex-shrink: 0; }
.account-user-info .user-name { font-weight: bold; font-size: 18px; display: block; }
.account-user-info .user-phone { font-size: 14px; opacity: 0.8; }
/* --- PERBAIKAN: Posisi Pemasukan & Pengeluaran --- */

.account-header {
    /* Tambahkan padding di bagian bawah header untuk memberi ruang */
    padding-bottom: 50px; 
}

.account-body {
    padding: 0 15px;
    /* Pindahkan summary box ke atas menggunakan transform, bukan margin */
    margin-top: -40px; 
    position: relative;
    z-index: 2;
}
.account-summary { display: flex; gap: 15px; margin-bottom: 20px; }
.summary-box { flex: 1; background: #fff; border-radius: 12px; padding: 15px; display: flex; align-items: center; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.summary-icon { width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; margin-right: 10px; }
.summary-icon.income { background-color: #28a745; }
.summary-icon.outcome { background-color: #dc3545; }
.summary-text span { display: block; font-size: 13px; color: #6c757d; }
.summary-text strong { display: block; font-size: 15px; font-weight: bold; }
.account-menu-group { background: #fff; border-radius: 12px; padding: 15px; margin-bottom: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.account-menu-group .group-title { margin: 0 0 10px 0; font-size: 14px; color: #6c757d; }
.account-menu-item { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid #f0f0f0; text-decoration: none; color: #333; }
.account-menu-group .account-menu-item:last-child { border-bottom: none; }
.menu-icon { font-size: 18px; color: var(--app-purple); width: 30px; text-align: center; margin-right: 15px; }
.account-menu-item span { flex-grow: 1; font-size: 15px; }
.menu-arrow { font-size: 14px; color: #ccc; }
.menu-info { color: #6c757d; }
.sign-out-wrapper { padding: 15px; }
.account-sign-out-btn { display: block; width: 100%; background: #f8d7da; color: #721c24; text-align: center; padding: 14px; border-radius: 12px; font-weight: bold; text-decoration: none; }
.footer-nav-desktop { display: none; }
.footer-nav-mobile { display: block; }
@media (min-width: 769px) {
    .footer-nav-desktop { display: block; }
    .footer-nav-mobile { display: none; }
    .user-sidebar-menu { width: 380px; } /* Lebar sidebar di desktop */
}






/* --- Menambahkan Latar Belakang Gambar ke Header Akun Saya --- */

.account-header {
    /* GANTI URL DI BAWAH INI dengan URL gambar Anda */
    background-image: url('assets/images/header-bg.gif');
    
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

/* Aturan khusus untuk HP agar gambar tidak terpotong */
@media (max-width: 768px) {
    .account-header {
        background-size: auto 160%;
    }
}








/* --- Menambahkan Efek Gelombang Bergerak pada Header Halaman Akun --- */

.account-header {
    position: relative; /* Diperlukan agar gelombang bisa diposisikan */
    overflow: hidden;   /* Mencegah gelombang keluar dari batas */
    z-index: 1;
}

/* Gelombang 1 (Belakang) */
.account-header::before {
    content: '';
    position: absolute;
    z-index: -1;
    left: -50%;
    right: -50%;
    bottom: -120px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    animation: wave-animation-slow 15s ease-in-out infinite alternate !important;
}

/* Gelombang 2 (Depan) */
.account-header::after {
    content: '';
    position: absolute;
    z-index: -1;
    left: -40%;
    right: -40%;
    bottom: -140px;
    height: 190px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 45%;
    animation: wave-animation-fast 12s ease-in-out infinite alternate !important;
}


/* --- Memberi Warna pada Ikon Font Awesome --- */
.account-menu-item .menu-icon {
    color: var(--app-purple); /* Menggunakan variabel warna ungu dari tema */
}



/* --- PERBAIKAN: Memberi Warna Langsung pada Ikon Font Awesome --- */

/* 1. Atur ukuran dasar dan posisi ikon */
.account-menu-item .menu-icon {
    font-size: 22px; /* Perbesar ukuran ikonnya agar terlihat jelas */
    width: 32px; /* Beri ruang agar sejajar */
    text-align: center;
    margin-right: 15px;
    
    /* Hapus semua properti yang membuat kotak */
    background-color: transparent !important;
    border-radius: 0;
    height: auto;
}

/* 2. Beri warna pada setiap ikon menggunakan properti 'color' */
.menu-icon.icon-green  { color: #28a745 !important; }
.menu-icon.icon-blue   { color: #007bff !important; }
.menu-icon.icon-orange { color: #fd7e14 !important; }
.menu-icon.icon-purple { color: #6f42c1 !important; }
.menu-icon.icon-teal   { color: #20c997 !important; }
.menu-icon.icon-red    { color: #dc3545 !important; }
.menu-icon.icon-gray   { color: #6c757d !important; }





/* --- PERBAIKAN: Membuat Sidebar Bisa Di-scroll & Membekukan Latar Belakang --- */

/* 1. Aturan untuk membekukan body saat sidebar terbuka */
body.sidebar-is-open {
    overflow: hidden !important; /* Mencegah halaman utama di belakang untuk scroll */
}

/* 2. Aturan untuk membuat sidebar itu sendiri bisa di-scroll */
.user-sidebar-menu {
    overflow-y: auto; /* Tambahkan scrollbar vertikal jika kontennya panjang */
    -webkit-overflow-scrolling: touch; /* Scroll yang lebih halus di perangkat sentuh */
}

/* 3. Sedikit penyesuaian pada tombol close di dalam sidebar */
.account-header .close-sidebar-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #fff;
    opacity: 0.8;
}