/* ─── VARIABLES ──────────────────────────────────────────────── */ :root { --bg: #0f1117; --surface: #1a1d27; --surface2: #22263a; --surface3: #2a2f45; --border: #2e3350; --accent: #5b7fff; --accent2: #7c5bff; --green: #22c55e; --red: #ef4444; --yellow: #f59e0b; --orange: #f97316; --text: #e8eaf6; --text2: #8890b0; --header-h: 61px; --sidebar-w: 300px; } /* ─── RESET ──────────────────────────────────────────────────── */ * { box-sizing: border-box; margin: 0; padding: 0; } html { height: 100%; } body { font-family: 'Plus Jakarta Sans', sans-serif; background: var(--bg); color: var(--text); height: 100%; overflow: hidden; } /* ─── HEADER ─────────────────────────────────────────────────── */ header { position: fixed; top: 0; left: 0; right: 0; height: var(--header-h); background: var(--surface); border-bottom: 1px solid var(--border); padding: 0 20px; display: flex; align-items: center; gap: 12px; z-index: 800; } header .logo { width: 36px; height: 36px; flex-shrink: 0; background: linear-gradient(135deg, var(--accent), var(--accent2)); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; } header h1 { font-size: 15px; font-weight: 700; letter-spacing: -0.3px; background: linear-gradient(90deg, var(--text), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } header p { font-size: 11px; color: var(--text2); margin-top: 1px; } /* ─── LAYOUT ─────────────────────────────────────────────────── */ .main { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; } /* ─── SIDEBAR ────────────────────────────────────────────────── */ .sidebar { position: absolute; top: 0; left: 0; width: var(--sidebar-w); bottom: 0; background: var(--surface); border-right: 1px solid var(--border); overflow-y: auto; display: flex; flex-direction: column; z-index: 500; } .sidebar::-webkit-scrollbar { width: 4px; } .sidebar::-webkit-scrollbar-track { background: transparent; } .sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; } /* ─── SECTION ────────────────────────────────────────────────── */ .section { padding: 14px 16px; border-bottom: 1px solid var(--border); flex-shrink: 0; } .section-title { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text2); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; } .section-title .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; } .count-badge { margin-left: auto; background: var(--surface3); border: 1px solid var(--border); border-radius: 10px; padding: 1px 7px; font-size: 10px; color: var(--text2); font-family: 'JetBrains Mono', monospace; } /* ─── BUTTONS ────────────────────────────────────────────────── */ .btn { width: 100%; padding: 9px 14px; border-radius: 8px; border: none; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.15s; display: flex; align-items: center; justify-content: center; gap: 6px; } .btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: white; flex: 2; } .btn-primary:hover { opacity: 0.88; transform: translateY(-1px); } .btn-danger { background: rgba(239,68,68,0.12); color: var(--red); border: 1px solid rgba(239,68,68,0.25); } .btn-danger:hover { background: rgba(239,68,68,0.22); } .btn-warning { background: rgba(249,115,22,0.12); color: var(--orange); border: 1px solid rgba(249,115,22,0.25); } .btn-warning:hover { background: rgba(249,115,22,0.22); } .btn-loc { background: rgba(245,158,11,0.12); color: var(--yellow); border: 1px solid rgba(245,158,11,0.25); } .btn-loc:hover { background: rgba(245,158,11,0.22); } .btn-ghost { background: var(--surface3); color: var(--text2); border: 1px solid var(--border); flex: 1; } .btn-ghost:hover { background: var(--border); color: var(--text); } /* ─── STATS ──────────────────────────────────────────────────── */ .stats-row { display: flex; gap: 6px; } .stat-box { flex: 1; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 8px; text-align: center; } .stat-box .stat-num { font-family: 'JetBrains Mono', monospace; font-size: 20px; font-weight: 700; } .stat-box .stat-label { font-size: 10px; color: var(--text2); margin-top: 2px; } .stat-box.green .stat-num { color: var(--green); } .stat-box.red .stat-num { color: var(--red); } .stat-box.blue .stat-num { color: var(--accent); } .stat-box.yellow .stat-num { color: var(--yellow); } /* ─── ITEM LIST ──────────────────────────────────────────────── */ .item-list { display: flex; flex-direction: column; gap: 5px; } .item-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; display: flex; align-items: flex-start; gap: 8px; font-size: 12px; cursor: pointer; transition: border-color 0.15s, background 0.15s; } .item-card:hover { border-color: var(--accent); background: var(--surface3); } .item-card.highlighted { border-color: var(--accent) !important; background: rgba(91,127,255,0.1) !important; box-shadow: 0 0 0 1px var(--accent); } .item-card .item-icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; } .item-card .item-info { flex: 1; min-width: 0; } .item-card .item-name { font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .item-card .item-addr { color: var(--text2); font-size: 10px; margin-top: 2px; line-height: 1.3; } .item-card .item-coord { font-family: 'JetBrains Mono', monospace; font-size: 9px; color: var(--text2); margin-top: 2px; } /* Radius live-edit di sidebar */ .item-radius-row { display: flex; align-items: center; gap: 6px; margin-top: 5px; } .item-radius-row input[type="range"] { flex: 1; height: 3px; margin-bottom: 0; background: var(--border); } .item-radius-row input[type="range"]::-webkit-slider-thumb { width: 13px; height: 13px; background: var(--accent); } .radius-display { font-family: 'JetBrains Mono', monospace; font-size: 9px; color: var(--accent); background: var(--surface3); padding: 1px 5px; border-radius: 4px; border: 1px solid var(--border); white-space: nowrap; flex-shrink: 0; } /* Nearest ibadah tag */ .nearest-tag { font-size: 9px; padding: 1px 5px; border-radius: 4px; background: rgba(91,127,255,0.15); color: var(--accent); border: 1px solid rgba(91,127,255,0.3); margin-top: 3px; display: inline-block; font-weight: 600; } .badge { font-size: 10px; padding: 2px 5px; border-radius: 4px; font-weight: 700; flex-shrink: 0; } .badge-green { background: rgba(34,197,94,0.15); color: var(--green); } .badge-red { background: rgba(239,68,68,0.12); color: var(--red); } .badge-yellow { background: rgba(245,158,11,0.15); color: var(--yellow); } .item-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; } .btn-remove { background: transparent; border: none; cursor: pointer; color: var(--text2); font-size: 13px; padding: 2px 4px; border-radius: 4px; transition: color 0.15s, background 0.15s; line-height: 1; } .btn-remove:hover { color: var(--red); background: rgba(239,68,68,0.1); } .btn-edit { background: transparent; border: none; cursor: pointer; color: var(--text2); font-size: 12px; padding: 2px 4px; border-radius: 4px; transition: color 0.15s, background 0.15s; line-height: 1; } .btn-edit:hover { color: var(--accent); background: rgba(91,127,255,0.1); } .empty-state { text-align: center; color: var(--text2); font-size: 11px; padding: 14px 0; opacity: 0.5; } label { display: block; font-size: 11px; color: var(--text2); margin-bottom: 5px; font-weight: 500; } /* ─── MAP CONTAINER ──────────────────────────────────────────── */ .map-container { position: absolute; top: 0; left: var(--sidebar-w); right: 0; bottom: 0; z-index: 1; } #map { width: 100%; height: 100%; } /* ─── TOOLBAR ────────────────────────────────────────────────── */ .toolbar { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 400; background: var(--surface); border: 1px solid var(--border); border-radius: 50px; padding: 6px 8px; display: flex; align-items: center; gap: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.4); white-space: nowrap; } .toolbar-label { font-size: 11px; color: var(--text2); font-weight: 600; padding: 0 4px; } .toggle-group { display: flex; gap: 3px; background: var(--surface2); border: 1px solid var(--border); border-radius: 40px; padding: 3px; } .toggle-btn { padding: 6px 14px; border-radius: 40px; border: none; font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.18s; color: var(--text2); background: transparent; } .toggle-btn:hover { color: var(--text); background: var(--surface3); } .toggle-btn.active-ibadah { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: white; box-shadow: 0 2px 10px rgba(91,127,255,0.4); } .toggle-btn.active-miskin { background: linear-gradient(135deg, #16a34a, var(--green)); color: white; box-shadow: 0 2px 10px rgba(34,197,94,0.4); } .toolbar-loc-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface2); cursor: pointer; font-size: 14px; transition: all 0.15s; display: flex; align-items: center; justify-content: center; } .toolbar-loc-btn:hover { background: rgba(245,158,11,0.15); border-color: var(--yellow); } #map.adding-ibadah { cursor: crosshair !important; } #map.adding-miskin { cursor: cell !important; } /* ─── LOC BAR ────────────────────────────────────────────────── */ #loc-bar { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 16px; z-index: 400; font-size: 12px; color: var(--text2); display: none; gap: 8px; align-items: center; max-width: 90%; box-shadow: 0 4px 24px rgba(0,0,0,0.4); } #loc-bar .loc-icon { font-size: 16px; } #loc-bar .loc-text strong { color: var(--yellow); display: block; font-size: 13px; } /* ─── PULSE ──────────────────────────────────────────────────── */ @keyframes markerPulse { 0% { box-shadow: 0 0 0 0 rgba(91,127,255,0.8); } 70% { box-shadow: 0 0 0 12px rgba(91,127,255,0); } 100% { box-shadow: 0 0 0 0 rgba(91,127,255,0); } } .leaflet-marker-pulsing div { animation: markerPulse 1s ease-out 3 !important; } /* ─── FORM OVERLAY ───────────────────────────────────────────── */ .form-overlay { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.5); backdrop-filter: blur(3px); transition: opacity 0.2s; } .form-overlay.hidden { display: none; } .form-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; width: 380px; max-width: 95vw; box-shadow: 0 20px 60px rgba(0,0,0,0.5); overflow: hidden; animation: formIn 0.2s cubic-bezier(0.34,1.56,0.64,1); } @keyframes formIn { from { opacity: 0; transform: scale(0.92) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } } .form-header { padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 14px; } .form-header.ibadah-header { background: linear-gradient(135deg, rgba(91,127,255,0.15), rgba(124,91,255,0.1)); } .form-header.miskin-header { background: linear-gradient(135deg, rgba(34,197,94,0.12), rgba(22,163,74,0.08)); } .form-close { background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; cursor: pointer; color: var(--text2); width: 26px; height: 26px; font-size: 12px; display: flex; align-items: center; justify-content: center; transition: all 0.15s; } .form-close:hover { color: var(--red); border-color: var(--red); } .form-body { padding: 16px 18px; display: flex; flex-direction: column; } .form-body label { font-size: 11px; color: var(--text2); margin-bottom: 5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; } .form-body input[type="text"], .form-body select { width: 100%; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); padding: 8px 12px; font-size: 13px; font-family: inherit; outline: none; transition: border-color 0.2s; margin-bottom: 12px; } .form-body input:focus, .form-body select:focus { border-color: var(--accent); } .range-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; } .range-val { font-family: 'JetBrains Mono', monospace; font-size: 12px; background: var(--surface2); padding: 2px 8px; border-radius: 4px; color: var(--accent); border: 1px solid var(--border); } input[type="range"] { -webkit-appearance: none; width: 100%; height: 4px; background: var(--border); border-radius: 2px; outline: none; margin-bottom: 12px; } input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); cursor: pointer; border: 2px solid var(--bg); } .form-coord { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--text2); margin-bottom: 8px; padding: 5px 8px; background: var(--surface2); border-radius: 6px; border: 1px solid var(--border); } .form-addr-preview { font-size: 11px; color: var(--text2); line-height: 1.4; padding: 8px 10px; background: var(--surface2); border-radius: 8px; border: 1px solid var(--border); margin-bottom: 4px; } .addr-loading { color: var(--text2); font-style: italic; } .form-footer { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; gap: 8px; } /* ─── TOAST ──────────────────────────────────────────────────── */ #toast { position: fixed; top: 76px; right: 16px; background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 11px 15px; font-size: 13px; z-index: 9999; display: none; animation: slideIn 0.2s ease; max-width: 280px; box-shadow: 0 4px 20px rgba(0,0,0,0.3); } @keyframes slideIn { from { opacity:0; transform: translateX(16px); } to { opacity:1; transform: translateX(0); } } /* ─── LEAFLET POPUP ──────────────────────────────────────────── */ .leaflet-popup-content-wrapper { background: var(--surface2) !important; color: var(--text) !important; border: 1px solid var(--border) !important; border-radius: 10px !important; box-shadow: 0 4px 20px rgba(0,0,0,0.4) !important; font-family: 'Plus Jakarta Sans', sans-serif !important; } .leaflet-popup-tip { background: var(--surface2) !important; } .leaflet-popup-content { margin: 12px 14px !important; font-size: 13px !important; line-height: 1.6 !important; } .leaflet-popup-content b { color: var(--accent); } .leaflet-popup-content .popup-addr { color: var(--text2); font-size: 11px; margin-top: 4px; } .leaflet-popup-close-button { color: var(--text2) !important; }