/* ===========================
   THIQLA INTRANET - Main Styles
   =========================== */

:root {
    --primary: #1a56db;
    --primary-dark: #1341b0;
    --primary-light: #e8f0fe;
    --secondary: #0ea5e9;
    --accent: #f59e0b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --purple: #8b5cf6;
    --teal: #14b8a6;
    --text-dark: #111827;
    --text-medium: #374151;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --bg-white: #ffffff;
    --bg-gray: #f9fafb;
    --bg-dark: #111827;
    --sidebar-width: 260px;
    --topbar-height: 64px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,.10);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.14);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all .2s ease;
}

* {
    margin: 0; padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-gray);
    color: var(--text-dark);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* =====================
   SIDEBAR
   ===================== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-dark);
    height: 100vh;
    position: fixed;
    left: 0; top: 0;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 4px 0 20px rgba(0,0,0,.15);
    overflow: hidden;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.logo-icon {
    width: 40px; height: 40px;
    background: transparent;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.logo-icon img {
    width: 100%; height: 100%;
    object-fit: contain;
    display: block;
}

.logo-text h2 {
    font-size: 18px; font-weight: 800;
    color: white; letter-spacing: 1px;
}

.logo-text span {
    font-size: 10px; color: rgba(255,255,255,.45);
    text-transform: uppercase; letter-spacing: 1px;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: scroll;          /* scroll (bukan auto) agar scrollbar selalu dialokasikan */
    overflow-x: hidden;
    scrollbar-gutter: stable;    /* cadangkan ruang scrollbar, cegah layout shift */
    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.30) rgba(255,255,255,.05);
}
/* Webkit – spesifisitas ditinggikan dengan .sidebar .sidebar-nav
   agar TIDAK tertimpa oleh rule global ::-webkit-scrollbar di bawah */
.sidebar .sidebar-nav::-webkit-scrollbar {
    width: 5px;
}
.sidebar .sidebar-nav::-webkit-scrollbar-track {
    background: rgba(255,255,255,.05);
    border-radius: 99px;
}
.sidebar .sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.30);
    border-radius: 99px;
}
.sidebar .sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,.55);
}

.nav-section {
    margin-bottom: 24px;
}

.nav-label {
    font-size: 9px;
    font-weight: 700;
    color: rgba(255,255,255,.3);
    letter-spacing: 1.5px;
    padding: 0 10px;
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.sidebar-nav ul {
    list-style: none;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,.65);
    font-size: 13.5px;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 2px;
    position: relative;
}

.nav-item:hover {
    background: rgba(255,255,255,.07);
    color: white;
}

.nav-item.active {
    background: linear-gradient(135deg, var(--primary), #2563eb);
    color: white;
    box-shadow: 0 4px 12px rgba(26,86,219,.35);
}

.nav-item i {
    width: 18px;
    text-align: center;
    font-size: 14px;
    flex-shrink: 0;
}

.nav-item .badge {
    margin-left: auto;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 14px;
    flex-shrink: 0;
}

.user-name {
    font-size: 13px; font-weight: 600; color: white;
    display: block;
}

.user-role {
    font-size: 11px; color: rgba(255,255,255,.4);
}

/* =====================
   LOGOUT BUTTON
   ===================== */
.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
    padding: 9px 12px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 8px;
    color: #fca5a5;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all .2s ease;
    letter-spacing: 0.2px;
}
.logout-btn:hover {
    background: rgba(239, 68, 68, 0.22);
    border-color: rgba(239, 68, 68, 0.45);
    color: #fff;
}
.logout-btn i { font-size: 13px; }

/* =====================
   TOMBOL AKUN PRIBADI
   ===================== */
.my-account-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
    padding: 9px 12px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    color: rgba(255,255,255,.75);
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all .2s;
    text-align: left;
}
.my-account-btn:hover {
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.22);
    color: #fff;
}
.my-account-btn i { font-size: 13px; }

