/* ==========================================================================
   MODERN STYLE - BANTUWARGA PLATFORM
   ========================================================================== */

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

body { 
    background: #f4f7fa; 
    color: #1e293b; 
    padding-bottom: 40px; 
}

.container { 
    max-width: 1140px; 
    margin: 0 auto 30px auto; 
    padding: 0 20px; 
}

/* -------------------------------------------------------------
   DESAIN GRID DESKTOP (PC/LAPTOP)
------------------------------------------------------------- */
.split-market-layout { 
    display: grid; 
    grid-template-columns: 260px 1fr; 
    gap: 30px; 
    margin-bottom: 45px; 
    align-items: flex-start; 
}

.left-parent-menu { 
    display: flex; 
    flex-direction: column; 
    background: #ffffff; 
    padding: 20px 10px 20px 20px; 
    border-radius: 16px; 
    border: 1px solid #e2e8f0; 
    position: sticky; 
    top: 90px; 
    z-index: 10; 
    height: fit-content; 
    max-height: calc(100vh - 120px); 
}

.sidebar-scrollable { 
    flex-grow: 1; 
    overflow-y: auto; 
    overflow-x: hidden; 
    padding-right: 10px; 
}

.sidebar-scrollable::-webkit-scrollbar { 
    width: 6px; 
}

.sidebar-scrollable::-webkit-scrollbar-thumb { 
    background-color: #cbd5e1; 
    border-radius: 10px; 
}

/* Gaya Kartu Kategori Desktop */
.category-wrapper { 
    position: relative; 
} 

.parent-rectangle-card { 
    background: #f8fafc; 
    border: 1px solid #e2e8f0; 
    border-radius: 8px; 
    padding: 12px 14px; 
    cursor: pointer; 
    transition: all 0.2s ease; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    text-decoration: none; 
    color: #475569; 
    margin-bottom: 8px; 
}

.parent-rectangle-card h4 { 
    font-size: 13px; 
    font-weight: 700; 
    text-transform: uppercase; 
    margin: 0; 
}

.arrow-icon { 
    font-size: 10px; 
    color: #94a3b8; 
    transition: 0.2s; 
}

.parent-rectangle-card:hover { 
    background: #0f172a; 
    border-color: #0f172a; 
    color: #ffffff; 
}

.parent-rectangle-card:hover h4, 
.parent-rectangle-card:hover .arrow-icon { 
    color: #ffffff; 
}

.parent-rectangle-card.active-rectangle { 
    background: #0f172a !important; 
    border-color: #0f172a !important; 
    color: #ffffff; 
}

/* Flyout Menu (Dropdown Kanan) */
.flyout-menu { 
    visibility: hidden; 
    opacity: 0; 
    position: fixed; 
    width: 400px; 
    background: #ffffff; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.12); 
    border-radius: 16px; 
    padding: 20px; 
    border: 1px solid #e2e8f0; 
    transition: opacity 0.2s ease, visibility 0.2s ease; 
    transform: translateX(10px); 
    z-index: 9999; 
    pointer-events: none; 
}

.flyout-menu.show-flyout { 
    visibility: visible; 
    opacity: 1; 
    transform: translateX(0); 
    pointer-events: auto; 
}

.pane-header { 
    font-size: 13px; 
    font-weight: 700; 
    color: #2563eb; 
    text-transform: uppercase; 
    margin-bottom: 16px; 
    border-bottom: 1px dashed #bfdbfe; 
    padding-bottom: 6px; 
}

.metro-sub-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); 
    gap: 10px; 
}

.sub-metro-card { 
    background: #f8fafc; 
    border: 1px solid #e2e8f0; 
    border-radius: 8px; 
    padding: 12px 10px; 
    text-align: center; 
    text-decoration: none; 
    color: #475569; 
    font-size: 12px; 
    font-weight: 600; 
    transition: 0.2s; 
}

.sub-metro-card:hover { 
    background: #ffffff; 
    border-color: #cbd5e1; 
    color: #2563eb; 
}

