/* === GRIYA INDAH - PERUMAHAN MANAGEMENT SYSTEM === */
/* Mobile-First Design | Elegant & Modern */

:root {
    --primary: #1a6b3a;
    --primary-light: #2d9657;
    --primary-dark: #124d2a;
    --primary-pale: #e8f5ed;
    --accent: #f59e0b;
    --accent-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fef2f2;
    --warning: #f97316;
    --warning-light: #fff7ed;
    --info: #3b82f6;
    --info-light: #eff6ff;
    --success: #10b981;
    --success-light: #ecfdf5;
    --bg: #f0f4f1;
    --surface: #ffffff;
    --surface2: #f8faf9;
    --border: #e2ebe5;
    --text: #1a2e21;
    --text-muted: #6b7c70;
    --text-light: #9ab0a0;
    --shadow-sm: 0 1px 3px rgba(26,107,58,0.08);
    --shadow: 0 4px 16px rgba(26,107,58,0.12);
    --shadow-lg: 0 8px 32px rgba(26,107,58,0.16);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --topbar-h: 60px;
    --sidebar-w: 260px;
    --bottom-nav-h: 64px;
    --font: 'Plus Jakarta Sans', sans-serif;
    --font2: 'Space Grotesk', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 14px; scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.5; -webkit-tap-highlight-color: transparent; }

/* === AUTH PAGES === */
.auth-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%); padding: 20px; }
.auth-body::before { content: ''; position: fixed; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }

.auth-card { background: var(--surface); border-radius: var(--radius-lg); padding: 36px 28px; width: 100%; max-width: 400px; box-shadow: 0 25px 60px rgba(0,0,0,0.3); position: relative; z-index: 1; }
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo .logo-icon { width: 64px; height: 64px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 20px; display: inline-flex; align-items: center; justify-content: center; font-size: 28px; color: white; margin-bottom: 12px; box-shadow: 0 8px 24px rgba(26,107,58,0.35); }
.auth-logo h1 { font-size: 1.5rem; font-weight: 800; color: var(--text); font-family: var(--font2); }
.auth-logo p { color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }
.auth-tabs { display: flex; gap: 4px; background: var(--bg); border-radius: 12px; padding: 4px; margin-bottom: 24px; }
.auth-tab { flex: 1; text-align: center; padding: 8px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 0.85rem; color: var(--text-muted); transition: all 0.2s; }
.auth-tab.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }

/* === APP LAYOUT === */
.app-body { padding-top: var(--topbar-h); padding-bottom: var(--bottom-nav-h); min-height: 100vh; }

/* TOPBAR */
.topbar { position: fixed; top: 0; left: 0; right: 0; height: var(--topbar-h); background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; z-index: 100; box-shadow: var(--shadow-sm); }
.topbar-left { display: flex; align-items: center; gap: 12px; }
.hamburger { background: none; border: none; cursor: pointer; padding: 8px; border-radius: 10px; color: var(--text); font-size: 18px; transition: background 0.2s; }
.hamburger:active { background: var(--bg); }
.brand { display: flex; align-items: center; gap: 8px; }
.brand-icon { width: 32px; height: 32px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 9px; display: flex; align-items: center; justify-content: center; color: white; font-size: 14px; }
.brand-name { font-weight: 700; font-size: 1rem; color: var(--text); font-family: var(--font2); }
.topbar-right { display: flex; align-items: center; gap: 8px; position: relative; }
.notif-btn { position: relative; background: none; border: none; padding: 8px; border-radius: 10px; color: var(--text); font-size: 18px; cursor: pointer; text-decoration: none; display: flex; align-items: center; }
.badge-notif { position: absolute; top: 2px; right: 2px; background: var(--danger); color: white; font-size: 9px; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; border: 2px solid white; }
.badge-bottom { position: absolute; top: 0; right: 50%; transform: translateX(12px); background: var(--danger); color: white; font-size: 9px; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.user-avatar-sm { width: 34px; height: 34px; border-radius: 50%; background: var(--primary-pale); cursor: pointer; overflow: hidden; position: relative; }
.user-avatar-sm img { width: 100%; height: 100%; object-fit: cover; }

/* USER MENU */
.user-menu { position: absolute; top: 52px; right: 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 220px; padding: 8px; display: none; z-index: 200; border: 1px solid var(--border); }
.user-menu.open { display: block; animation: slideDown 0.2s ease; }
.user-menu-header { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--primary-pale); border-radius: 10px; margin-bottom: 8px; }
.user-menu-name { font-weight: 600; font-size: 0.85rem; }
.user-menu-role { font-size: 0.7rem; padding: 2px 8px; border-radius: 20px; margin-top: 2px; display: inline-block; }
.user-menu-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--text); font-size: 0.85rem; transition: background 0.15s; }
.user-menu-item:hover { background: var(--bg); }
.user-menu-item.danger { color: var(--danger); }
.user-menu-item i { width: 16px; }

