
/* ============================================================
   RESET & VARIABLES
============================================================ */
.ppid-wrap *, .ppid-wrap *::before, .ppid-wrap *::after {
    box-sizing: border-box;
}

:root {
    --ppid-navy:        #0f2448;
    --ppid-navy-mid:    #1a3a6b;
    --ppid-blue:        #2563eb;
    --ppid-blue-light:  #3b82f6;
    --ppid-accent:      #f59e0b;
    --ppid-accent-soft: #fef3c7;
    --ppid-gold:        #d97706;
    --ppid-surface:     #f8fafc;
    --ppid-white:       #ffffff;
    --ppid-text:        #1e293b;
    --ppid-text-mid:    #475569;
    --ppid-text-soft:   #94a3b8;
    --ppid-border:      #e2e8f0;
    --ppid-shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --ppid-shadow-md:   0 4px 16px rgba(15,36,72,.08), 0 2px 6px rgba(15,36,72,.04);
    --ppid-radius:      16px;
    --ppid-radius-sm:   10px;
}

/* ============================================================
   WRAPPER  (semua class diberi prefix ppid- agar tidak konflik)
============================================================ */
.ppid-wrap {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--ppid-text);
    background: var(--ppid-surface);
    min-height: 60vh;
}

/* ── HERO ── */
.ppid-hero {
    background: linear-gradient(135deg, var(--ppid-navy) 0%, var(--ppid-navy-mid) 60%, #1e4d8c 100%);
    padding: 56px 24px 72px;
    position: relative;
    overflow: hidden;
}
.ppid-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 80% 20%, rgba(245,158,11,.15) 0%, transparent 50%),
        radial-gradient(circle at 10% 80%, rgba(37,99,235,.2)   0%, transparent 45%);
    pointer-events: none;
}
.ppid-hero::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 48px;
    background: var(--ppid-surface);
    clip-path: ellipse(55% 100% at 50% 100%);
}
.ppid-hero-inner {
    max-width: 960px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.ppid-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245,158,11,.15);
    border: 1px solid rgba(245,158,11,.35);
    color: var(--ppid-accent);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 18px;
}
.ppid-hero-badge svg { width: 13px; height: 13px; }
.ppid-hero h1 {
    font-family: 'Lora', serif;
    font-size: clamp(26px, 4.5vw, 40px);
    font-weight: 600;
    color: var(--ppid-white);
    line-height: 1.2;
    margin: 0 0 12px;
}
.ppid-hero p {
    font-size: 15px;
    color: rgba(255,255,255,.65);
    max-width: 500px;
    margin: 0;
}

/* ── LAYOUT ── */
.ppid-layout {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    align-items: start;
}

/* ── SIDEBAR ── */
.ppid-sidebar-card {
    background: var(--ppid-white);
    border-radius: var(--ppid-radius);
    box-shadow: var(--ppid-shadow-md);
    overflow: hidden;
    position: sticky;
    top: 24px;
}
.ppid-sidebar-hdr {
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--ppid-border);
}
.ppid-sidebar-hdr span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ppid-text-soft);
}
.ppid-sidebar-nav {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    list-style: none;
    margin: 0;
}
.ppid-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: var(--ppid-radius-sm);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ppid-text-mid);
    text-decoration: none;
    transition: all .2s ease;
}
.ppid-nav-icon {
    width: 30px; height: 30px;
    border-radius: 8px;
    background: var(--ppid-surface);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: all .2s ease;
}
.ppid-nav-icon svg { width: 15px; height: 15px; color: var(--ppid-text-soft); transition: color .2s; }

.ppid-sidebar-nav a:hover {
    background: var(--ppid-surface);
    color: var(--ppid-navy);
}
.ppid-sidebar-nav a:hover .ppid-nav-icon { background: var(--ppid-accent-soft); }
.ppid-sidebar-nav a:hover .ppid-nav-icon svg { color: var(--ppid-gold); }

.ppid-sidebar-nav a.active {
    background: linear-gradient(135deg, var(--ppid-navy) 0%, var(--ppid-navy-mid) 100%);
    color: var(--ppid-white);
    box-shadow: 0 4px 14px rgba(15,36,72,.25);
}
.ppid-sidebar-nav a.active .ppid-nav-icon { background: rgba(255,255,255,.15); }
.ppid-sidebar-nav a.active .ppid-nav-icon svg { color: var(--ppid-accent); }