.sub-metro-card.active-sub { 
    background: #2563eb !important; 
    border-color: #2563eb !important; 
    color: #ffffff !important; 
}

.right-main-feed { 
    display: flex; 
    flex-direction: column; 
    padding: 10px; 
}

/* -------------------------------------------------------------
   CSS HEADER MODERN
------------------------------------------------------------- */
.header-modern-all { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 12px 40px; 
    background: #ffffff; 
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04); 
    border-bottom: 1px solid #f1f5f9; 
    position: sticky; 
    top: 0; 
    z-index: 9999; 
    gap: 20px; 
    margin-bottom: 30px;
}

.brand-logo-container { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    text-decoration: none; 
    flex-shrink: 0; 
}

.brand-icon { 
    background: linear-gradient(135deg, #3b82f6, #1d4ed8); 
    color: white; 
    font-size: 20px; 
    font-weight: 900; 
    width: 44px; 
    height: 44px; 
    border-radius: 12px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    box-shadow: 0 4px 10px rgba(29, 78, 216, 0.25); 
}

.brand-text-wrapper { 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}

.brand-title { 
    font-size: 24px; 
    font-weight: 900; 
    line-height: 1; 
    letter-spacing: -0.5px; 
    color: #1e3a8a; 
}

.text-bantu { color: #1e3a8a; } 
.text-warga { color: #f59e0b; }

.brand-tagline { 
    font-size: 12px; 
    color: #64748b; 
    font-style: italic; 
    font-weight: 600; 
    margin-top: 3px; 
}

.header-search-wrapper { 
    flex-grow: 1; 
    max-width: 550px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    position: relative; 
    margin: 0 auto; 
}

.header-search-container { 
    flex-grow: 1; 
    display: flex; 
    align-items: center; 
    background: #f8fafc; 
    padding: 10px 18px; 
    border-radius: 10px; 
    border: 1.5px solid #e2e8f0; 
    transition: all 0.3s ease; 
}

.header-search-container:focus-within { 
    border-color: #2563eb; 
    background: #ffffff; 
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); 
}

.header-search-container input { 
    background: none; 
    border: none; 
    outline: none; 
    width: 100%; 
    padding: 2px; 
    font-size: 14px; 
    color: #334155; 
    font-weight: 500; 
}

.btn-search-header { 
    background: none; 
    border: none; 
    cursor: pointer; 
    margin-right: 8px; 
    display: flex; 
    align-items: center; 
}

.btn-search-header svg { 
    width: 18px; 
    height: 18px; 
    stroke: #64748b; 
    stroke-width: 2.5; 
    transition: 0.2s; 
}

.btn-filter-header { 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    background: #f1f5f9; 
    border: 1px solid #e2e8f0; 
    padding: 10px 14px; 
    border-radius: 10px; 
    font-size: 13px; 
    font-weight: 600; 
    color: #475569; 
    cursor: pointer; 
    transition: 0.2s; 
    white-space: nowrap; 
    flex-shrink: 0; 
}

.btn-filter-header:hover { 
    background: #e2e8f0; 
    border-color: #cbd5e1; 
    color: #0f172a; 
}

.btn-filter-header svg { 
    width: 16px; 
    height: 16px; 
    stroke: currentColor; 
    fill: none; 
    stroke-width: 2; 
}

.header-filter-popover { 
    display: none; 
    position: absolute; 
    top: 54px; 
    right: 0; 
    background: #ffffff; 
    width: 350px; 
    border-radius: 12px; 
    border: 1px solid #e2e8f0; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    padding: 18px; 
    z-index: 1000; 
}

.header-filter-popover.show { 
    display: block; 
}

.filter-grid-row { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 12px; 
    margin-bottom: 15px; 
}

.filter-field h5 { 
    font-size: 11px; 
    font-weight: 700; 
    color: #64748b; 
    text-transform: uppercase; 
    margin-bottom: 6px; 
}

.filter-field select { 
    width: 100%; 
    padding: 8px 12px; 
    background: #f8fafc; 
    border: 1px solid #e2e8f0; 
    border-radius: 6px; 
    font-size: 13px; 
    color: #334155; 
    outline: none; 
    cursor: pointer; 
}

.btn-apply-filter { 
    width: 100%; 
    background: #0f172a; 
    color: #ffffff; 
    border: none; 
    padding: 10px; 
    border-radius: 8px; 
    font-size: 13px; 
    font-weight: 700; 
    cursor: pointer; 
    transition: 0.2s; 
}

.header-right-group { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    flex-shrink: 0; 
}

.account-status-block-header { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    background: #f8fafc; 
    padding: 6px 14px; 
    border-radius: 50px; 
    border: 1px solid #e2e8f0; 
}

.btn-power-header { 
    background: transparent; 
    border: none; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 0; 
    transition: all 0.3s ease; 
    border-radius: 50%; 
    outline: none; 
}

.btn-power-header svg { 
    width: 22px; 
    height: 22px; 
}

.power-on { 
    color: #10b981; 
    filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.4)); 
}

