/*
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.6
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;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

/* ======================================================================== */
/* --- HEADER & ANIMASI GELOMBANG --- */
/* ======================================================================== */
.app-header {
    position: relative;
    overflow: hidden;
    background-color: var(--app-purple);
    background-image: url('assets/images/header-bg.gif'); 
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    z-index: 1;
}

.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;
}

.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;
}

@keyframes wave-animation-slow {
    from { transform: translateX(-20px); }
    to { transform: translateX(20px); }
}
@keyframes wave-animation-fast {
    from { transform: translateX(15px); }
    to { transform: translateX(-15px); }
}

.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; display: block; color: #fff; }
.site-info .user-balance { font-size: 18px; font-weight: bold; display: block; color: #fff; }
.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 & 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); display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-radius: 12px; margin-top: 25px; }
.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; font-size: 14px; }
.splide-container { margin: 25px 0; }
.splide__slide img { width: 100%; height: auto; border-radius: 12px; display: block; }
.splide__pagination__page { background: rgba(78, 44, 132, 0.3); opacity: 1; }
.splide__pagination__page.is-active { background: var(--app-purple); transform: scale(1.2); }

/* ======================================================================== */
/* --- GRID KATEGORI PPOB (DESKTOP & BASE) - VERSI BORDERLESS --- */
/* ======================================================================== */
.page-content-wrapper { 
    background-color: #fff; 
    padding: 20px; 
    border-radius: 12px; 
    box-shadow: var(--card-shadow); 
}

.wppob-category-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    padding: 10px 0;
    align-items: start !important;
}

.wppob-category-item {
    background: transparent !important; /* Latar transparan */
    border-radius: 0;
    box-shadow: none !important; /* Hilangkan bayangan kotak */
    padding: 5px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    border: none !important; /* Hilangkan garis batas */
    transition: transform 0.2s;
    height: auto !important;
}

.wppob-category-item:hover { transform: translateY(-3px); }
.wppob-category-item img { 
    width: 60px !important; /* Ukuran gambar diperbesar untuk desktop */
    height: 60px !important; 
    object-fit: contain; 
    margin-bottom: 8px; 
    transition: transform 0.2s; 
}
.wppob-category-item:hover img { transform: scale(1.05); }
.wppob-category-item span { 
    font-size: 12px !important; 
    font-weight: 500 !important; 
    color: var(--text-color) !important; 
    line-height: 1.3; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
}

/* ======================================================================== */
/* --- RESPONSIVE MOBILE (MAKSIMAL 768px) - VERSI BORDERLESS --- */
/* ======================================================================== */
@media (max-width: 768px) {
    .app-header { background-size: auto 160%; background-position: center top; }
    
    .page-content-wrapper { 
        background-color: transparent !important; 
        box-shadow: none !important; 
        padding: 5px 0 !important; 
        border: none !important; 
    }

    .wppob-category-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 15px 5px !important; 
        align-items: start !important;
    }

    .wppob-category-item {
        padding: 5px 2px !important; 
        box-shadow: none !important; /* Pastikan tidak ada bayangan di HP */
        border: none !important; /* Pastikan tidak ada garis di HP */
        background: transparent !important; /* Menyatukan ikon dengan background */
        height: auto !important; 
        justify-content: flex-start !important; 
    }

    .wppob-category-item img {
        width: 55px !important; /* UKURAN GAMBAR DIPERBESAR DI HP */
        height: 55px !important;
        margin-bottom: 6px !important;
    }

    .wppob-category-item span {
        font-size: 11px !important;
        line-height: 1.2 !important;
        margin-top: 0 !important;
    }
}

/* ======================================================================== */
/* --- FOOTER & SIDEBAR --- */
/* ======================================================================== */
.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; flex: 1; }
.footer-nav-item a { text-decoration: none; color: var(--text-light); display: flex; flex-direction: column; align-items: center; justify-content: 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); }
body.sidebar-is-open { overflow: hidden !important; }
.user-sidebar-menu { position: fixed; top: 0; right: 0; width: 320px; height: 100%; background-color: #fff; box-shadow: -2px 0 10px rgba(0,0,0,0.1); z-index: 2000; transform: translateX(100%); transition: transform 0.35s ease-in-out; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.user-sidebar-menu.active { 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: 15px; 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 15px; }
.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; }

/* ======================================================================== */
/* --- HALAMAN AKUN SAYA --- */
/* ======================================================================== */
.account-container { background-color: #f3f4f8; }
.page-template-template-akun .app-header, .page-template-template-akun .site-content { display: none; }
.account-header { background-color: var(--app-purple); background-image: url('assets/images/header-bg.gif'); background-size: cover; background-position: center top; background-repeat: no-repeat; color: #fff; padding: 20px 15px 50px 15px; border-bottom-left-radius: 20px; border-bottom-right-radius: 20px; position: relative; overflow: hidden; z-index: 1; }
.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; }
.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; }
.account-header .close-sidebar-btn { position: absolute; top: 10px; right: 15px; color: #fff; opacity: 0.8; }
.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; }
.account-body { padding: 0 15px; 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; }
.account-menu-item .menu-icon { font-size: 22px; width: 32px; text-align: center; margin-right: 15px; background-color: transparent !important; border-radius: 0; height: auto; }
.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; }
.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 0; }
.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; }
@media (min-width: 769px) { .user-sidebar-menu { width: 380px; } .account-header { background-size: cover; } }

/* ======================================================================== */
/* --- MENGHILANGKAN TOMBOL MENU (ITEM TERAKHIR DI BAWAH) --- */
/* ======================================================================== */
.app-footer-nav .footer-nav-item:last-child {
    display: none !important;
}