/* Custom Glassmorphic Glow Effect */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.glass-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   INJEKSI STYLE HALAMAN PROFIL 
   ========================================================================== */
   .profile-gradient-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(241, 245, 249, 0.5) 100%);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.team-card-glow:hover {
    box-shadow: 0 20px 30px -10px rgba(16, 185, 129, 0.15);
}

/* Animasi Fade In Ringan untuk Struktur Organisasi */
.fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   INJEKSI STYLE HALAMAN UNIT USAHA 
   ========================================================================== */
   .badge-status-glow {
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.usaha-card-hover:hover .usaha-icon-box {
    transform: scale(1.1) rotate(6s);
}

.usaha-card-hover:hover {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(16, 185, 129, 0.02);
}

/* ==========================================================================
   INJEKSI STYLE HALAMAN PUBLIKASI GALERI 
   ========================================================================== */
   .galeri-img-zoom {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.galeri-card:hover .galeri-img-zoom {
    transform: scale(1.06);
}

.galeri-card:hover .galeri-overlay {
    opacity: 1;
}

/* Utilitas transisi menyembunyikan item galeri yang tidak aktif filter */
.galeri-item.hidden-filter {
    display: none;
    opacity: 0;
}

/* ==========================================================================
   INJEKSI STYLE HALAMAN PUBLIKASI ARTIKEL 
   ========================================================================== */
   .artikel-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.artikel-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.3); /* Blue tint hover border */
    box-shadow: 0 20px 30px -10px rgba(59, 130, 246, 0.12);
}

.artikel-item.hidden-search {
    display: none;
    opacity: 0;
}