/* =====================
   MODAL AKUN PRIBADI & KREDENSIAL
   (dipakai global via auth.js)
   ===================== */
.thiqla-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    padding: 16px;
}
.thiqla-modal-overlay.open { display: flex; }

.thiqla-modal-box {
    background: #fff;
    border-radius: 18px;
    width: 100%;
    max-width: 480px;
    max-height: 94vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0,0,0,.28);
    animation: thiqlaModalIn .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes thiqlaModalIn {
    from { opacity:0; transform:scale(.88) translateY(16px); }
    to   { opacity:1; transform:scale(1) translateY(0); }
}

.thiqla-modal-hdr {
    padding: 18px 22px 15px;
    border-radius: 18px 18px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.thiqla-modal-hdr.green  { background: linear-gradient(135deg,#064e3b,#059669); }
.thiqla-modal-hdr.blue   { background: linear-gradient(135deg,#0f172a,#1e3a8a); }
.thiqla-modal-hdr h3 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}
.thiqla-modal-close {
    background: none;
    border: none;
    color: rgba(255,255,255,.7);
    font-size: 18px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    transition: all .2s;
}
.thiqla-modal-close:hover { color: #fff; background: rgba(255,255,255,.15); }

.thiqla-modal-body { padding: 22px 24px 24px; }

/* Credential card */
.cred-card {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
    margin: 14px 0;
}
.cred-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}
.cred-row:last-child { border-bottom: none; padding-bottom: 0; }
.cred-row:first-child { padding-top: 0; }
.cred-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .5px;
    flex-shrink: 0;
    min-width: 80px;
}
.cred-value {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    font-family: 'Courier New', monospace;
    word-break: break-all;
}
.cred-copy-btn {
    padding: 4px 10px;
    background: #dbeafe;
    border: none;
    border-radius: 6px;
    color: #1d4ed8;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s;
    font-family: 'Inter', sans-serif;
}
.cred-copy-btn:hover { background: #bfdbfe; }
.cred-copy-btn.copied { background: #d1fae5; color: #065f46; }

/* Credential action buttons */
.cred-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.btn-cred-mailto {
    flex: 1;
    min-width: 140px;
    padding: 11px 16px;
    background: linear-gradient(135deg,#1a56db,#1e40af);
    border: none;
    border-radius: 9px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: opacity .2s;
    text-decoration: none;
}
.btn-cred-mailto:hover { opacity: .88; }
.btn-cred-copyall {
    flex: 1;
    min-width: 140px;
    padding: 11px 16px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all .2s;
}
.btn-cred-copyall:hover { background: #f8fafc; border-color: #cbd5e1; }
.btn-cred-done {
    width: 100%;
    margin-top: 8px;
    padding: 11px;
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all .2s;
}
.btn-cred-done:hover { background: #e2e8f0; }

/* Ganti password form */
.pw-field-wrap {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
}
.pw-field-wrap label {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.pw-field-inner {
    position: relative;
}
.pw-field-inner input {
    width: 100%;
    padding: 10px 40px 10px 13px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13.5px;
    font-family: 'Inter', sans-serif;
    color: #111827;
    outline: none;
    transition: border-color .2s;
    box-sizing: border-box;
    background: #fff;
}
.pw-field-inner input:focus { border-color: #1a56db; }
.pw-field-inner input.pw-error { border-color: #ef4444; }
.pw-field-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    font-size: 14px;
    padding: 2px;
}
.pw-field-toggle:hover { color: #6b7280; }
.pw-err-msg {
    font-size: 11.5px;
    color: #ef4444;
    display: none;
}
.pw-err-msg.show { display: block; }

.pw-strength-bar {
    height: 3px;
    border-radius: 2px;
    background: #e5e7eb;
    overflow: hidden;
    margin-top: 5px;
}
.pw-strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: width .3s, background .3s;
}
.pw-strength-hint {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 3px;
}

.btn-pw-save {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg,#059669,#047857);
    border: none;
    border-radius: 9px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity .2s;
    margin-top: 4px;
}
.btn-pw-save:hover { opacity: .88; }
.btn-pw-save:disabled { opacity: .55; cursor: not-allowed; }
.btn-pw-cancel {
    width: 100%;
    padding: 11px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 9px;
    color: #6b7280;
    font-size: 13.5px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    margin-top: 8px;
    transition: all .2s;
}
.btn-pw-cancel:hover { background: #f8fafc; }

/* =====================
   MAIN CONTENT
   ===================== */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-width: 0;           /* ← fix flexbox child expanding beyond viewport */
    overflow-x: hidden;     /* ← prevent page-level horizontal scroll */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: var(--transition);
}

/* =====================
   TOPBAR
   ===================== */
.topbar {
    height: var(--topbar-height);
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: var(--shadow-sm);
}

.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-toggle {
    background: none; border: none;
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--text-medium);
    font-size: 16px;
    transition: var(--transition);
}

.menu-toggle:hover {
    background: var(--bg-gray);
    color: var(--primary);
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-gray);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 8px 18px;
    width: 340px;
    transition: var(--transition);
}

.search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,86,219,.1);
    background: white;
}

.search-bar i {
    color: var(--text-muted);
    font-size: 13px;
}

.search-bar input {
    border: none; background: none;
    font-size: 13.5px; color: var(--text-dark);
    flex: 1; outline: none;
    font-family: 'Inter', sans-serif;
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.icon-btn {
    width: 36px; height: 36px;
    background: var(--bg-gray);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--text-medium);
    font-size: 14px;
    transition: var(--transition);
    position: relative;
}

.icon-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.notif-dot {
    position: absolute;
    top: 6px; right: 6px;
    width: 8px; height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid white;
    display: none; /* shown by JS when there are unread */
}
.notif-dot.visible {
    display: block;
    animation: notifPulse 2s ease-in-out infinite;
}
@keyframes notifPulse {
    0%,100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.3); opacity: 0.7; }
}

/* =====================
   NOTIFICATION BELL BUTTON
   ===================== */
.notif-bell-wrap {
    position: relative;
}
.notif-bell-btn {
    width: 38px; height: 38px;
    background: var(--bg-gray);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--text-medium);
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}
.notif-bell-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}
.notif-bell-btn.has-unread {
    border-color: #ef4444;
    color: #ef4444;
    background: #fef2f2;
}
.notif-bell-btn.has-unread .notif-bell-dot {
    display: block;
}
.notif-bell-dot {
    display: none;
    position: absolute;
    top: -3px; right: -3px;
    min-width: 18px; height: 18px;
    background: #ef4444;
    border-radius: 50px;
    border: 2px solid white;
    font-size: 10px; font-weight: 800;
    color: white;
    line-height: 14px;
    text-align: center;
    padding: 0 3px;
    animation: notifPulse 2s ease-in-out infinite;
}

/* =====================
   NOTIFICATION DROPDOWN
   ===================== */
.notif-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 360px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 48px rgba(0,0,0,.15);
    z-index: 9000;
    overflow: hidden;
    animation: dropdownIn .2s cubic-bezier(.34,1.56,.64,1);
}
.notif-dropdown.open { display: block; }
@keyframes dropdownIn {
    from { opacity:0; transform: translateY(-8px) scale(.97); }
    to   { opacity:1; transform: translateY(0)  scale(1); }
}

.notif-dropdown-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(135deg, #0d1b2a, #1b3a5c);
}
.notif-dropdown-header h4 {
    font-size: 14px; font-weight: 700; color: white;
    display: flex; align-items: center; gap: 7px;
}
.notif-header-actions {
    display: flex; align-items: center; gap: 8px;
}
.notif-read-all {
    font-size: 11.5px; font-weight: 600;
    color: rgba(255,255,255,.75);
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 6px; padding: 4px 10px;
    cursor: pointer; transition: all .2s;
    font-family: 'Inter', sans-serif;
}
.notif-read-all:hover { background: rgba(255,255,255,.22); color: white; }

.notif-unread-badge {
    background: #ef4444; color: white;
    font-size: 11px; font-weight: 800;
    padding: 2px 7px; border-radius: 20px;
    min-width: 20px; text-align: center;
}

/* Tabs */
.notif-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-gray);
}
.notif-tab {
    flex: 1; padding: 9px 6px;
    font-size: 12px; font-weight: 600;
    color: var(--text-light);
    cursor: pointer; text-align: center;
    border-bottom: 2px solid transparent;
    transition: all .2s;
    font-family: 'Inter', sans-serif;
    background: none; border-top: none; border-left: none; border-right: none;
}
.notif-tab:hover { color: var(--primary); }
.notif-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: white;
}