.power-off { 
    color: #ef4444; 
}

.status-box-pill { 
    padding: 4px 10px; 
    border-radius: 50px; 
    font-size: 10px; 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
}

.status-pill-standby { 
    background: #e6f4ea; 
    color: #137333; 
}

.status-pill-working { 
    background: #fff7ed; 
    color: #ea580c; 
}

.balance-text-label { 
    font-size: 13px; 
    font-weight: 700; 
    color: #0f172a; 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    margin-left: 6px; 
    border-left: 1px solid #cbd5e1; 
    padding-left: 10px; 
}

.btn-toggle-eye { 
    background: none; 
    border: none; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    padding: 2px; 
}

.btn-toggle-eye svg { 
    width: 16px; 
    height: 16px; 
    stroke: #64748b; 
    transition: 0.2s; 
}

.nav-icons-right { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}

.icon-wrapper-relative { 
    position: relative; 
}

.icon-btn-header { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 42px; 
    height: 42px; 
    border-radius: 50%; 
    background: #f8fafc; 
    color: #475569; 
    text-decoration: none; 
    transition: all 0.2s ease; 
    border: 1px solid #e2e8f0; 
    cursor: pointer; 
    padding: 0; 
}

.icon-btn-header:hover { 
    background: #f1f5f9; 
    color: #2563eb; 
}

.icon-btn-header svg { 
    width: 20px; 
    height: 20px; 
    stroke-width: 2.2; 
}

.notif-badge-header { 
    position: absolute; 
    top: -2px; 
    right: -2px; 
    background: #ef4444; 
    color: white; 
    font-size: 10px; 
    font-weight: 800; 
    min-width: 18px; 
    height: 18px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%; 
    border: 2px solid #ffffff; 
    padding: 0 4px; 
}

.dropdown-notif-menu { 
    position: absolute; 
    top: 54px; 
    right: 0; 
    width: 340px; 
    background: #ffffff; 
    border-radius: 14px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.1); 
    border: 1px solid #e2e8f0; 
    opacity: 0; 
    visibility: hidden; 
    transform: translateY(10px); 
    transition: all 0.2s; 
    z-index: 1000; 
    overflow: hidden; 
}

.dropdown-notif-menu.show { 
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0); 
}

.dropdown-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 14px 18px; 
    border-bottom: 1px solid #f1f5f9; 
    background: #f8fafc; 
}

.dropdown-header h4 { 
    margin: 0; 
    font-size: 15px; 
    font-weight: 800; 
    color: #0f172a; 
}

.btn-mark-read { 
    background: none; 
    border: none; 
    color: #2563eb; 
    font-size: 11.5px; 
    font-weight: 600; 
    cursor: pointer; 
    padding: 0; 
}

.dropdown-body { 
    max-height: 380px; 
    overflow-y: auto; 
    display: flex; 
    flex-direction: column; 
}

.notif-empty { 
    text-align: center; 
    padding: 30px 20px; 
    color: #64748b; 
    font-size: 13px; 
    font-weight: 500; 
}

