822 lines
20 KiB
CSS
822 lines
20 KiB
CSS
|
|
:root {
|
|
--bg-dark: #0f1117;
|
|
--bg-sidebar: #161b27;
|
|
--bg-card: #1e2538;
|
|
--bg-card-hover: #252d42;
|
|
--border: #2a3248;
|
|
--accent-blue: #3b82f6;
|
|
--accent-green: #10b981;
|
|
--accent-yellow: #f59e0b;
|
|
--accent-red: #ef4444;
|
|
--text-primary: #f1f5f9;
|
|
--text-secondary: #94a3b8;
|
|
--text-muted: #4b5563;
|
|
--radius-sm: 6px;
|
|
--radius-md: 10px;
|
|
--shadow: 0 4px 24px rgba(0, 0, 0, .4);
|
|
--jalan: #f97316;
|
|
--parsil: #8b5cf6;
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Inter', sans-serif;
|
|
background: var(--bg-dark);
|
|
color: var(--text-primary);
|
|
height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
#app-container {
|
|
display: flex;
|
|
flex: 1;
|
|
overflow: hidden;
|
|
}
|
|
|
|
#header-bar {
|
|
background: linear-gradient(135deg, #161b27 0%, #0f1117 100%);
|
|
border-bottom: 1px solid var(--border);
|
|
padding: 12px 20px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
z-index: 1000;
|
|
}
|
|
|
|
/* ── Auth / User Badge ── */
|
|
.user-badge {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.user-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-end;
|
|
gap: 1px;
|
|
}
|
|
|
|
.user-name {
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.role-badge {
|
|
font-size: 9px;
|
|
font-weight: 700;
|
|
padding: 2px 8px;
|
|
border-radius: 20px;
|
|
letter-spacing: .5px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.role-badge-admin {
|
|
background: rgba(59, 130, 246, .2);
|
|
color: #60a5fa;
|
|
border: 1px solid rgba(59, 130, 246, .4);
|
|
}
|
|
|
|
.role-badge-pengurus {
|
|
background: rgba(139, 92, 246, .2);
|
|
color: #a78bfa;
|
|
border: 1px solid rgba(139, 92, 246, .4);
|
|
}
|
|
|
|
.role-badge-walikota {
|
|
background: rgba(249, 115, 22, .2);
|
|
color: #fb923c;
|
|
border: 1px solid rgba(249, 115, 22, .4);
|
|
}
|
|
|
|
.btn-login {
|
|
padding: 6px 16px;
|
|
background: linear-gradient(135deg, var(--accent-blue), #2563eb);
|
|
border: none;
|
|
border-radius: 6px;
|
|
color: #fff;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
font-family: 'Inter', sans-serif;
|
|
cursor: pointer;
|
|
transition: all .2s;
|
|
text-decoration: none;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.btn-login:hover {
|
|
opacity: .9;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.btn-lapor-header {
|
|
padding: 6px 14px;
|
|
background: rgba(239, 68, 68, .15);
|
|
border: 1px solid rgba(239, 68, 68, .35);
|
|
border-radius: 6px;
|
|
color: #f87171;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
font-family: 'Inter', sans-serif;
|
|
cursor: pointer;
|
|
transition: all .2s;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.btn-lapor-header:hover {
|
|
background: rgba(239, 68, 68, .25);
|
|
}
|
|
|
|
.btn-export {
|
|
width: 100%;
|
|
padding: 8px 12px;
|
|
background: rgba(59, 130, 246, .12);
|
|
border: 1px solid rgba(59, 130, 246, .3);
|
|
border-radius: 6px;
|
|
color: #60a5fa;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
font-family: 'Inter', sans-serif;
|
|
cursor: pointer;
|
|
transition: all .2s;
|
|
margin: 0 14px 10px;
|
|
display: none;
|
|
}
|
|
|
|
.btn-export:hover {
|
|
background: rgba(59, 130, 246, .22);
|
|
}
|
|
|
|
.btn-logout {
|
|
padding: 6px 14px;
|
|
background: rgba(239, 68, 68, .12);
|
|
border: 1px solid rgba(239, 68, 68, .3);
|
|
border-radius: 6px;
|
|
color: #f87171;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
font-family: 'Inter', sans-serif;
|
|
cursor: pointer;
|
|
transition: all .2s;
|
|
}
|
|
|
|
.btn-logout:hover {
|
|
background: rgba(239, 68, 68, .22);
|
|
border-color: rgba(239, 68, 68, .5);
|
|
}
|
|
|
|
/* ── Role-restricted element hiding ── */
|
|
.hide-for-role {
|
|
display: none !important;
|
|
}
|
|
|
|
.header-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.header-title h1 {
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
color: #fff;
|
|
margin: 0;
|
|
}
|
|
|
|
.status-indicator {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
color: var(--accent-green);
|
|
}
|
|
|
|
.pulse-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
background-color: var(--accent-green);
|
|
border-radius: 50%;
|
|
box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
|
|
animation: pulse 2s infinite;
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0% {
|
|
transform: scale(0.95);
|
|
box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
|
|
}
|
|
|
|
70% {
|
|
transform: scale(1);
|
|
box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
|
|
}
|
|
|
|
100% {
|
|
transform: scale(0.95);
|
|
box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
|
|
}
|
|
}
|
|
|
|
#bottom-bar {
|
|
background: var(--bg-sidebar);
|
|
border-top: 1px solid var(--border);
|
|
padding: 8px 20px;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
align-items: center;
|
|
gap: 15px;
|
|
font-family: monospace;
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
z-index: 1000;
|
|
}
|
|
|
|
.fab-container {
|
|
position: fixed;
|
|
bottom: 50px;
|
|
right: 30px;
|
|
z-index: 9999;
|
|
display: flex;
|
|
flex-direction: column-reverse;
|
|
align-items: flex-end;
|
|
gap: 10px;
|
|
}
|
|
|
|
.fab-btn {
|
|
width: 56px;
|
|
height: 56px;
|
|
border-radius: 50%;
|
|
background: linear-gradient(135deg, var(--accent-blue), #2563eb);
|
|
color: white;
|
|
border: none;
|
|
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
|
|
font-size: 24px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.fab-btn:hover {
|
|
transform: scale(1.05);
|
|
background: linear-gradient(135deg, #60a5fa, var(--accent-blue));
|
|
}
|
|
|
|
.fab-menu {
|
|
display: none;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
align-items: flex-end;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.fab-container:hover .fab-menu,
|
|
.fab-menu.active {
|
|
display: flex;
|
|
}
|
|
|
|
.fab-item {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
color: var(--text-primary);
|
|
padding: 10px 16px;
|
|
border-radius: 20px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
|
|
transition: all 0.2s;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.fab-item:hover {
|
|
background: var(--bg-card-hover);
|
|
border-color: var(--accent-blue);
|
|
transform: translateX(-5px);
|
|
}
|
|
|
|
#sidebar {
|
|
width: 320px;
|
|
min-width: 320px;
|
|
background: var(--bg-sidebar);
|
|
border-right: 1px solid var(--border);
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
z-index: 999;
|
|
}
|
|
|
|
#map {
|
|
flex: 1;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.sidebar-header {
|
|
padding: 20px 18px 16px;
|
|
border-bottom: 1px solid var(--border);
|
|
background: linear-gradient(135deg, #1e2a45 0%, #161b27 100%);
|
|
}
|
|
|
|
.sidebar-header h1 {
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
letter-spacing: .3px;
|
|
}
|
|
|
|
.sidebar-header p {
|
|
font-size: 11px;
|
|
color: var(--text-secondary);
|
|
margin-top: 3px;
|
|
}
|
|
|
|
.sidebar-body {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
padding: 14px 14px 6px;
|
|
}
|
|
|
|
.btn-add {
|
|
display: none;
|
|
/* Disembunyikan karena diganti FAB */
|
|
}
|
|
|
|
.item-list {
|
|
padding: 0 10px 10px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.item-card {
|
|
background: var(--bg-card);
|
|
border-radius: var(--radius-sm);
|
|
border: 1px solid var(--border);
|
|
padding: 10px 12px;
|
|
cursor: pointer;
|
|
transition: all .18s;
|
|
position: relative;
|
|
}
|
|
|
|
.item-card:hover {
|
|
background: var(--bg-card-hover);
|
|
border-color: var(--accent-blue);
|
|
transform: translateX(2px);
|
|
}
|
|
|
|
.item-card-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
gap: 6px;
|
|
}
|
|
|
|
.item-card-name {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
flex: 1;
|
|
}
|
|
|
|
.badge {
|
|
font-size: 9px;
|
|
font-weight: 700;
|
|
padding: 2px 7px;
|
|
border-radius: 20px;
|
|
text-transform: uppercase;
|
|
letter-spacing: .5px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
|
|
|
|
.item-card-info {
|
|
font-size: 10px;
|
|
color: var(--text-secondary);
|
|
margin-top: 5px;
|
|
}
|
|
|
|
.item-card-actions {
|
|
display: flex;
|
|
gap: 5px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.btn-sm {
|
|
flex: 1;
|
|
padding: 5px;
|
|
border: none;
|
|
border-radius: 4px;
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
font-family: 'Inter', sans-serif;
|
|
transition: opacity .2s;
|
|
}
|
|
|
|
.btn-sm:hover {
|
|
opacity: .8;
|
|
}
|
|
|
|
.btn-zoom {
|
|
background: rgba(59, 130, 246, .2);
|
|
color: #60a5fa;
|
|
border: 1px solid rgba(59, 130, 246, .3);
|
|
}
|
|
|
|
.btn-edit {
|
|
background: rgba(245, 158, 11, .2);
|
|
color: #fbbf24;
|
|
border: 1px solid rgba(245, 158, 11, .3);
|
|
}
|
|
|
|
.btn-delete {
|
|
background: rgba(239, 68, 68, .2);
|
|
color: #f87171;
|
|
border: 1px solid rgba(239, 68, 68, .3);
|
|
}
|
|
|
|
.legend-box {
|
|
padding: 12px 14px;
|
|
border-top: 1px solid var(--border);
|
|
background: var(--bg-dark);
|
|
}
|
|
|
|
.legend-title {
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.legend-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-bottom: 5px;
|
|
font-size: 11px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.layer-info-box {
|
|
margin: 10px 14px;
|
|
padding: 12px;
|
|
background: rgba(59, 130, 246, .08);
|
|
border: 1px solid rgba(59, 130, 246, .25);
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
.layer-info-box p {
|
|
font-size: 11px;
|
|
color: var(--text-secondary);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.layer-info-box strong {
|
|
color: var(--accent-blue);
|
|
}
|
|
|
|
.divider {
|
|
height: 1px;
|
|
background: var(--border);
|
|
margin: 8px 0;
|
|
}
|
|
|
|
.count-row {
|
|
display: flex;
|
|
gap: 8px;
|
|
padding: 0 14px 10px;
|
|
}
|
|
|
|
.count-card {
|
|
flex: 1;
|
|
background: var(--bg-card);
|
|
border-radius: var(--radius-sm);
|
|
padding: 10px;
|
|
text-align: center;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.count-card .num {
|
|
font-size: 22px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.count-card .lbl {
|
|
font-size: 10px;
|
|
color: var(--text-secondary);
|
|
margin-top: 2px;
|
|
}
|
|
|
|
|
|
|
|
#map {
|
|
flex: 1;
|
|
height: 100vh;
|
|
}
|
|
|
|
.leaflet-popup-content-wrapper {
|
|
background: var(--bg-card) !important;
|
|
border: 1px solid var(--border) !important;
|
|
border-radius: var(--radius-md) !important;
|
|
box-shadow: var(--shadow) !important;
|
|
color: var(--text-primary) !important;
|
|
padding: 0 !important;
|
|
}
|
|
|
|
.leaflet-popup-tip {
|
|
background: var(--bg-card) !important;
|
|
}
|
|
|
|
.leaflet-popup-close-button {
|
|
color: var(--text-secondary) !important;
|
|
top: 8px !important;
|
|
right: 8px !important;
|
|
}
|
|
|
|
.leaflet-popup-content {
|
|
margin: 0 !important;
|
|
}
|
|
|
|
.gis-popup {
|
|
padding: 16px;
|
|
min-width: 240px;
|
|
max-width: 300px;
|
|
}
|
|
|
|
.popup-title {
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
margin-bottom: 12px;
|
|
padding-bottom: 8px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.popup-form label {
|
|
display: block;
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
text-transform: uppercase;
|
|
letter-spacing: .5px;
|
|
margin-bottom: 4px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.popup-form label:first-of-type {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.popup-form input,
|
|
.popup-form select {
|
|
width: 100%;
|
|
padding: 8px 10px;
|
|
background: var(--bg-dark);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
color: var(--text-primary);
|
|
font-size: 12px;
|
|
font-family: 'Inter', sans-serif;
|
|
outline: none;
|
|
transition: border-color .2s;
|
|
}
|
|
|
|
.popup-form input:focus,
|
|
.popup-form select:focus {
|
|
border-color: var(--accent-blue);
|
|
}
|
|
|
|
.popup-actions {
|
|
display: flex;
|
|
gap: 6px;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.popup-btn {
|
|
flex: 1;
|
|
padding: 8px;
|
|
border: none;
|
|
border-radius: var(--radius-sm);
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
font-family: 'Inter', sans-serif;
|
|
cursor: pointer;
|
|
transition: all .2s;
|
|
}
|
|
|
|
.popup-btn:hover {
|
|
opacity: .85;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.popup-btn-save {
|
|
background: var(--accent-green);
|
|
color: #fff;
|
|
}
|
|
|
|
.popup-btn-edit {
|
|
background: var(--accent-yellow);
|
|
color: #000;
|
|
}
|
|
|
|
.popup-btn-delete {
|
|
background: var(--accent-red);
|
|
color: #fff;
|
|
}
|
|
|
|
.popup-btn-cancel {
|
|
background: var(--bg-dark);
|
|
color: var(--text-secondary);
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.info-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 5px 0;
|
|
border-bottom: 1px solid var(--border);
|
|
font-size: 11px;
|
|
}
|
|
|
|
.info-row:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.info-label {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.info-value {
|
|
color: var(--text-primary);
|
|
font-weight: 600;
|
|
}
|
|
|
|
#toast {
|
|
position: fixed;
|
|
bottom: 30px;
|
|
right: 30px;
|
|
z-index: 10000;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.toast-item {
|
|
padding: 10px 18px;
|
|
border-radius: var(--radius-sm);
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
color: #fff;
|
|
box-shadow: var(--shadow);
|
|
animation: slideIn .3s ease;
|
|
max-width: 280px;
|
|
}
|
|
|
|
.toast-success {
|
|
background: #065f46;
|
|
border: 1px solid #10b981;
|
|
}
|
|
|
|
.toast-error {
|
|
background: #7f1d1d;
|
|
border: 1px solid #ef4444;
|
|
}
|
|
|
|
.toast-info {
|
|
background: #1e3a5f;
|
|
border: 1px solid #3b82f6;
|
|
}
|
|
|
|
@keyframes slideIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateX(30px)
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
transform: translateX(0)
|
|
}
|
|
}
|
|
|
|
::-webkit-scrollbar {
|
|
width: 4px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--border);
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.loading-text {
|
|
text-align: center;
|
|
padding: 20px;
|
|
color: var(--text-muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
/* Custom Leaflet Layer Control dark style */
|
|
.leaflet-control-layers {
|
|
background: var(--bg-card) !important;
|
|
border: 1px solid var(--border) !important;
|
|
border-radius: var(--radius-md) !important;
|
|
color: var(--text-primary) !important;
|
|
}
|
|
|
|
.leaflet-control-layers label {
|
|
color: var(--text-primary) !important;
|
|
font-size: 12px !important;
|
|
font-family: 'Inter', sans-serif !important;
|
|
}
|
|
|
|
.leaflet-control-layers-separator {
|
|
border-top-color: var(--border) !important;
|
|
}
|
|
|
|
.leaflet-control-layers-expanded {
|
|
padding: 10px 14px !important;
|
|
}
|
|
|
|
.leaflet-control-layers-toggle {
|
|
background-color: var(--bg-card) !important;
|
|
border-radius: var(--radius-sm) !important;
|
|
}
|
|
|
|
.btn-add-kemiskinan {
|
|
background: linear-gradient(135deg, #f97316, #c2410c);
|
|
color: #fff;
|
|
}
|
|
|
|
.btn-add-masjid {
|
|
background: linear-gradient(135deg, #8b5cf6, #5b21b6);
|
|
color: #fff;
|
|
}
|
|
|
|
.radius-wrap {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
margin-top: 6px;
|
|
}
|
|
|
|
.radius-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
text-transform: uppercase;
|
|
letter-spacing: .5px;
|
|
}
|
|
|
|
.radius-val {
|
|
color: var(--parsil);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.radius-slider {
|
|
width: 100%;
|
|
accent-color: var(--parsil);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.radius-ticks {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-size: 9px;
|
|
color: var(--text-muted);
|
|
}
|
|
|