/* List */
.notif-list {
    max-height: 340px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.notif-list::-webkit-scrollbar { width: 4px; }
.notif-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.notif-item {
    display: flex; gap: 11px; padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer; transition: background .15s;
    align-items: flex-start;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--bg-gray); }
.notif-item.unread { background: #eff6ff; }
.notif-item.unread:hover { background: #dbeafe; }

.notif-icon-wrap {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; flex-shrink: 0;
}
.ni-request  { background: #dbeafe; color: #1d4ed8; }
.ni-feedback { background: #d1fae5; color: #059669; }
.ni-urgent   { background: #fee2e2; color: #dc2626; }
.ni-info     { background: #ede9fe; color: #7c3aed; }

.notif-content { flex: 1; min-width: 0; }
.notif-title {
    font-size: 13px; font-weight: 600; color: var(--text-dark);
    margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.notif-item.unread .notif-title { color: #1e40af; }
.notif-desc {
    font-size: 12px; color: var(--text-light); line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.notif-time {
    font-size: 11px; color: var(--text-muted); margin-top: 3px;
    display: flex; align-items: center; gap: 4px;
}
.notif-unread-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #3b82f6; flex-shrink: 0;
    margin-top: 5px;
}

.notif-empty {
    text-align: center; padding: 32px 16px;
    color: var(--text-muted);
}
.notif-empty i { font-size: 32px; margin-bottom: 8px; display: block; }
.notif-empty p { font-size: 13px; }

.notif-footer {
    padding: 10px 16px;
    border-top: 1px solid var(--border-light);
    text-align: center;
    background: var(--bg-gray);
}
.notif-footer a {
    font-size: 12.5px; font-weight: 600; color: var(--primary);
    text-decoration: none; transition: color .2s;
}
.notif-footer a:hover { color: var(--primary-dark); }

/* =====================
   SIDEBAR BADGE (nav item)
   ===================== */
.nav-notif-badge {
    display: none;
    margin-left: auto;
    background: #ef4444;
    color: white;
    font-size: 10.5px; font-weight: 800;
    min-width: 18px; height: 18px;
    border-radius: 50px;
    padding: 0 4px;
    line-height: 18px;
    text-align: center;
    animation: notifPulse 2s ease-in-out infinite;
}
.nav-notif-badge.show { display: inline-block; }

/* nav-badge: badge dinamis untuk Berita & Pengumuman (unread) */
.nav-badge {
    display: none;
    margin-left: auto;
    background: #ef4444;
    color: white;
    font-size: 10.5px; font-weight: 800;
    min-width: 18px; height: 18px;
    border-radius: 50px;
    padding: 0 4px;
    line-height: 18px;
    text-align: center;
    animation: notifPulse 2s ease-in-out infinite;
}
.nav-badge.show { display: inline-block; }

.date-display {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: var(--text-light);
    background: var(--bg-gray);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 24px;
}

.date-display i { color: var(--primary); font-size: 12px; }

/* =====================
   PAGE CONTENT
   ===================== */
.page-content {
    padding: 24px;
    flex: 1;
    min-width: 0;           /* ← flex child must not grow beyond parent */
    width: 100%;            /* ← stay within .main-content bounds */
    box-sizing: border-box;
    overflow-x: hidden;     /* ← extra guard: content cannot push page wider */
}

/* =====================
   HERO BANNER
   ===================== */
.hero-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1a56db 100%);
    border-radius: var(--radius-xl);
    padding: 44px 56px;
    margin-bottom: 24px;
    overflow: hidden;
    position: relative;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-banner::after {
    content: '';
    position: absolute;
    bottom: -60px; left: 30%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(14,165,233,.12) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hero-text {
    width: 100%;
}

.hero-greeting {
    font-size: 14.5px;
    color: rgba(255,255,255,.7);
    margin-bottom: 10px;
    font-weight: 500;
    letter-spacing: .2px;
}

.hero-text h1 {
    font-size: 32px;
    font-weight: 800;
    color: white;
    margin-bottom: 14px;
    line-height: 1.25;
}

.hero-text h1 span {
    color: #60a5fa;
}

.hero-sub {
    font-size: 14.5px;
    color: rgba(255,255,255,.65);
    margin-bottom: 28px;
    max-width: 100%;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 24px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: white;
    color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,255,255,.2);
}

.btn-outline {
    background: rgba(255,255,255,.12);
    color: white;
    border: 1.5px solid rgba(255,255,255,.3);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255,255,255,.2);
    transform: translateY(-2px);
}



/* =====================
   STATS ROW
   ===================== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.stat-icon.blue { background: #eff6ff; color: var(--primary); }
.stat-icon.green { background: #ecfdf5; color: var(--success); }
.stat-icon.orange { background: #fffbeb; color: var(--warning); }
.stat-icon.purple { background: #f5f3ff; color: var(--purple); }

.stat-value {
    font-size: 30px;
    font-weight: 800;
    color: var(--text-dark);
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 12.5px;
    color: var(--text-light);
    margin-top: 5px;
    display: block;
    font-weight: 500;
}

/* =====================
   DASHBOARD GRID
   ===================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    grid-template-rows: auto auto;
    gap: 20px;
    margin-bottom: 24px;
}

.news-card { grid-row: span 2; }

/* =====================
   CARDS
   ===================== */
.card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border-light);
}

.card-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header h3 i {
    color: var(--primary);
    font-size: 14px;
}

.view-all {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.view-all:hover { gap: 8px; }

/* =====================
   NEWS LIST
   ===================== */
.news-list {
    padding: 12px 24px 20px;
}

.news-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.news-item:last-child { border-bottom: none; }

.news-item.featured {
    background: var(--primary-light);
    margin: 0 -24px;
    padding: 16px 24px;
    border-bottom: 1px solid #d1e0ff;
}

.news-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 6px;
}

.news-tag.urgent { background: #fee2e2; color: #dc2626; }
.news-tag.info { background: #dbeafe; color: #1d4ed8; }
.news-tag.success { background: #d1fae5; color: #059669; }

.news-item h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.4;
}

.news-item p {
    font-size: 12.5px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    gap: 16px;
}

.news-meta span {
    font-size: 11.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* =====================
   QUICK ACCESS
   ===================== */
.quick-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 16px;
}

.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 8px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--border-light);
}

.quick-link:hover {
    background: var(--bg-gray);
    border-color: var(--border);
    transform: translateY(-2px);
}

.ql-icon {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
}

.ql-icon.blue { background: #eff6ff; color: var(--primary); }
.ql-icon.green { background: #ecfdf5; color: var(--success); }
.ql-icon.orange { background: #fffbeb; color: var(--warning); }
.ql-icon.purple { background: #f5f3ff; color: var(--purple); }
.ql-icon.red { background: #fef2f2; color: var(--danger); }
.ql-icon.teal { background: #f0fdfa; color: var(--teal); }

.quick-link span {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-medium);
    line-height: 1.3;
}

/* =====================
   EVENTS
   ===================== */
.events-list {
    padding: 8px 16px 16px;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
}

.event-item:hover {
    background: var(--bg-gray);
}

.event-date {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: var(--radius-sm);
    text-align: center;
    padding: 8px 10px;
    min-width: 46px;
    flex-shrink: 0;
}

.event-day {
    font-size: 20px;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.event-month {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    opacity: .85;
}

.event-info {
    flex: 1;
}

.event-info h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    line-height: 1.3;
}

.event-info p {
    font-size: 11.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
}

.event-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 8px;
    flex-shrink: 0;
    text-transform: uppercase;
}

.event-tag.wajib       { background: #fee2e2; color: #dc2626; }
.event-tag.training    { background: #dbeafe; color: #1d4ed8; }
.event-tag.fun         { background: #d1fae5; color: #059669; }
.event-tag.rapat       { background: #ede9fe; color: #7c3aed; }
.event-tag.pengumuman  { background: #fef3c7; color: #d97706; }
.event-tag.lainnya     { background: #f1f5f9; color: #64748b; }

/* =====================
   DOCS LIST
   ===================== */
.docs-list {
    padding: 8px 16px 16px;
}

.doc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
    color: inherit;
}

.doc-item:hover {
    background: var(--bg-gray);
}

.doc-icon {
    width: 38px; height: 38px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.doc-icon.pdf { background: #fee2e2; color: #dc2626; }
.doc-icon.word { background: #dbeafe; color: #1d4ed8; }
.doc-icon.excel { background: #d1fae5; color: #059669; }

.doc-info {
    flex: 1;
}

.doc-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    display: block;
    margin-bottom: 2px;
}

.doc-meta {
    font-size: 11px;
    color: var(--text-muted);
}

.doc-item > i:last-child {
    color: var(--text-muted);
    font-size: 12px;
}

/* =====================
   VALUES BANNER
   ===================== */
.values-banner {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-radius: var(--radius-xl);
    padding: 36px 40px;
    margin-bottom: 24px;
}

.values-header {
    text-align: center;
    margin-bottom: 28px;
}

.values-header h3 {
    font-size: 22px;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
}

.values-header p {
    font-size: 14px;
    color: rgba(255,255,255,.55);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.value-item {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    text-align: center;
    transition: var(--transition);
}

.value-item:hover {
    background: rgba(255,255,255,.1);
    transform: translateY(-3px);
}

.value-icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    color: white;
    margin: 0 auto 12px;
}

.value-item h4 {
    font-size: 13px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.value-item p {
    font-size: 11.5px;
    color: rgba(255,255,255,.5);
    line-height: 1.5;
}

/* =====================
   12 SIFAT WAJIB BANNER
   ===================== */
.sifat-banner {
    background: linear-gradient(135deg, #1a0533, #2d1254, #1e1b4b);
    border-radius: var(--radius-xl);
    padding: 36px 40px;
    margin-bottom: 24px;
}

.sifat-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.sifat-header-icon {
    width: 52px; height: 52px;
    min-width: 52px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    color: white;
    box-shadow: 0 4px 16px rgba(245,158,11,.35);
}

.sifat-header h3 {
    font-size: 20px;
    font-weight: 800;
    color: white;
    margin-bottom: 5px;
}

.sifat-header p {
    font-size: 13px;
    color: rgba(255,255,255,.5);
    margin: 0;
}

.sifat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.sifat-item {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-md);
    padding: 16px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    position: relative;
}

.sifat-item:hover {
    background: rgba(245,158,11,.12);
    border-color: rgba(245,158,11,.35);
    transform: translateY(-2px);
}

.sifat-num {
    font-size: 10px;
    font-weight: 800;
    color: rgba(245,158,11,.7);
    position: absolute;
    top: 8px;
    right: 10px;
    letter-spacing: .5px;
}

.sifat-item > i {
    font-size: 18px;
    color: #f59e0b;
    min-width: 22px;
    text-align: center;
}

.sifat-label {
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(255,255,255,.88);
    line-height: 1.4;
}

/* =====================
   FOOTER
   ===================== */
.site-footer {
    background: white;
    border-top: 1px solid var(--border);
    padding: 16px 24px;
    text-align: center;
}

.site-footer p {
    font-size: 12px;
    color: var(--text-muted);
}

/* =====================
   PAGE HEADER (Inner Pages)
   ===================== */
.page-header {
    background: linear-gradient(135deg, #0f172a, #1e3a5f 60%, var(--primary));
    border-radius: var(--radius-xl);
    padding: 28px 36px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(255,255,255,.06), transparent 70%);
    border-radius: 50%;
}

.page-header-content {
    position: relative; z-index: 1;
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.page-breadcrumb a, .page-breadcrumb span {
    font-size: 12px;
    color: rgba(255,255,255,.6);
}

.page-breadcrumb a:hover { color: white; }
.page-breadcrumb i { font-size: 10px; color: rgba(255,255,255,.4); }
.page-breadcrumb span:last-child { color: rgba(255,255,255,.9); }

.page-header h1 {
    font-size: 24px;
    font-weight: 800;
    color: white;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-header h1 i {
    width: 40px; height: 40px;
    background: rgba(255,255,255,.15);
    border-radius: 10px;
    display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 18px;
}

.page-header p {
    font-size: 13.5px;
    color: rgba(255,255,255,.65);
}

/* =====================
   TABS
   ===================== */
.tabs-nav {
    display: flex;
    gap: 4px;
    background: var(--bg-gray);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 9px 18px;
    border: none;
    background: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.tab-btn:hover { color: var(--text-dark); }

.tab-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* =====================
   FILTER BAR
   ===================== */
.filter-bar {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.filter-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-gray);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 7px 16px;
    flex: 1;
    min-width: 200px;
}

.filter-search i { color: var(--text-muted); font-size: 12px; }

.filter-search input {
    border: none; background: none;
    font-size: 13px; font-family: 'Inter', sans-serif;
    color: var(--text-dark); flex: 1; outline: none;
}

.filter-select {
    background: var(--bg-gray);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 7px 16px;
    font-size: 12.5px;
    font-family: 'Inter', sans-serif;
    color: var(--text-medium);
    outline: none;
    cursor: pointer;
}

/* =====================
   SECTION CARDS
   ===================== */
.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.content-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.content-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: #c7d7ff;
}

.content-card-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-light);
}

.content-card-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.content-card-body {
    padding: 16px 20px;
}

.content-card-body p {
    font-size: 12.5px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 12px;
}

.content-card-footer {
    padding: 12px 20px;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    color: var(--text-muted);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.tag {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 10px;
    background: var(--bg-gray);
    color: var(--text-light);
    border: 1px solid var(--border);
}

.tag.blue { background: #eff6ff; color: var(--primary); border-color: #bfdbfe; }
.tag.green { background: #ecfdf5; color: var(--success); border-color: #a7f3d0; }
.tag.orange { background: #fffbeb; color: var(--warning); border-color: #fde68a; }
.tag.red { background: #fef2f2; color: var(--danger); border-color: #fecaca; }
.tag.purple { background: #f5f3ff; color: var(--purple); border-color: #ddd6fe; }

/* =====================
   ACCORDION
   ===================== */
.accordion {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 12px;
}

.accordion-header {
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: var(--transition);
    gap: 12px;
}

.accordion-header:hover { background: var(--bg-gray); }

.accordion-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.accordion-title i:first-child {
    color: var(--primary);
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.accordion-title h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

.accordion-title p {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.accordion-icon {
    color: var(--text-muted);
    font-size: 12px;
    transition: var(--transition);
    flex-shrink: 0;
}

.accordion.open .accordion-icon { transform: rotate(180deg); }

.accordion-body {
    display: none;
    padding: 0 24px 20px;
    border-top: 1px solid var(--border-light);
}

.accordion.open .accordion-body { display: block; }

/* =====================
   ORG CHART
   ===================== */
.org-chart {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    overflow-x: auto;
}

.org-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 800px;
}

.org-level {
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative;
    width: 100%;
    margin-bottom: 0;
}

.org-connector-vertical {
    width: 2px;
    height: 32px;
    background: var(--border);
    margin: 0 auto;
}

.org-connector-horizontal {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 0;
}

.org-line {
    position: absolute;
    top: 0;
    height: 2px;
    background: var(--border);
}

.org-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.org-branch-line {
    width: 2px;
    height: 32px;
    background: var(--border);
}

.org-node {
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    text-align: center;
    min-width: 140px;
    max-width: 180px;
    transition: var(--transition);
    cursor: pointer;
}

.org-node:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.org-node.top-level {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: var(--primary);
    color: white;
    min-width: 200px;
}

.org-node.dept-level {
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    border-color: #1e3a5f;
    color: white;
}

.org-node-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 8px;
    font-size: 16px;
    color: white;
}

.org-node:not(.top-level):not(.dept-level) .org-node-avatar {
    background: var(--primary-light);
    color: var(--primary);
}

.org-node-name {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
}

.org-node-title {
    font-size: 10.5px;
    opacity: .75;
    line-height: 1.3;
}

.org-node-dept {
    font-size: 10px;
    opacity: .6;
    margin-top: 2px;
}

/* =====================
   REGULATION SECTIONS
   ===================== */
.reg-section {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    overflow: hidden;
}

.reg-section-header {
    background: linear-gradient(135deg, var(--primary), #2563eb);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.reg-section-header i {
    font-size: 20px;
    color: rgba(255,255,255,.8);
}

.reg-section-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: white;
}

.reg-section-body {
    padding: 20px 24px;
}

.reg-article {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.reg-article:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.reg-article h4 {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reg-article h4 .art-num {
    background: var(--primary);
    color: white;
    font-size: 11px;
    padding: 1px 8px;
    border-radius: 8px;
}

.reg-article p, .reg-article li {
    font-size: 13px;
    color: var(--text-medium);
    line-height: 1.8;
}

.reg-article ul, .reg-article ol {
    padding-left: 20px;
    margin-top: 6px;
}

.reg-article li {
    margin-bottom: 4px;
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 1200px) {
    .stats-row { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .values-grid { grid-template-columns: repeat(3, 1fr); }
    .sifat-grid { grid-template-columns: repeat(3, 1fr); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .news-card { grid-row: auto; }
}

@media (max-width: 900px) {
    :root { --sidebar-width: 0px; }

    .sidebar {
        width: 260px;
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }


    .hero-text h1 { font-size: 22px; }
}

@media (max-width: 600px) {
    .stats-row { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr 1fr; }
    .sifat-grid { grid-template-columns: 1fr 1fr; }
    .sifat-banner { padding: 24px 20px; }
    .sifat-header { gap: 12px; }
    .sifat-header h3 { font-size: 17px; }
    .page-content { padding: 16px; }
    .hero-banner { padding: 24px 20px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { justify-content: center; }
}

/* =====================
   SCROLLBAR GLOBAL
   (untuk area konten utama – bukan sidebar)
   ===================== */
.main-content::-webkit-scrollbar,
.page-content::-webkit-scrollbar { width: 5px; height: 5px; }
.main-content::-webkit-scrollbar-track,
.page-content::-webkit-scrollbar-track { background: transparent; }
.main-content::-webkit-scrollbar-thumb,
.page-content::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.main-content::-webkit-scrollbar-thumb:hover,
.page-content::-webkit-scrollbar-thumb:hover { background: #d1d5db; }

/* =====================
   ANIMATIONS
   ===================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fadeInUp .4s ease forwards;
}

.page-content > * {
    animation: fadeInUp .35s ease forwards;
}