/* ── CONTENT HEADER ── */
.ppid-content-hdr {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
}
.ppid-content-title {
    font-family: 'Lora', serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--ppid-navy);
    margin: 0 0 6px;
}
.ppid-content-meta {
    font-size: 13px;
    color: var(--ppid-text-soft);
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}
.ppid-content-meta svg { width: 14px; height: 14px; flex-shrink: 0; }
.ppid-count-badge {
    background: var(--ppid-accent-soft);
    color: var(--ppid-gold);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
    border: 1px solid rgba(217,119,6,.2);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── GROUP CARD ── */
.ppid-group-card {
    background: var(--ppid-white);
    border-radius: var(--ppid-radius);
    box-shadow: var(--ppid-shadow-sm);
    border: 1px solid var(--ppid-border);
    margin-bottom: 20px;
    overflow: hidden;
    transition: box-shadow .2s ease;
    animation: ppidFadeUp .4s ease both;
}
.ppid-group-card:hover { box-shadow: var(--ppid-shadow-md); }
.ppid-group-card:nth-child(1) { animation-delay: .05s; }
.ppid-group-card:nth-child(2) { animation-delay: .12s; }
.ppid-group-card:nth-child(3) { animation-delay: .19s; }
.ppid-group-card:nth-child(4) { animation-delay: .26s; }
.ppid-group-card:nth-child(5) { animation-delay: .33s; }

.ppid-group-hdr {
    padding: 18px 22px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--ppid-border);
    background: linear-gradient(to right, rgba(248,250,252,1), rgba(255,255,255,1));
}
.ppid-group-num {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ppid-navy) 0%, var(--ppid-navy-mid) 100%);
    color: var(--ppid-white);
    font-size: 13px;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.ppid-group-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--ppid-navy);
    flex: 1;
    margin: 0;
}
.ppid-group-count {
    font-size: 12px;
    color: var(--ppid-text-soft);
    background: var(--ppid-surface);
    border: 1px solid var(--ppid-border);
    padding: 3px 10px;
    border-radius: 100px;
    font-weight: 600;
    white-space: nowrap;
}

/* ── DOC ITEM ── */
.ppid-doc-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 22px;
    border-bottom: 1px solid var(--ppid-border);
    transition: background .15s ease;
}
.ppid-doc-item:last-child { border-bottom: none; }
.ppid-doc-item:hover { background: #f8fafc; }

.ppid-file-icon {
    width: 36px; height: 36px;
    border-radius: 9px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.ppid-file-icon svg { width: 16px; height: 16px; color: var(--ppid-blue); }

.ppid-doc-name {
    flex: 1;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ppid-text);
    line-height: 1.45;
}

.ppid-doc-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

.ppid-btn-lihat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--ppid-blue) 0%, var(--ppid-blue-light) 100%);
    color: var(--ppid-white) !important;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 100px;
    text-decoration: none !important;
    transition: all .2s ease;
    box-shadow: 0 2px 8px rgba(37,99,235,.25);
    white-space: nowrap;
}
.ppid-btn-lihat svg { width: 12px; height: 12px; }
.ppid-btn-lihat:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(37,99,235,.35);
    color: var(--ppid-white) !important;
    text-decoration: none !important;
}
.ppid-btn-lihat:active { transform: translateY(0); }

/* ── EMPTY STATE ── */
.ppid-empty {
    padding: 56px 24px;
    text-align: center;
    color: var(--ppid-text-soft);
}
.ppid-empty svg { width: 48px; height: 48px; margin-bottom: 14px; opacity: .25; display: block; margin-inline: auto; }
.ppid-empty p { font-size: 14px; margin: 0; }

/* ── ANIMATION ── */
@keyframes ppidFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
    .ppid-layout { grid-template-columns: 1fr; }
    .ppid-sidebar-card { position: static; }
    .ppid-sidebar-nav { flex-direction: row; flex-wrap: wrap; }
    .ppid-sidebar-nav a { flex: 1 1 45%; }
    .ppid-doc-item { gap: 10px; padding: 12px 16px; }
    .ppid-file-icon { display: none; }
    .ppid-group-hdr { padding: 14px 16px; }
    .ppid-doc-name { font-size: 13px; }
    .ppid-content-hdr { flex-wrap: wrap; }
}