/* SIDEBAR */
.sidebar-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 150; display: none; backdrop-filter: blur(2px); }
.sidebar-overlay.open { display: block; }
.sidebar { position: fixed; left: -280px; top: 0; bottom: 0; width: var(--sidebar-w); background: var(--surface); z-index: 160; transition: left 0.3s cubic-bezier(0.4,0,0.2,1); overflow-y: auto; box-shadow: var(--shadow-lg); }
.sidebar.open { left: 0; }
.sidebar-profile { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: 48px 20px 24px; display: flex; align-items: center; gap: 14px; }
.avatar-lg { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: white; flex-shrink: 0; }
.profile-name { font-weight: 700; color: white; font-size: 0.95rem; }
.profile-role { font-size: 0.75rem; color: rgba(255,255,255,0.7); margin-top: 2px; }
.sidebar-nav { padding: 16px 12px; }
.nav-section-title { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; color: var(--text-light); padding: 12px 12px 6px; text-transform: uppercase; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; text-decoration: none; color: var(--text-muted); font-size: 0.875rem; font-weight: 500; transition: all 0.2s; position: relative; margin-bottom: 2px; }
.nav-item:hover { background: var(--primary-pale); color: var(--primary); }
.nav-item.active { background: var(--primary); color: white; }
.nav-item.active i { color: white; }
.nav-item i { width: 18px; text-align: center; font-size: 15px; }
.nav-item.danger { color: var(--danger); }
.nav-item.danger:hover { background: var(--danger-light); }
.nav-badge { background: var(--danger); color: white; font-size: 9px; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; margin-left: auto; }

/* MAIN CONTENT */
.main-content { min-height: calc(100vh - var(--topbar-h) - var(--bottom-nav-h)); }
.page-wrap { padding: 16px; }

/* BOTTOM NAV */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; height: var(--bottom-nav-h); background: var(--surface); border-top: 1px solid var(--border); display: flex; align-items: center; z-index: 100; padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 12px rgba(0,0,0,0.06); }
.bottom-nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; color: var(--text-muted); font-size: 0.6rem; font-weight: 600; padding: 8px 4px; position: relative; transition: color 0.2s; }
.bottom-nav-item i { font-size: 20px; }
.bottom-nav-item.active { color: var(--primary); }
.bottom-nav-item.active i { transform: translateY(-2px); }

/* === COMPONENTS === */

/* Cards */
.card { background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); margin-bottom: 14px; }
.card-title { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.card-title i { color: var(--primary); }

/* Stats Cards */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.stat-card { background: var(--surface); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); text-decoration: none; color: inherit; transition: transform 0.2s, box-shadow 0.2s; }
.stat-card:active { transform: scale(0.97); }
.stat-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 8px; }
.stat-value { font-size: 1.4rem; font-weight: 800; font-family: var(--font2); color: var(--text); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }
.stat-change { font-size: 0.7rem; margin-top: 4px; }

/* Color variants */
.bg-green { background: var(--primary-pale); color: var(--primary); }
.bg-amber { background: var(--accent-light); color: var(--accent); }
.bg-blue { background: var(--info-light); color: var(--info); }
.bg-red { background: var(--danger-light); color: var(--danger); }
.bg-teal { background: var(--success-light); color: var(--success); }

