:root { --primary: #EA580C; --primary-hover: #C2410C; --primary-light: #FED7AA; --secondary: #0D9488; --secondary-light: #CCFBF1; --tertiary: #EAB308; --bg-light: #F8FAFC; --bg-white: #ffffff; --text-main: #1E293B; --text-muted: #64748B; --border: #E2E8F0; --shadow-sm: 0 1px 3px rgba(0,0,0,0.08); --shadow-md: 0 4px 12px rgba(0,0,0,0.10); --radius: 8px; --radius-pill: 9999px; --jalan-nasional: #ef4444; --jalan-provinsi: #f97316; --jalan-kabupaten: #eab308; --parsil-shm: #22c55e; --parsil-hgb: #3b82f6; --parsil-hgu: #a855f7; --parsil-hp: #06b6d4; } * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; } body { background-color: var(--bg-light); color: var(--text-main); display: flex; flex-direction: column; height: 100vh; overflow: hidden; } /* NAVBAR */ .navbar { background: var(--bg-white); height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 30px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); z-index: 1000; } .nav-brand { font-size: 20px; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 10px; } .nav-menu { display: flex; gap: 10px; } .nav-btn { border: none; background: transparent; padding: 8px 18px; font-size: 14px; font-weight: 600; color: var(--text-muted); border-radius: var(--radius-pill); cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 8px; } .nav-btn:hover { background: var(--primary-light); color: var(--primary); } .nav-btn.active { background: var(--primary); color: white; } /* VIEW CONTROLLER */ main { flex: 1; overflow-y: auto; position: relative; } .view-hidden { display: none !important; } .view-active { display: block; } /* VIEW 1: MAP INPUT */ #view-input #map { width: 100%; height: 100%; z-index: 1; } .floating-info { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); background: rgba(255, 255, 255, 0.97); padding: 10px 20px; border-radius: var(--radius-pill); box-shadow: var(--shadow-md); font-size: 13px; font-weight: 500; z-index: 999; pointer-events: none; display: flex; align-items: center; gap: 12px; color: var(--text-main); white-space: nowrap; } .floating-info i { color: var(--primary); } .btn-exif { background: var(--primary); color: white; border: none; padding: 7px 14px; font-size: 12px; border-radius: var(--radius-pill); cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 6px; box-shadow: 0 2px 8px rgba(234, 88, 12, 0.3); transition: background 0.2s; } .btn-exif:hover { background: var(--primary-hover); } .floating-legend { position: absolute; bottom: 80px; right: 20px; background: white; padding: 15px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); z-index: 999; font-size: 12px; min-width: 180px; } .floating-legend h4 { margin-bottom: 10px; color: var(--primary); font-size: 13px; font-weight: 700; } .legend-grid div { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; color: var(--text-muted);} .legend-grid span { display: inline-block; width: 14px; height: 14px; border-radius: 3px; } /* VIEW 2: DASHBOARD */ .dashboard-container { max-width: 1200px; margin: 0 auto; padding: 30px; } .dashboard-header { margin-bottom: 30px; } .dashboard-header h2 { font-size: 24px; color: var(--text-main); margin-bottom: 5px; } .dashboard-header p { color: var(--text-muted); font-size: 14px; } .stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; } .stat-card { background: var(--bg-white); padding: 20px 25px; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--border); } .stat-card--jalan { border-left: 4px solid var(--primary); } .stat-card--parsil { border-left: 4px solid var(--secondary); } .stat-card--titik { border-left: 4px solid var(--tertiary); } .stat-info h3 { font-size: 14px; color: var(--text-muted); font-weight: 500; margin-bottom: 5px; } .stat-info h2 { font-size: 32px; color: var(--text-main); } .stat-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; } .content-row { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; } /* Table Area */ .table-card { background: var(--bg-white); border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); border: 1px solid var(--border); overflow: hidden; } .table-header { padding: 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; } .table-tabs { display: flex; gap: 10px; } .tab-btn { padding: 7px 14px; border: 1.5px solid var(--border); background: white; border-radius: var(--radius-pill); font-size: 13px; cursor: pointer; font-weight: 500; color: var(--text-muted); transition: all 0.2s; display: flex; align-items: center; gap: 6px; } .tab-btn:hover { border-color: var(--primary); color: var(--primary); } .tab-btn.active { background: var(--primary); color: white; border-color: var(--primary); } .search-box { position: relative; } .search-box i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 13px; } .search-box input { padding: 8px 12px 8px 32px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; width: 250px; outline: none; transition: border-color 0.2s; } .search-box input:focus { border-color: var(--secondary); box-shadow: 0 0 0 3px var(--secondary-light); } .table-wrapper { overflow-x: auto; } table { width: 100%; border-collapse: collapse; } th { background: #f9fafb; text-align: left; padding: 12px 20px; font-size: 13px; font-weight: 600; color: var(--text-muted); border-bottom: 1px solid var(--border); } td { padding: 15px 20px; font-size: 14px; border-bottom: 1px solid var(--border); color: var(--text-main); cursor: pointer; } tr:hover td { background-color: #FFF7ED; } .status-badge { padding: 4px 10px; border-radius: 50px; font-size: 12px; font-weight: 600; display: inline-block; } .btn-sm-del { background: #fee2e2; color: #ef4444; border: none; padding: 6px 12px; border-radius: 6px; font-size: 12px; cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 5px; } .btn-sm-del:hover { background: #fecaca; } /* Minimap Card */ .minimap-card { background: var(--bg-white); border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); border: 1px solid var(--border); overflow: hidden; position: sticky; top: 20px; } .minimap-header { padding: 15px 20px; font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--border); background: #f9fafb; color: var(--primary); } #minimap { height: 300px; width: 100%; } .minimap-footer { padding: 12px; font-size: 12px; color: var(--text-muted); text-align: center; } /* Modals */ .modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.4); align-items: center; justify-content: center; } .modal-content { background: var(--bg-white); border-radius: 12px; width: 420px; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); border: 1px solid var(--border); overflow: hidden; } .modal-header { padding: 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; } .modal-header h3 { font-size: 18px; } .close-btn { background: transparent; border: none; font-size: 20px; color: var(--text-muted); cursor: pointer; } .modal-body { padding: 20px; } .form-group { margin-bottom: 18px; } .form-group label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; } .form-group input, .form-group select { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; } .form-group input:focus, .form-group select:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px var(--secondary-light); } .form-group input[readonly] { background: #f9fafb; color: var(--text-muted); } .text-muted { font-size: 12px; color: var(--text-muted); margin-top: 4px; display: block; } .form-actions { margin-top: 25px; display: flex; gap: 10px; } .btn-primary { width: 100%; background: var(--primary); color: white; border: none; padding: 12px; border-radius: var(--radius-pill); cursor: pointer; font-weight: 600; font-size: 14px; transition: background 0.2s; } .btn-primary:hover { background: var(--primary-hover); } .btn-danger { background: transparent; color: #ef4444; border: 1.5px solid #ef4444; padding: 12px; border-radius: var(--radius-pill); cursor: pointer; font-weight: 600; font-size: 14px; transition: all 0.2s; } .btn-danger:hover { background: #fef2f2; } /* Leaflet Draw Toolbar — LocalGuide overrides */ .leaflet-draw-toolbar a:hover, .leaflet-draw-edit-toolbar a:hover { background-color: var(--primary-light) !important; border-color: var(--primary) !important; } .leaflet-bar a:hover { color: var(--primary); border-color: var(--primary); } .leaflet-draw-section .leaflet-draw-toolbar { border-radius: var(--radius); overflow: hidden; }