/* MODAL / CANVAS FOTO PROFIL (Syarat 7: Kotak Portrait sudut tumpul) */
.pp-header-img { 
    width: 36px; 
    height: 48px; 
    border-radius: 8px; /* Sudut tumpul modern */
    border: 2px solid #e2e8f0; 
    cursor: pointer; 
    object-fit: cover; 
}

/* -------------------------------------------------------------
   RESPONSIF MOBILE (HP)
------------------------------------------------------------- */
@media screen and (max-width: 900px) {
    .header-modern-all { 
        flex-wrap: wrap; 
        padding: 10px 15px; 
        gap: 10px; 
        position: sticky; 
        top: 0; 
        z-index: 9999; 
    }
    
    .brand-text-wrapper { 
        display: none; 
    }
    
    .brand-icon { 
        width: 36px; 
        height: 36px; 
        font-size: 16px; 
        border-radius: 10px; 
    }
    
    .account-status-block-header { 
        display: none; 
    }
    
    .header-search-wrapper { 
        order: 3; 
        width: 100%; 
        max-width: 100%; 
        margin: 0; 
    }
    
    .header-search-container { 
        padding: 8px 12px; 
        border-radius: 8px; 
    }
    
    .header-search-container input { 
        font-size: 13.5px; 
    }
    
    .btn-filter-header { 
        padding: 8px 10px; 
        border-radius: 8px; 
    }
    
    .btn-filter-header span { 
        display: none; 
    } 
    
    .header-filter-popover { 
        width: 100%; 
        top: 105px; 
        left: 0; 
        right: 0; 
        border-radius: 0 0 16px 16px; 
        border-top: none; 
    }
    
    .header-right-group { 
        margin-left: auto; 
        gap: 12px; 
    }
    
    .icon-btn-header { 
        width: 36px; 
        height: 36px; 
    }
    
    .icon-btn-header svg { 
        width: 18px; 
        height: 18px; 
    }
    
    .dropdown-notif-menu { 
        width: 280px; 
        right: -15px; 
        top: 45px; 
    }
    
    .pp-header-img { 
        width: 36px; 
        height: 48px; /* Dipertahankan Kotak Portrait demi keseragaman */
        border-radius: 8px; 
        object-fit: cover; 
        border: 2px solid #e2e8f0; 
    }

    .split-market-layout { 
        grid-template-columns: 1fr; 
        gap: 10px; 
    }
    
    .left-parent-menu { 
        position: static; 
        padding: 0; 
        background: transparent; 
        border: none; 
        height: auto; 
        max-height: none; 
        overflow: visible; 
        display: block; 
    }
    
    .arrow-icon { 
        display: none; 
    }
}

/* CSS UNTUK TOAST JAVASCRIPT */
.toast-container-pro { 
    position: fixed; 
    top: 20px; 
    right: 20px; 
    z-index: 999999; 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    pointer-events: none; 
}

.toast-box-pro { 
    background: #ffffff; 
    color: #0f172a; 
    padding: 14px 20px; 
    border-radius: 12px; 
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.2); 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    font-size: 14px; 
    font-weight: 700; 
    transform: translateX(100%); 
    opacity: 0; 
    animation: slideInPro 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; 
    border: 1px solid #e2e8f0; 
}

@keyframes slideInPro { 
    to { 
        transform: translateX(0); 
        opacity: 1; 
    } 
}
/* Gaya Balasan Komentar FB-Style */
.komentar-container { margin-top: 10px; }

.balasan-wrapper {
    margin-left: 30px; /* Menjorok ke dalam agar rapi */
    margin-top: 5px;
    border-left: 2px solid #e2e8f0; /* Garis penanda balasan */
    padding-left: 10px;
}

.item-komentar {
    display: flex;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
}

.avatar-mini {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.bubble-komentar {
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 18px;
    max-width: 85%;
}

.nama-user-komen { font-weight: 800; font-size: 12px; color: #1e293b; }
.isi-komen { font-size: 13px; color: #334155; }