/* Page Header */
.page-header { margin-bottom: 20px; }
.page-header h2 { font-size: 1.3rem; font-weight: 800; color: var(--text); font-family: var(--font2); }
.page-header p { color: var(--text-muted); font-size: 0.82rem; margin-top: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 12px; font-size: 0.85rem; font-weight: 600; border: none; cursor: pointer; transition: all 0.2s; text-decoration: none; font-family: var(--font); white-space: nowrap; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.btn-danger { background: var(--danger); color: white; }
.btn-warning { background: var(--accent); color: white; }
.btn-success { background: var(--success); color: white; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-sm { padding: 6px 12px; font-size: 0.78rem; border-radius: 9px; }
.btn-full { width: 100%; justify-content: center; padding: 14px; border-radius: 14px; font-size: 0.95rem; }
.btn-icon { width: 36px; height: 36px; border-radius: 10px; padding: 0; justify-content: center; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-control { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 12px; font-size: 0.875rem; font-family: var(--font); color: var(--text); background: var(--surface); transition: all 0.2s; outline: none; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,107,58,0.1); }
.form-control::placeholder { color: var(--text-light); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-hint { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }

/* Input with icon */
.input-group { position: relative; }
.input-group .form-control { padding-left: 42px; }
.input-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 15px; }

/* Badges */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 700; }
.badge-success { background: var(--success-light); color: var(--success); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-danger { background: var(--danger-light); color: var(--danger); }
.badge-info { background: var(--info-light); color: var(--info); }
.badge-secondary { background: var(--bg); color: var(--text-muted); }
.badge-role-admin { background: var(--danger-light); color: var(--danger); }
.badge-role-pegawai { background: var(--info-light); color: var(--info); }
.badge-role-penghuni { background: var(--success-light); color: var(--success); }

/* Lists */
.list-item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; }
.list-item:last-child { border-bottom: none; }
.list-item:active { opacity: 0.7; }
.list-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.list-content { flex: 1; min-width: 0; }
.list-title { font-weight: 600; font-size: 0.875rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-subtitle { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.list-end { text-align: right; flex-shrink: 0; }
.list-amount { font-weight: 700; font-size: 0.9rem; color: var(--text); font-family: var(--font2); }
.list-time { font-size: 0.7rem; color: var(--text-muted); }

/* Section Header */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-title { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.see-all { font-size: 0.78rem; color: var(--primary); font-weight: 600; text-decoration: none; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: 12px; font-size: 0.82rem; margin-bottom: 14px; display: flex; align-items: flex-start; gap: 10px; }
.alert i { margin-top: 1px; flex-shrink: 0; }
.alert-success { background: var(--success-light); color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: var(--danger-light); color: #991b1b; border: 1px solid #fca5a5; }
.alert-warning { background: var(--warning-light); color: #92400e; border: 1px solid #fcd34d; }
.alert-info { background: var(--info-light); color: #1e40af; border: 1px solid #93c5fd; }

/* Table */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data-table { width: 100%; border-collapse: collapse; min-width: 400px; }
.data-table th { background: var(--bg); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); padding: 10px 12px; text-align: left; }
.data-table td { padding: 12px; border-bottom: 1px solid var(--border); font-size: 0.82rem; color: var(--text); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface2); }

/* Progress */
.progress { background: var(--border); border-radius: 99px; height: 8px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--primary), var(--primary-light)); transition: width 0.5s ease; }

/* Empty State */
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-muted); }
.empty-state i { font-size: 48px; margin-bottom: 16px; opacity: 0.3; display: block; }
.empty-state h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.empty-state p { font-size: 0.82rem; margin-bottom: 20px; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 300; display: none; align-items: flex-end; justify-content: center; backdrop-filter: blur(4px); }
.modal-overlay.open { display: flex; }
.modal { background: var(--surface); border-radius: 24px 24px 0 0; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; animation: slideUp 0.3s ease; }
.modal-header { padding: 20px 20px 0; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: var(--surface); z-index: 1; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.modal-title { font-size: 1rem; font-weight: 700; }
.modal-close { background: var(--bg); border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 16px; color: var(--text-muted); display: flex; align-items: center; justify-content: center; }
.modal-body { padding: 20px; }
.modal-footer { padding: 12px 20px 20px; display: flex; gap: 10px; justify-content: flex-end; }

/* Dashboard Hero */
.dash-hero { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%); border-radius: var(--radius-lg); padding: 24px 20px; margin-bottom: 16px; position: relative; overflow: hidden; }
.dash-hero::before { content: ''; position: absolute; right: -20px; top: -20px; width: 140px; height: 140px; background: rgba(255,255,255,0.06); border-radius: 50%; }
.dash-hero::after { content: ''; position: absolute; right: 20px; bottom: -30px; width: 90px; height: 90px; background: rgba(255,255,255,0.04); border-radius: 50%; }
.hero-greeting { font-size: 0.82rem; color: rgba(255,255,255,0.7); margin-bottom: 4px; }
.hero-name { font-size: 1.3rem; font-weight: 800; color: white; font-family: var(--font2); }
.hero-sub { font-size: 0.78rem; color: rgba(255,255,255,0.6); margin-top: 4px; }
.hero-stats { display: flex; gap: 16px; margin-top: 20px; }
.hero-stat { text-align: center; }
.hero-stat-val { font-size: 1.3rem; font-weight: 800; color: white; font-family: var(--font2); }
.hero-stat-label { font-size: 0.68rem; color: rgba(255,255,255,0.65); margin-top: 2px; }

/* Quick Actions */
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.quick-action { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; background: var(--surface); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: transform 0.2s; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.quick-action:active { transform: scale(0.94); }
.quick-action .qa-icon { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 19px; }
.quick-action span { font-size: 0.65rem; font-weight: 600; text-align: center; color: var(--text-muted); }

/* Tagihan Card */
.tagihan-card { background: linear-gradient(135deg, #fff8e1, #fffde7); border: 1px solid #fcd34d; border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.tagihan-card.overdue { background: linear-gradient(135deg, #fef2f2, #fff5f5); border-color: #fca5a5; }
.tagihan-card.lunas { background: linear-gradient(135deg, #ecfdf5, #f0fdf4); border-color: #6ee7b7; }

/* Search */
.search-bar { position: relative; margin-bottom: 16px; }
.search-bar input { width: 100%; padding: 12px 14px 12px 42px; border: 1.5px solid var(--border); border-radius: 14px; background: var(--surface); font-family: var(--font); font-size: 0.875rem; color: var(--text); outline: none; transition: border 0.2s; }
.search-bar input:focus { border-color: var(--primary); }
.search-bar i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }

/* Filter Chips */
.filter-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 16px; scrollbar-width: none; }
.filter-chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; padding: 6px 14px; border-radius: 99px; font-size: 0.75rem; font-weight: 600; border: 1.5px solid var(--border); background: var(--surface); color: var(--text-muted); cursor: pointer; transition: all 0.2s; }
.chip.active { background: var(--primary); color: white; border-color: var(--primary); }

/* Payment Methods */
.payment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.payment-method { border: 2px solid var(--border); border-radius: var(--radius); padding: 14px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 10px; }
.payment-method.selected { border-color: var(--primary); background: var(--primary-pale); }
.payment-method .pm-icon { font-size: 22px; width: 36px; text-align: center; }
.payment-method .pm-name { font-size: 0.8rem; font-weight: 600; }
.payment-method .pm-sub { font-size: 0.68rem; color: var(--text-muted); }

/* Chart placeholder */
.chart-bar-wrap { display: flex; align-items: flex-end; gap: 8px; height: 80px; margin-bottom: 8px; }
.chart-bar { flex: 1; background: var(--primary); border-radius: 6px 6px 0 0; opacity: 0.7; min-height: 4px; transition: opacity 0.2s; }
.chart-bar:hover { opacity: 1; }
.chart-labels { display: flex; gap: 8px; }
.chart-label { flex: 1; font-size: 0.6rem; text-align: center; color: var(--text-muted); font-weight: 600; }

/* Animations */
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.page-wrap { animation: fadeIn 0.25s ease; }

/* Notif items */
.notif-item { display: flex; gap: 12px; padding: 14px; border-radius: var(--radius); background: var(--surface); margin-bottom: 8px; border: 1px solid var(--border); position: relative; }
.notif-item.unread { background: var(--primary-pale); border-color: rgba(26,107,58,0.15); }
.notif-dot { position: absolute; top: 14px; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.notif-icon-wrap { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notif-title { font-weight: 600; font-size: 0.85rem; }
.notif-body { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.notif-time { font-size: 0.68rem; color: var(--text-light); margin-top: 4px; }

/* Summary row */
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.83rem; }
.summary-row:last-child { border-bottom: none; font-weight: 700; }
.summary-row .label { color: var(--text-muted); }
.summary-row .value { font-weight: 600; }

/* Accordion/FAQ */
.accordion-item { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; overflow: hidden; }
.accordion-head { padding: 14px 16px; font-weight: 600; font-size: 0.875rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: var(--surface); }
.accordion-body { padding: 0 16px 14px; font-size: 0.82rem; color: var(--text-muted); line-height: 1.7; display: none; }
.accordion-body.open { display: block; }

/* Avatar fallback */
.avatar-fallback { width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.avatar-fallback.lg { width: 48px; height: 48px; font-size: 18px; }

/* Divider */
.divider { height: 1px; background: var(--border); margin: 16px 0; }
.divider-text { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 0.78rem; margin: 16px 0; }
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Floating Action Button */
.fab { position: fixed; bottom: calc(var(--bottom-nav-h) + 16px); right: 16px; width: 52px; height: 52px; border-radius: 50%; background: var(--primary); color: white; border: none; font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(26,107,58,0.4); z-index: 90; transition: transform 0.2s; }
.fab:active { transform: scale(0.93); }

/* Skeleton loading */
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Step indicator */
.steps { display: flex; align-items: center; gap: 6px; margin-bottom: 24px; }
.step { flex: 1; height: 4px; border-radius: 99px; background: var(--border); transition: background 0.3s; }
.step.done { background: var(--primary); }
.step.active { background: var(--primary-light); }

/* Scrollbar */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

/* ====== MISSING UTILITY CLASSES ====== */

/* Spacing helpers */
.mb-4 { margin-bottom: 16px !important; }
.mt-4 { margin-top: 16px !important; }
.mt-2 { margin-top: 8px !important; }
.mb-2 { margin-bottom: 8px !important; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-right { text-align: right; }

/* Bootstrap-compat card subcomponents */
.card-header { padding: 14px 20px; border-bottom: 1px solid var(--border); margin: -20px -20px 16px; border-radius: var(--radius) var(--radius) 0 0; background: var(--bg); }
.card-header h3 { font-size: 0.95rem; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 8px; }
.card-body { padding: 0; }

/* Table classes */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; min-width: 400px; font-size: 0.83rem; }
.table th { background: var(--bg); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); padding: 10px 12px; text-align: left; white-space: nowrap; }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--surface2, #f8fafb); }
.table small { font-size: 0.72rem; }

/* Row / column grid (Bootstrap-like 2-col layout) */
.row { display: grid; grid-template-columns: 1fr; gap: 14px; }
.col-md-5, .col-md-7 { width: 100%; }

/* Form grid (2 columns) */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full-width { grid-column: 1 / -1; }
.btn-block { display: block; width: 100%; text-align: center; }

/* Stats with info */
.stat-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.stat-info p { font-size: 0.75rem; color: var(--text-muted); }
.stat-icon.primary { background: var(--primary-pale); color: var(--primary); }
.stat-icon.warning { background: #fef3c7; color: #d97706; }
.stat-icon.success { background: #d1fae5; color: #059669; }

/* Fasilitas cards */
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.card-grid.three-col { grid-template-columns: 1fr; }
.fasilitas-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.fasilitas-icon-wrap { display: flex; justify-content: center; }
.fasilitas-icon-circle { width: 56px; height: 56px; border-radius: 16px; background: var(--primary-pale); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.fasilitas-info h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; }
.fasilitas-desc { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 8px; line-height: 1.5; }
.fasilitas-meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.72rem; color: var(--text-muted); flex-wrap: wrap; gap: 4px; }
.fasilitas-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Badge extra */
.badge-info { background: #dbeafe; color: #1d4ed8; }
.badge-secondary { background: var(--bg); color: var(--text-muted); }

/* Responsive */
@media (min-width: 768px) {
    .app-body { padding-left: var(--sidebar-w); }
    .sidebar { left: 0; }
    .sidebar-overlay { display: none !important; }
    .hamburger { display: none; }
    .bottom-nav { display: none; }
    .main-content { min-height: calc(100vh - var(--topbar-h)); }
    .app-body { padding-bottom: 0; }
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
    .quick-actions { grid-template-columns: repeat(6, 1fr); }
    /* FIXED: removed max-width/margin auto so content fills the sidebar-adjusted space */
    .page-wrap { padding: 24px 28px; }
    .modal { border-radius: 24px; }
    .modal-overlay { align-items: center; }
    .fab { right: 24px; bottom: 24px; }
    /* Desktop: row becomes real 2-col grid */
    .row { grid-template-columns: 5fr 7fr; }
    .card-grid.three-col { grid-template-columns: repeat(3, 1fr); }
    .card-grid { grid-template-columns: repeat(3, 1fr); }
}