/* ============================================ WebGIS BantSOSial — style.css v5 Navbar + halaman Peta & Pelaporan terpisah ============================================ */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } :root { --nav-h: 56px; --sidebar-w: 320px; --bg: #f0f4f8; --sidebar-bg: #ffffff; --border: #e2e8f0; --text: #1e293b; --text-muted: #64748b; --primary: #0f766e; --primary-light: #ccfbf1; --primary-hover: #0d6563; --orange: #ea580c; --orange-light: #ffedd5; --orange-hover: #c2410c; --danger: #dc2626; --danger-light: #fee2e2; --warning: #d97706; --warning-light: #fef3c7; --success: #16a34a; --success-light: #dcfce7; --purple: #7c3aed; --purple-light: #ede9fe; --radius-sm: 8px; --radius-md: 12px; --shadow: 0 4px 24px rgba(0,0,0,0.08); --shadow-lg: 0 8px 40px rgba(0,0,0,0.14); --font: 'DM Sans', sans-serif; --mono: 'DM Mono', monospace; } html, body { height: 100%; font-family: var(--font); background: var(--bg); overflow: hidden; color: var(--text); } /* ============================================ TOP NAVBAR ============================================ */ #topNav { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 2000; background: white; border-bottom: 1px solid var(--border); box-shadow: 0 2px 12px rgba(0,0,0,0.07); display: flex; align-items: center; padding: 0 20px; gap: 16px; } /* Brand */ .nav-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; width: var(--sidebar-w); } .nav-brand-icon { font-size: 22px; } .nav-brand-title { font-size: 13px; font-weight: 700; letter-spacing: -.3px; line-height: 1.2; } .nav-brand-sub { font-size: 9px; color: var(--text-muted); font-family: var(--mono); } /* Center menu */ .nav-menu { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; } .nav-item { display: flex; align-items: center; gap: 6px; padding: 7px 18px; border: none; background: none; border-radius: 20px; font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: all .2s; position: relative; } .nav-item:hover { background: var(--bg); color: var(--text); } .nav-item.active { background: var(--primary-light); color: var(--primary); } .nav-item-icon { font-size: 15px; } .nav-badge { position: absolute; top: 2px; right: 8px; background: var(--orange); color: white; font-size: 9px; font-weight: 700; font-family: var(--mono); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; display: flex; align-items: center; justify-content: center; } .nav-badge.hidden { display: none; } /* Right: role */ .nav-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; } .role-pill { display: flex; align-items: center; gap: 6px; background: var(--bg); border: 1.5px solid var(--border); border-radius: 20px; padding: 5px 12px; font-size: 12px; font-weight: 600; } .user-name-pill { display: flex; align-items: center; gap: 6px; background: white; border: 1.5px solid var(--border); border-radius: 20px; padding: 5px 12px; font-size: 12px; font-weight: 700; color: var(--primary); } .btn-logout { padding: 6px 14px; background: #fee2e2; color: #dc2626; border: 1px solid #fca5a5; border-radius: 20px; font-family: var(--font); font-size: 12px; font-weight: 600; cursor: pointer; transition: all .2s; text-decoration: none; display: inline-flex; align-items: center; } .btn-logout:hover { background: #dc2626; color: white; border-color: #dc2626; } #roleSwitchBtn { padding: 6px 14px; background: var(--primary); color: white; border: none; border-radius: 20px; font-family: var(--font); font-size: 12px; font-weight: 600; cursor: pointer; transition: all .2s; box-shadow: 0 2px 8px rgba(15,118,110,.3); } #roleSwitchBtn:hover { background: var(--primary-hover); } /* ============================================ PAGE SYSTEM ============================================ */ .page { position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; display: none; opacity: 0; transition: opacity .25s ease; } .page.active-page { display: flex; opacity: 1; } /* ============================================ PAGE: PETA — sidebar + map layout ============================================ */ #pagePeta { display: none; } #pagePeta.active-page { display: block; } #sidebar { position: fixed; left: 0; top: var(--nav-h); width: var(--sidebar-w); height: calc(100% - var(--nav-h)); background: white; z-index: 1000; overflow-y: auto; overflow-x: hidden; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; border-right: 1px solid var(--border); } #sidebar::-webkit-scrollbar { width: 4px; } #sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; } #map { position: fixed; left: var(--sidebar-w); top: var(--nav-h); width: calc(100% - var(--sidebar-w)); height: calc(100% - var(--nav-h)); z-index: 1; } #map.adding-mode { cursor: crosshair !important; } #map.adding-mode .leaflet-interactive { cursor: crosshair !important; } .radius-tooltip { position: fixed; bottom: 24px; right: 24px; background: rgba(15,23,42,.88); color: white; padding: 10px 16px; border-radius: var(--radius-md); font-family: var(--mono); font-size: 14px; font-weight: 500; z-index: 2000; backdrop-filter: blur(8px); box-shadow: var(--shadow-lg); pointer-events: none; transition: opacity .2s; } .radius-tooltip.hidden { opacity: 0; pointer-events: none; } .radius-handle { cursor: ew-resize; } /* ============================================ PAGE: PELAPORAN — dua kolom ============================================ */ #pagePelaporan { display: none; background: var(--bg); } #pagePelaporan.active-page { display: block; overflow-y: auto; } .report-page { display: grid; grid-template-columns: 420px 1fr; gap: 0; min-height: calc(100vh - var(--nav-h)); } .report-col { display: flex; flex-direction: column; height: calc(100vh - var(--nav-h)); overflow: hidden; } .report-col-form { background: white; border-right: 1px solid var(--border); overflow-y: auto; } .report-col-list { background: var(--bg); overflow: hidden; display: flex; flex-direction: column; } .report-col-viewer { background: var(--bg); } .report-col-header { padding: 20px 24px 16px; border-bottom: 1px solid var(--border); background: white; flex-shrink: 0; } .report-col-title { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 6px; } .report-col-sub { font-size: 11px; color: var(--text-muted); margin-top: 3px; } .report-form-body { padding: 20px 24px; } /* List toolbar */ .report-list-toolbar { padding: 12px 20px; background: white; border-bottom: 1px solid var(--border); display: flex; gap: 8px; align-items: center; flex-shrink: 0; } .report-list-container { flex: 1; overflow-y: auto; padding: 16px 20px; } .report-list-container::-webkit-scrollbar { width: 4px; } .report-list-container::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; } /* Report card */ .report-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 16px; margin-bottom: 10px; cursor: pointer; transition: all .2s; animation: fadeIn .3s; position: relative; } .report-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); border-color: var(--primary); } .report-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 6px; gap: 8px; } .report-card-name { font-size: 13px; font-weight: 700; } .report-card-time { font-size: 10px; color: var(--text-muted); font-family: var(--mono); flex-shrink: 0; } .report-card-text { font-size: 12px; color: var(--text-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .report-card-location { font-size: 10px; color: var(--text-muted); margin-top: 5px; } .report-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); } .report-status-badge { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 12px; } .report-status-badge.baru { background: #eff6ff; color: #1d4ed8; } .report-status-badge.ditangani { background: var(--warning-light); color: var(--warning); } .report-status-badge.selesai { background: var(--success-light); color: var(--success); } .report-card-img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; flex-shrink: 0; } .report-card-has-img { border-left: 3px solid var(--orange); } /* Report detail modal */ .report-detail-img { width: 100%; border-radius: var(--radius-sm); margin: 10px 0; max-height: 260px; object-fit: cover; } .report-detail-row { display: flex; justify-content: space-between; font-size: 12px; padding: 6px 0; border-bottom: 1px solid var(--border); } .report-detail-row:last-of-type { border: none; } .report-detail-label { color: var(--text-muted); } .report-detail-val { font-weight: 600; text-align: right; max-width: 60%; } /* Status change buttons */ .status-change-btns { display: flex; gap: 6px; margin-top: 12px; } .btn-status { flex: 1; padding: 8px; border: none; border-radius: var(--radius-sm); font-family: var(--font); font-size: 11px; font-weight: 700; cursor: pointer; transition: all .2s; } .btn-status.baru { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; } .btn-status.ditangani { background: var(--warning-light); color: var(--warning); border: 1px solid #fcd34d; } .btn-status.selesai { background: var(--success-light); color: var(--success); border: 1px solid #86efac; } .btn-status.active { opacity: 1; transform: scale(1.02); box-shadow: var(--shadow); } /* ============================================ SIDEBAR INNER STYLES ============================================ */ .mode-badge { margin: 10px 14px 0; padding: 8px 12px; background: #fef9c3; border: 1px solid #fde047; border-radius: var(--radius-sm); font-size: 11px; font-weight: 500; color: #854d0e; display: flex; align-items: center; gap: 8px; } .mode-badge.hidden { display: none; } .mode-badge.house-mode { background: #fff7ed; border-color: #fdba74; color: #9a3412; } .pulse-dot { width: 8px; height: 8px; background: #facc15; border-radius: 50%; flex-shrink: 0; animation: pulse 1.2s infinite; } .mode-badge.house-mode .pulse-dot { background: #fb923c; } @keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.3)} } .btn-group { padding: 12px 14px 0; display: flex; flex-direction: column; gap: 7px; } #btnAddCenter { padding: 10px 14px; background: var(--primary); color: white; border: none; border-radius: var(--radius-md); font-family: var(--font); font-size: 13px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px; transition: all .2s; box-shadow: 0 2px 8px rgba(15,118,110,.25); } #btnAddCenter:hover { background: var(--primary-hover); transform: translateY(-1px); } #btnAddCenter.active { background: #0369a1; } #btnAddHouse { padding: 10px 14px; background: var(--orange); color: white; border: none; border-radius: var(--radius-md); font-family: var(--font); font-size: 13px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px; transition: all .2s; box-shadow: 0 2px 8px rgba(234,88,12,.25); } #btnAddHouse:hover { background: var(--orange-hover); transform: translateY(-1px); } #btnAddHouse.active { background: #9a3412; } .btn-danger { margin: 6px 14px 20px; padding: 9px 14px; background: white; color: var(--danger); border: 1.5px solid var(--danger); border-radius: var(--radius-md); font-family: var(--font); font-size: 12px; font-weight: 600; cursor: pointer; width: calc(100% - 28px); transition: all .2s; } .btn-danger:hover { background: var(--danger-light); } .stat-panel { margin: 12px 14px 0; background: var(--bg); border-radius: var(--radius-md); padding: 12px; } .stat-title { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; color: var(--text-muted); margin-bottom: 8px; } .stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .stat-card { background: white; border-radius: var(--radius-sm); padding: 8px 10px; border: 1px solid var(--border); position: relative; overflow: hidden; transition: all .3s; } .stat-card:hover { transform: translateY(-1px); box-shadow: var(--shadow); } .stat-card.red { border-color: #fca5a5; background: #fff5f5; } .stat-card.yellow { border-color: #fcd34d; background: #fffbeb; } .stat-card.green { border-color: #86efac; background: #f0fdf4; } .stat-num { font-size: 20px; font-weight: 700; font-family: var(--mono); line-height: 1; transition: all .4s; } .stat-card.red .stat-num { color: var(--danger); } .stat-card.yellow .stat-num { color: var(--warning); } .stat-card.green .stat-num { color: var(--success); } .stat-label { font-size: 9px; color: var(--text-muted); margin-top: 2px; font-weight: 500; } .stat-icon { position: absolute; right: 6px; top: 6px; font-size: 13px; opacity: .3; } .section { padding: 12px 14px 0; } .section-title { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; color: var(--text-muted); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; } .badge { font-size: 10px; padding: 1px 6px; border-radius: 20px; font-family: var(--mono); margin-left: auto; color: white; } .badge-teal { background: var(--primary); } .badge-orange { background: var(--orange); } .search-wrap { margin-bottom: 6px; } .search-input { width: 100%; padding: 7px 10px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font); font-size: 12px; outline: none; transition: border-color .2s; background: white; } .search-input:focus { border-color: var(--primary); } .filter-row { display: flex; gap: 6px; margin-bottom: 8px; } .filter-select { flex: 1; padding: 6px 8px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font); font-size: 11px; outline: none; background: white; color: var(--text); cursor: pointer; margin-bottom: 6px; width: 100%; } .filter-select:focus { border-color: var(--primary); } #centerList, #houseList { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; } .empty-state { text-align: center; padding: 16px 10px; font-size: 11px; color: var(--text-muted); line-height: 1.6; background: var(--bg); border-radius: var(--radius-sm); border: 1.5px dashed var(--border); } .center-item { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 30px 9px 10px; cursor: pointer; transition: all .2s; position: relative; animation: fadeIn .3s ease; } .center-item:hover { background: var(--primary-light); border-color: var(--primary); transform: translateX(3px); } .center-item-name { font-size: 12px; font-weight: 600; } .center-item-addr { font-size: 10px; color: var(--text-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .center-item-kas { font-size: 10px; color: var(--primary); font-family: var(--mono); font-weight: 600; margin-top: 2px; } .center-item-radius { font-size: 10px; color: #3b82f6; font-family: var(--mono); margin-top: 1px; } .house-item { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 30px 9px 10px; cursor: pointer; transition: all .2s; position: relative; animation: fadeIn .3s ease; } .house-item:hover { background: var(--orange-light); border-color: var(--orange); transform: translateX(3px); } .house-item.status-red { border-left: 3px solid var(--danger); } .house-item.status-yellow { border-left: 3px solid var(--warning); } .house-item.status-green { border-left: 3px solid var(--success); } .house-item-name { font-size: 12px; font-weight: 600; } .house-item-sub { font-size: 10px; color: var(--text-muted); margin-top: 2px; } .house-item-status { font-size: 10px; font-weight: 600; margin-top: 2px; } .house-item-status.green { color: var(--success); } .house-item-status.red { color: var(--danger); } .house-item-status.yellow { color: var(--warning); } .item-delete { position: absolute; right: 7px; top: 7px; background: none; border: none; cursor: pointer; font-size: 12px; opacity: .35; transition: opacity .2s; padding: 2px 4px; border-radius: 4px; } .item-delete:hover { opacity: 1; background: var(--danger-light); } .legend-list { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; } .legend-item { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-muted); } .legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; } .legend-dot.green { background: #16a34a; } .legend-dot.red { background: #dc2626; } .legend-dot.yellow { background: #d97706; } .legend-circle { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #3b82f6; background: rgba(59,130,246,.1); flex-shrink: 0; } /* upload & report form */ .form-textarea { width: 100%; padding: 8px 10px; resize: vertical; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font); font-size: 12px; outline: none; transition: border-color .2s; background: white; color: var(--text); } .form-textarea:focus { border-color: var(--orange); } .upload-area { border: 2px dashed var(--border); border-radius: var(--radius-sm); padding: 20px; text-align: center; cursor: pointer; transition: all .2s; background: var(--bg); } .upload-area:hover { border-color: var(--orange); background: var(--orange-light); } .upload-icon { font-size: 28px; margin-bottom: 6px; } .upload-text { font-size: 12px; font-weight: 600; color: var(--text-muted); } .upload-sub { font-size: 10px; color: var(--text-muted); margin-top: 2px; } .remove-img-btn { display: block; width: 100%; margin-top: 6px; padding: 5px; background: var(--danger-light); color: var(--danger); border: 1px solid #fca5a5; border-radius: 6px; font-size: 11px; cursor: pointer; font-family: var(--font); font-weight: 600; } /* ============================================ LEAFLET POPUP ============================================ */ .leaflet-popup-content-wrapper { border-radius: var(--radius-md) !important; box-shadow: var(--shadow-lg) !important; border: 1px solid var(--border); font-family: var(--font) !important; overflow: hidden; padding: 0 !important; } .leaflet-popup-content { margin: 0 !important; width: 300px !important; } .leaflet-popup-tip { background: white !important; } .map-popup { padding: 13px 15px; } .map-popup-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; } .map-popup-addr { font-size: 11px; color: var(--text-muted); margin-bottom: 10px; line-height: 1.4; } .map-popup-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 2px 8px; border-radius: 20px; margin-bottom: 8px; } .map-popup-badge.green { background: var(--success-light); color: var(--success); } .map-popup-badge.red { background: var(--danger-light); color: var(--danger); } .map-popup-badge.yellow { background: var(--warning-light); color: var(--warning); } .map-popup-badge.nodata { background: #f1f5f9; color: var(--text-muted); } .map-popup-actions { padding: 9px 15px; background: var(--bg); display: flex; gap: 7px; } .popup-btn { flex: 1; padding: 7px 8px; border: none; border-radius: var(--radius-sm); font-family: var(--font); font-size: 11px; font-weight: 600; cursor: pointer; transition: all .2s; } .popup-btn.primary { background: var(--primary); color: white; } .popup-btn.primary:hover { background: var(--primary-hover); } .popup-btn.orange { background: var(--orange); color: white; } .popup-btn.orange:hover { background: var(--orange-hover); } .center-popup { padding: 13px 15px; } .center-popup-header { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; } .center-popup-icon { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; } .center-popup-title { font-size: 13px; font-weight: 700; line-height: 1.2; } .center-popup-addr { font-size: 10px; color: var(--text-muted); margin-bottom: 8px; line-height: 1.4; } .kas-badge { display: flex; align-items: center; gap: 6px; background: #f0fdf4; border: 1px solid #86efac; border-radius: var(--radius-sm); padding: 6px 10px; margin-bottom: 7px; } .kas-label { font-size: 10px; color: var(--success); font-weight: 600; } .kas-value { font-size: 13px; font-weight: 700; color: var(--success); font-family: var(--mono); margin-left: auto; } .radius-info-box { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: var(--radius-sm); padding: 7px 10px; font-size: 11px; color: #1d4ed8; display: flex; align-items: center; gap: 6px; margin-bottom: 5px; } .radius-val { font-family: var(--mono); font-weight: 700; font-size: 13px; margin-left: auto; } .radius-drag-hint { font-size: 10px; color: var(--text-muted); text-align: center; padding: 2px 0 4px; } /* ============================================ FORMS (shared) ============================================ */ .form-group { margin-bottom: 12px; } .form-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--text-muted); margin-bottom: 4px; display: block; } .form-input { width: 100%; padding: 8px 10px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font); font-size: 12px; color: var(--text); outline: none; transition: border-color .2s; background: white; } .form-input:focus { border-color: var(--primary); } .form-row { display: flex; gap: 7px; } .form-row .form-group { flex: 1; } .form-divider { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--text-muted); border-bottom: 1px solid var(--border); padding-bottom: 4px; margin: 10px 0 8px; } .form-submit { width: 100%; padding: 9px; background: var(--primary); color: white; border: none; border-radius: var(--radius-sm); font-family: var(--font); font-size: 12px; font-weight: 700; cursor: pointer; margin-top: 10px; transition: all .2s; } .form-submit:hover { background: var(--primary-hover); } .form-submit.orange-btn { background: var(--orange); } .form-submit.orange-btn:hover { background: var(--orange-hover); } .form-cancel { width: 100%; padding: 7px; background: none; color: var(--text-muted); border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font); font-size: 11px; cursor: pointer; margin-top: 5px; transition: all .2s; } .form-cancel:hover { background: var(--bg); } .loading-addr { font-size: 10px; color: var(--primary); padding: 4px 0; animation: blink 1s infinite; } @keyframes blink { 0%,100%{opacity:1} 50%{opacity:.4} } .form-popup { padding: 14px 15px; } .form-popup h3 { font-size: 13px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; } /* ============================================ CUSTOM DATE PICKER ============================================ */ .datepicker-overlay { position: fixed; inset: 0; z-index: 5000; display: flex; align-items: center; justify-content: center; background: rgba(15,23,42,.4); backdrop-filter: blur(3px); } .datepicker-overlay.hidden { display: none; } .datepicker-box { background: white; border-radius: 16px; box-shadow: 0 24px 80px rgba(0,0,0,.2); width: 320px; overflow: hidden; animation: slideUp .2s ease; } .dp-header { background: linear-gradient(135deg, var(--primary), #0d9488); color: white; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; } .dp-header-label { font-size: 13px; font-weight: 600; opacity: .8; } .dp-header-value { font-size: 22px; font-weight: 700; font-family: var(--mono); } .dp-tabs { display: flex; border-bottom: 1px solid var(--border); } .dp-tab { flex: 1; padding: 10px; text-align: center; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; cursor: pointer; color: var(--text-muted); border-bottom: 2px solid transparent; transition: all .2s; } .dp-tab.active { color: var(--primary); border-bottom-color: var(--primary); } .dp-body { padding: 14px; min-height: 180px; } .dp-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .dp-grid-7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; } .dp-cell { padding: 8px 4px; text-align: center; font-size: 12px; font-weight: 500; border-radius: var(--radius-sm); cursor: pointer; border: 1.5px solid transparent; transition: all .15s; color: var(--text); } .dp-cell:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); } .dp-cell.selected { background: var(--primary); color: white; border-color: var(--primary); } .dp-cell.today { border-color: var(--primary); color: var(--primary); font-weight: 700; } .dp-year-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; } .dp-nav-btn { padding: 5px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; font-size: 12px; cursor: pointer; font-weight: 700; transition: all .2s; } .dp-nav-btn:hover { background: var(--primary-light); border-color: var(--primary); } .dp-year-range { font-size: 11px; color: var(--text-muted); font-family: var(--mono); } .dp-weekday { text-align: center; font-size: 9px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; padding: 4px 0; } .dp-actions { padding: 10px 14px; border-top: 1px solid var(--border); display: flex; gap: 8px; background: var(--bg); } .dp-btn-ok { flex: 2; padding: 8px; background: var(--primary); color: white; border: none; border-radius: var(--radius-sm); font-family: var(--font); font-size: 12px; font-weight: 700; cursor: pointer; transition: background .2s; } .dp-btn-ok:hover { background: var(--primary-hover); } .dp-btn-cancel { flex: 1; padding: 8px; background: white; color: var(--text-muted); border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font); font-size: 12px; cursor: pointer; } .date-trigger { width: 100%; padding: 7px 9px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font); font-size: 12px; color: var(--text); outline: none; cursor: pointer; background: white; text-align: left; transition: border-color .2s; } .date-trigger:hover, .date-trigger:focus { border-color: var(--primary); } .date-trigger-placeholder { color: var(--text-muted); } /* ============================================ MODAL (shared) ============================================ */ .modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.55); z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 16px; backdrop-filter: blur(3px); } .modal-overlay.hidden { display: none; } .modal-box { background: white; border-radius: 16px; width: 100%; max-width: 540px; max-height: 90vh; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 24px 80px rgba(0,0,0,.2); animation: slideUp .25s ease; } .modal-wide { max-width: 640px; } @keyframes slideUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} } .modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); background: linear-gradient(135deg,#f0fdf4,#e0f2fe); flex-shrink: 0; } .modal-title { font-size: 15px; font-weight: 700; } .modal-close { background: none; border: none; font-size: 16px; cursor: pointer; color: var(--text-muted); padding: 4px 8px; border-radius: 6px; transition: all .2s; } .modal-close:hover { background: var(--bg); } .modal-body { overflow-y: auto; padding: 20px; flex: 1; } .modal-body::-webkit-scrollbar { width: 4px; } .modal-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; } .modal-section { margin-bottom: 16px; } .modal-section-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--text-muted); padding-bottom: 6px; border-bottom: 1px solid var(--border); margin-bottom: 10px; } .info-box { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 10px; } .info-box-row { display: flex; justify-content: space-between; font-size: 11px; padding: 3px 0; } .info-box-label { color: var(--text-muted); } .info-box-val { font-weight: 600; color: var(--text); font-family: var(--mono); font-size: 10px; text-align: right; max-width: 60%; } .member-card { border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 12px; margin-bottom: 10px; background: #fafafa; } .member-card-header { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; } .member-num { width: 22px; height: 22px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; } .salary-row { display: none; } .salary-row.visible { display: flex; } .status-pills { display: flex; gap: 7px; margin-bottom: 2px; } .status-pill { flex: 1; padding: 8px 6px; border: 2px solid var(--border); border-radius: var(--radius-sm); text-align: center; cursor: pointer; font-size: 11px; font-weight: 600; transition: all .2s; background: white; } .status-pill:hover { border-color: var(--orange); } .status-pill.selected.sangat_miskin { border-color: var(--danger); background: var(--danger-light); color: var(--danger); } .status-pill.selected.miskin { border-color: var(--warning); background: var(--warning-light); color: var(--warning); } .status-pill.selected.tidak_miskin { border-color: var(--success); background: var(--success-light); color: var(--success); } .modal-actions { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; gap: 8px; background: var(--bg); flex-shrink: 0; } .btn-modal-save { flex: 2; padding: 10px; background: var(--orange); color: white; border: none; border-radius: var(--radius-md); font-family: var(--font); font-size: 13px; font-weight: 700; cursor: pointer; transition: all .2s; } .btn-modal-save:hover { background: var(--orange-hover); } .btn-modal-cancel { flex: 1; padding: 10px; background: white; color: var(--text-muted); border: 1.5px solid var(--border); border-radius: var(--radius-md); font-family: var(--font); font-size: 12px; cursor: pointer; } .btn-modal-cancel:hover { background: var(--bg); } /* detail modal */ .detail-header-band { background: linear-gradient(135deg,var(--orange-light),#fff7ed); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 14px; } .detail-addr { font-size: 11px; color: var(--text-muted); margin-top: 3px; } .detail-center-row { background: var(--primary-light); border: 1px solid #99f6e4; border-radius: var(--radius-sm); padding: 8px 12px; margin-bottom: 12px; font-size: 11px; display: flex; align-items: center; gap: 8px; } .detail-miskin-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; margin-bottom: 12px; } .detail-miskin-badge.sangat_miskin { background: var(--danger-light); color: var(--danger); } .detail-miskin-badge.miskin { background: var(--warning-light); color: var(--warning); } .detail-miskin-badge.tidak_miskin { background: var(--success-light); color: var(--success); } .members-grid { display: flex; flex-direction: column; gap: 8px; } .member-detail-card { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--bg); } .member-detail-name { font-size: 13px; font-weight: 700; margin-bottom: 4px; } .member-detail-row { display: flex; justify-content: space-between; font-size: 11px; padding: 2px 0; color: var(--text-muted); } .member-detail-row strong { color: var(--text); font-family: var(--mono); font-size: 10px; } .bantuan-section { margin-top: 14px; padding: 12px 14px; background: var(--bg); border-radius: var(--radius-sm); border: 1px solid var(--border); display: flex; align-items: center; gap: 10px; } .bantuan-label { font-size: 12px; font-weight: 600; flex: 1; } .btn-bantuan { padding: 7px 14px; border: none; border-radius: var(--radius-sm); font-family: var(--font); font-size: 11px; font-weight: 700; cursor: pointer; transition: all .2s; } .btn-bantuan.help { background: var(--success); color: white; } .btn-bantuan.unhelp { background: var(--danger-light); color: var(--danger); border: 1px solid #fca5a5; } /* Role modal */ .role-cards { display: flex; flex-direction: column; gap: 10px; } .role-card { border: 2px solid var(--border); border-radius: var(--radius-md); padding: 14px 16px; cursor: pointer; transition: all .2s; background: var(--bg); } .role-card:hover { border-color: var(--primary); background: var(--primary-light); transform: translateX(3px); } .role-card.active-role { border-color: var(--primary); background: var(--primary-light); } .role-card.active-role[id="roleCard_surveyer"] { border-color: var(--orange); background: var(--orange-light); } .role-card.active-role[id="roleCard_viewer"] { border-color: var(--purple); background: var(--purple-light); } .role-card-icon { font-size: 24px; margin-bottom: 4px; } .role-card-name { font-size: 14px; font-weight: 700; margin-bottom: 3px; } .role-card-desc { font-size: 11px; color: var(--text-muted); margin-bottom: 8px; line-height: 1.4; } .role-card-perms { display: flex; flex-wrap: wrap; gap: 4px; } .perm { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 12px; } .perm-green { background: var(--success-light); color: var(--success); } .perm-red { background: var(--danger-light); color: var(--danger); } /* ============================================ ANIMATIONS ============================================ */ @keyframes fadeIn { from{opacity:0;transform:translateX(-8px)} to{opacity:1;transform:translateX(0)} } /* ============================================ USER NAME PILL & LOGOUT ============================================ */ .user-name-pill { display: flex; align-items: center; gap: 6px; background: var(--primary-light); border: 1.5px solid #99f6e4; border-radius: 20px; padding: 5px 12px; font-size: 12px; font-weight: 600; color: var(--primary); } .btn-logout { padding: 6px 14px; background: white; color: var(--danger); border: 1.5px solid #fca5a5; border-radius: 20px; font-family: var(--font); font-size: 11px; font-weight: 600; cursor: pointer; transition: all .2s; } .btn-logout:hover { background: var(--danger-light); border-color: var(--danger); } /* ============================================ PAGE: HISTORY PELAPORAN ============================================ */ #pageHistory { display: none; background: var(--bg); } #pageHistory.active-page { display: block; overflow-y: auto; } .history-page { max-width: 900px; margin: 0 auto; padding: 0 20px; min-height: calc(100vh - var(--nav-h)); } .history-header { background: white; border-radius: 0 0 var(--radius-md) var(--radius-md); padding: 24px 28px 20px; border: 1px solid var(--border); border-top: none; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; box-shadow: var(--shadow); } .history-title { font-size: 18px; font-weight: 700; margin-bottom: 3px; } .history-sub { font-size: 12px; color: var(--text-muted); } .history-stats { display: flex; gap: 12px; flex-shrink: 0; } .history-stat { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 16px; text-align: center; min-width: 80px; transition: all .2s; } .history-stat:hover { transform: translateY(-1px); box-shadow: var(--shadow); } .history-stat-num { display: block; font-size: 20px; font-weight: 700; font-family: var(--mono); color: var(--primary); line-height: 1; } .history-stat-label { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: var(--text-muted); margin-top: 3px; display: block; } .history-toolbar { display: flex; gap: 8px; margin-bottom: 16px; } .history-toolbar .search-input { padding: 10px 14px; font-size: 13px; border-radius: var(--radius-md); box-shadow: var(--shadow); } .history-list { display: flex; flex-direction: column; gap: 10px; padding-bottom: 30px; } /* History card — read-only version of report card */ .history-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px 18px; transition: all .2s; animation: fadeIn .3s; position: relative; } .history-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); border-color: var(--primary); } .history-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 8px; gap: 10px; } .history-card-name { font-size: 13px; font-weight: 700; } .history-card-time { font-size: 10px; color: var(--text-muted); font-family: var(--mono); flex-shrink: 0; background: var(--bg); padding: 2px 8px; border-radius: 12px; } .history-card-text { font-size: 13px; color: var(--text); line-height: 1.6; margin-bottom: 10px; } .history-card-img { width: 100%; max-height: 240px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 10px; border: 1px solid var(--border); } .history-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--border); } .history-card-status { font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 12px; } .history-card-status.baru { background: #eff6ff; color: #1d4ed8; } .history-card-status.ditangani { background: var(--warning-light); color: var(--warning); } .history-card-status.selesai { background: var(--success-light); color: var(--success); } .history-card-readonly { font-size: 10px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; } /* ============================================ RESPONSIVE — History ============================================ */ @media (max-width: 768px) { .history-header { flex-direction: column; align-items: flex-start; } .history-stats { width: 100%; justify-content: space-between; } .history-stat { min-width: 0; flex: 1; padding: 8px 10px; } }