/* ============================================================================== */
/* FILE: ppid-tabs.css - CSS Eksternal Khusus Komponen Isi Tab PPID               */
/* ============================================================================== */

/* ========================================================= */
/* 0. ANIMASI KUNCI (KEYFRAMES) - SMOOTH & ELEGANT           */
/* ========================================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Base class untuk elemen yang akan dianimasikan */
.animated-entry {
    opacity: 0; /* Mulai dalam keadaan tembus pandang */
    animation: fadeInUp 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* ========================================================= */
/* 1. STYLING KONTEN & FORM BAWAAN TAB                       */
/* ========================================================= */
.section-box { 
    background: #f8fafc; 
    border: 1px solid var(--border-color); 
    border-radius: 12px; 
    padding: 20px; 
    margin-bottom: 25px; 
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.section-title { font-family: 'Outfit', sans-serif; font-size: 18px; font-weight: 800; color: var(--color-primary); margin: 0 0 12px 0; display: flex; align-items: center; gap: 10px; }
.input-group { margin-bottom: 18px; }
.input-group label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 13px; color: var(--color-text);}
.input-group input, .input-group textarea, .input-group select { width: 100%; padding: 11px 14px; border: 1px solid var(--border-color); border-radius: 8px; font-family: inherit; font-size: 14px; box-sizing: border-box; background: var(--color-bg); color: var(--color-text); transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);}
.input-group input:focus, .input-group textarea:focus, .input-group select:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(30,58,138,0.15);}
.btn-submit { background: var(--color-secondary); color: white; border: none; padding: 14px 25px; border-radius: 8px; font-weight: 700; cursor: pointer; width: 100%; font-size: 15px; transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); display: block; box-sizing: border-box; text-align: center;}
.btn-submit:hover, .btn-submit:focus { opacity: 0.95; transform: translateY(-3px); box-shadow: 0 6px 15px rgba(4,120,87,0.3); outline: none; }
.btn-download-secure { background-color: var(--color-primary); color: white; padding: 7px 14px; border-radius: 6px; text-decoration: none; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; border:none; transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);}
.btn-download-secure:hover { background-color: #1e3a8a; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(30,58,138,0.2); }
.notif-sukses { background: #dcfce7; color: #166534; padding: 16px; border-radius: 10px; margin-bottom: 20px; border: 1px solid #bbf7d0; opacity: 0; animation: fadeInUp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;}
.notif-error { background: #fee2e2; color: #991b1b; padding: 16px; border-radius: 10px; margin-bottom: 20px; border: 1px solid #fecaca; opacity: 0; animation: fadeInUp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;}

/* ========================================================= */
/* 2. STYLING TABEL & BADGE STATUS                           */
/* ========================================================= */
table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border-color); font-size: 13px; }
th { background: #f1f5f9; font-weight: 700; color: #334155; }
.badge { padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; color: white; background: var(--color-primary); display: inline-block;}
.badge.cat-berkala { background: #1d4ed8; }
.badge.cat-serta_merta { background: #d97706; }
.badge.cat-setiap_saat { background: #7c3aed; }
.badge.cat-dikecualikan { background: #be123c; }
.badge.cat-default { background: #64748b; }

/* ========================================================= */
/* 3. STYLING ALUR LANGKAH (TAB PERMOHONAN)                  */
/* ========================================================= */
.flow-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; margin-bottom: 20px; }
.flow-step { background: #ffffff; border: 1px solid var(--border-color); padding: 18px; border-radius: 12px; display: flex; gap: 15px; align-items: flex-start; transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); opacity: 0; animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.flow-step:nth-child(1) { animation-delay: 0.1s; }
.flow-step:nth-child(2) { animation-delay: 0.2s; }
.flow-step:nth-child(3) { animation-delay: 0.3s; }
.flow-step:nth-child(4) { animation-delay: 0.4s; }
.flow-step:hover { transform: translateY(-5px); border-color: var(--color-primary); box-shadow: 0 10px 25px rgba(30,58,138,0.1); }
.flow-num { width: 32px; height: 32px; background: var(--color-primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex-shrink: 0; transition: transform 0.3s ease; }
.flow-step:hover .flow-num { transform: scale(1.1); }
.flow-text h4 { margin: 0 0 8px 0; font-size: 14px; color: var(--color-text); font-weight: 700; }
.flow-text p { margin: 0; font-size: 12.5px; color: var(--color-text-muted); line-height: 1.6; }

/* ========================================================= */
/* 4. STYLING PILAR DOKUMEN (TAB DOKUMEN)                    */
/* ========================================================= */
.pilar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 15px; margin-bottom: 20px; }
.pilar-card { background: #ffffff; border: 1px solid var(--border-color); border-radius: 12px; padding: 18px; text-decoration: none; color: var(--color-text); display: flex; flex-direction: column; transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); opacity: 0; animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.pilar-card:nth-child(1) { animation-delay: 0.05s; }
.pilar-card:nth-child(2) { animation-delay: 0.15s; }
.pilar-card:nth-child(3) { animation-delay: 0.25s; }
.pilar-card:nth-child(4) { animation-delay: 0.35s; }
.pilar-card:hover { transform: translateY(-6px); box-shadow: 0 12px 24px rgba(30,58,138,0.08); border-color: var(--color-primary); }
.pilar-active { border-color: var(--color-primary); background: #f8fafc; box-shadow: 0 4px 12px rgba(30, 58, 138, 0.08); transform: translateY(-2px); }
.pilar-icon { font-size: 28px; margin-bottom: 12px; transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.pilar-card:hover .pilar-icon { transform: scale(1.08); }
.pilar-card h4 { margin: 0 0 8px 0; font-size: 15px; font-weight: 800; color: var(--color-text); }
.pilar-card p { margin: 0; font-size: 12.5px; color: var(--color-text-muted); line-height: 1.5; }

/* ========================================================= */
/* 5. STYLING STRUKTUR ORGANISASI (TAB PROFIL)               */
/* ========================================================= */
.org-structure-container { display: flex; flex-direction: column; gap: 15px; }
.profile-accordion { background: #ffffff; border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); opacity: 0; animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.profile-accordion:nth-child(1) { animation-delay: 0.1s; }
.profile-accordion:nth-child(2) { animation-delay: 0.2s; }
.profile-accordion:nth-child(3) { animation-delay: 0.3s; }
.profile-accordion[open] { border-color: var(--color-primary); box-shadow: 0 6px 20px rgba(30, 58, 138, 0.1); }
.profile-summary { padding: 15px 20px; background: #f8fafc; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--color-text); transition: background 0.3s; list-style: none; font-weight: 500; }
.profile-summary::-webkit-details-marker { display: none; }
.profile-summary:hover { background: #e2e8f0; }
.btn-lihat-profil { font-size: 12px; font-weight: 700; color: var(--color-primary); display: flex; align-items: center; gap: 6px; background: rgba(30, 58, 138, 0.1); padding: 4px 12px; border-radius: 50px; transition: all 0.3s ease; }
.profile-accordion[open] .btn-lihat-profil { background: var(--color-primary); color: white; }
.profile-accordion[open] .btn-lihat-profil i { transform: rotate(180deg); }
.profile-card { display: flex; gap: 20px; padding: 20px; align-items: flex-start; border-top: 1px solid var(--border-color); animation: fadeInUp 0.4s ease forwards; }
.profile-photo { width: 100px; height: 130px; flex-shrink: 0; border-radius: 8px; overflow: hidden; border: 2px solid #e2e8f0; background: #f1f5f9; display: flex; justify-content: center; align-items: center;}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-details h3 { margin: 0 0 4px 0; color: var(--color-primary); font-size: 16px; font-weight: 800; font-family: 'Outfit', sans-serif;}
.profile-role { display: inline-block; font-size: 11.5px; font-weight: 700; color: #fff; background: var(--color-secondary); padding: 4px 10px; border-radius: 4px; margin-bottom: 12px; }
.profile-info-list { margin: 0; padding: 0; list-style: none; font-size: 13px; line-height: 1.6; color: var(--color-text-muted); }
.profile-info-list li { margin-bottom: 6px; padding-left: 14px; position: relative; }
.profile-info-list li::before { content: '•'; position: absolute; left: 0; color: var(--color-primary); font-weight: bold; }

@media (max-width: 600px) {
    .profile-card { flex-direction: column; align-items: center; text-align: center; }
    .profile-summary { flex-direction: column; gap: 10px; text-align: center; }
    .profile-info-list li { padding-left: 0; text-align: left; }
    .profile-info-list li::before { display: none; }
}

/* ========================================================= */
/* 6. STYLING MEDIA SOSIAL (TAB STATISTIK)                   */
/* ========================================================= */
.medsos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 15px; margin-top: 15px; }
.medsos-item { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 8px; text-decoration: none; color: #ffffff !important; font-weight: 600; font-size: 14.5px; transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); opacity: 0; animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.medsos-item:nth-child(1) { animation-delay: 0.1s; }
.medsos-item:nth-child(2) { animation-delay: 0.2s; }
.medsos-item:nth-child(3) { animation-delay: 0.3s; }
.medsos-item:nth-child(4) { animation-delay: 0.4s; }
.medsos-item:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 10px 20px rgba(0,0,0,0.18); filter: brightness(1.1); }
.medsos-item i { font-size: 24px; color: #ffffff !important; transition: transform 0.3s ease; }
.medsos-item:hover i { transform: scale(1.15) rotate(-5deg); }
.medsos-item.ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.medsos-item.fb { background: #1877F2; }
.medsos-item.yt { background: #FF0000; }
.medsos-item.tt { background: #000000; }