/* ==========================================================================
   INJEKSI STYLE HALAMAN TRANSPARANSI ANGGARAN 
   ========================================================================== */
   .progress-bar-glow {
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.table-row-hover:hover {
    background-color: rgba(241, 245, 249, 0.6);
}

.card-finance-glow:hover {
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 15px 30px -10px rgba(59, 130, 246, 0.08);
}

/* ==========================================================================
   INJEKSI STYLE HALAMAN KONTAK 
   ========================================================================== */
   .input-field-glow:focus {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.map-wrapper {
    position: relative;
    overflow: hidden;
    mask-image: -webkit-radial-gradient(white, black); /* Fix border radius bug on legacy browsers */
}

/* ==========================================================================
   INJEKSI STYLE HALAMAN LOGIN ADMINISTRATOR (SECURE AREA)
   ========================================================================== */
   .admin-login-bg {
    background: radial-gradient(circle at 50% 50%, #0f172a 0%, #020617 100%);
}

.glass-card-dark {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.input-dark-glow:focus {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

/* ==========================================================================
   SIDEBAR MODEREN PREMIUM (HIGH-CONTRAST STANDBY - NO HOVER)
   ========================================================================== */
   .admin-sidebar {
    background: #0f172a; /* Warna Midnight Slate Premium */
    border-right: 1px solid #334155;
}

/* Kategori Separator Pembatas yang Estetik */
.sidebar-category-title {
    color: #94a3b8; /* Abu-abu terang kontras */
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    tracking-content: 0.15em;
    letter-spacing: 0.05em;
}

/* Menu Aktif dengan Efek Capsule Glow */
.sidebar-link-active {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%); /* Gradient Emerald */
    color: #ffffff !important;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

/* Menu Standby Biasa: Putih Bersih, Teks Tebal, Ikon Berwarna */
.sidebar-link-standby {
    color: #f1f5f9 !important; /* Putih salju kontras tinggi */
    font-weight: 700;
}

/* Submenu dengan Indikator Garis yang Manis */
.submenu-item {
    color: #cbd5e1 !important; /* Perak terang */
    font-weight: 600;
    position: relative;
    padding-left: 20px;
}
.submenu-item::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background-color: #64748b; /* Dot penanda standby */
    border-radius: 50%;
}

/* ==========================================================================
   TAMBAHAN AREA KONTEN: TABEL DATA CRUD & FORMULIR (HIGH CONTRAST)
   ========================================================================== */

/* Wrapper scroll konten kanan */
.content-wrapper-scroll {
    height: calc(100vh - 64px);
    overflow-y: auto;
    background-color: #f8fafc;
}

/* Kustomisasi Tabel Responsif */
.table-container {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    border: 2px solid #cbd5e1; /* Border tebal penunjang kontras */
}

.table-dkn th {
    background-color: #0f172a;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
    padding: 12px 16px;
}

.table-dkn td {
    padding: 12px 16px;
    border-bottom: 1px solid #cbd5e1;
    color: #0f172a;
    font-weight: 600;
    font-size: 12px;
}

/* Kustomisasi Modal Pop-up */
.modal-dkn {
    transition: opacity 0.25s ease;
}
.modal-dkn.modal-hidden {
    opacity: 0;
    pointer-events: none;
}

/* ==========================================================================
   TAMBAHAN AREA KONTEN: CRUD ARTIKEL & BADGES (HIGH CONTRAST)
   ========================================================================== */

/* Badge khusus status terbit artikel */
.badge-published {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.badge-draft {
    background-color: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

/* Limitasi teks deskripsi di tabel agar tidak merusak layout */
.truncate-2-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

/* ==========================================================================
   TAMBAHAN AREA KONTEN: CRUD DATA MITRA BERSAMA (HIGH CONTRAST)
   ========================================================================== */

/* Badge tipe kemitraan */
.badge-supplier {
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.badge-sponsor {
    background-color: #fff7ed;
    color: #c2410c;
    border: 1px solid #ffedd5;
}

/* Penata khusus tampilan lingkaran kecil logo di tabel */
.logo-mitra-preview {
    width: 44px;
    height: 44px;
    object-fit: contain;
    background-color: #ffffff;
    border: 2px solid #cbd5e1;
}

/* ==========================================================================
   TAMBAHAN AREA KONTEN: FORM INPUT TAMBAH UNIT BARU (HIGH CONTRAST)
   ========================================================================== */

/* Card Pembungkus Formulir Utama */
.form-card-container {
    background-color: #ffffff;
    border: 2px solid #cbd5e1; /* Border tebal kontras tinggi */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.05);
}

/* Kustomisasi fokus inputan agar mempertegas posisi kursor pengelola */
.input-dkn-field:focus {
    background-color: #ffffff;
    border-color: #4f46e5; /* Indigo pekat */
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* Label penanda field wajib (asterisk) */
.required-star {
    color: #dc2626; /* Merah tegas */
    font-weight: 800;
}

/* ==========================================================================
   TAMBAHAN AREA KONTEN: DETAIL & EDITOR UNIT USAHA (HIGH CONTRAST)
   ========================================================================== */

/* Grid Stat Mini di Dalam Detail Unit */
.stat-card-detail {
    background-color: #ffffff;
    border: 2px solid #e2e8f0;
    border-left: 6px solid #4f46e5; /* Aksen warna indikator */
}

/* Navigasi Tab Internal Halaman Detail */
.tab-btn-dkn {
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
    padding: 10px 16px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.tab-btn-dkn.tab-active {
    color: #4f46e5 !important;
    border-bottom-color: #4f46e5;
}

/* ==========================================================================
   TAMBAHAN AREA KONTEN: PENGATURAN UMUM WEBSITE BUMDES (HIGH CONTRAST)
   ========================================================================== */

/* Kotak Khusus untuk Menampilkan Pratinjau Gambar Berkas Logo Saat Ini */
.preview-image-box {
    background-color: #f8fafc;
    border: 2px solid #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Penegasan area teks bantuan instruksi form */
.form-instruction-text {
    font-size: 11px;
    color: #475569;
    font-weight: 600;
    line-height: 1.4;
}

/* ==========================================================================
   TAMBAHAN AREA KONTEN: PENGATURAN PROFIL BUMDES (HIGH CONTRAST)
   ========================================================================== */

/* Pengatur tinggi khusus untuk textarea narasi profil panjang */
.textarea-profile-large {
    min-height: 120px;
    line-height: 1.5;
}

/* Penanda Section Header di dalam Form Editor */
.form-section-divider {
    font-[900];
    color: #0f172a;
    border-bottom: 2px dashed #cbd5e1;
    padding-bottom: 6px;
    margin-bottom: 16px;
}

/* ==========================================================================
   TAMBAHAN AREA KONTEN: PENGATURAN KONTAK BUMDES (HIGH CONTRAST)
   ========================================================================== */

/* Area Container Pratinjau Google Maps Link / Embed */
.maps-preview-container {
    background-color: #f1f5f9;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

/* Penegasan ikon input grup (Input Prefix Icon) */
.input-group-dkn {
    position: relative;
}

.input-group-dkn i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 14px;
}

.input-group-dkn input, 
.input-group-dkn textarea {
    padding-left: 42px !important;
}

/* ==========================================================================
   TAMBAHAN AREA KONTEN: PENGATURAN KREDENSIAL AKSES (HIGH CONTRAST)
   ========================================================================== */

/* Area Box Informasi Keamanan Akun */
.security-alert-box {
    background-color: #fef2f2; /* Merah super soft */
    border: 2px solid #fca5a5;
    border-left: 6px solid #dc2626;
}

/* Badge Penanda Sesi Aktif */
.badge-username-status {
    background-color: #1e293b;
    color: #f8fafc;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
}

/* ==========================================================================
   TAMBAHAN AREA KONTEN: PENGATURAN KATA SANDI (HIGH CONTRAST)
   ========================================================================== */

/* Tracker status indikator kecocokan password */
.password-status-indicator {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
}

.status-match {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.status-mismatch {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

/* ==========================================================================
   TAMBAHAN AREA KONTEN: HALAMAN MASUKAN WARGA (HIGH CONTRAST TABLES)
   ========================================================================== */

/* Baris tabel yang belum dibaca (memiliki background penanda khusus) */
.row-unread {
    background-color: #f8fafc; /* Slate super ringan */
}

/* Kustomisasi kontras teks preview isi pesan di tabel */
.text-preview-pesan {
    max-width: 280px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Status Badge Masukan Warga */
.badge-status-masukan {
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}
.status-belum-dibaca {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}
.status-sudah-dibaca {
    background-color: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}
.status-ditindaklanjuti {
    background-color: #e0f2fe;
    color: #0369a1;
    border: 1px solid #7dd3fc;
}