355 lines
8.8 KiB
CSS
355 lines
8.8 KiB
CSS
/* ============================================================
|
|
WebGIS SPBU — Style (disesuaikan dengan tema Manajemen Jalan & Parsil)
|
|
============================================================ */
|
|
|
|
: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;
|
|
--accent-orange: #f97316;
|
|
--text-primary: #f1f5f9;
|
|
--text-secondary:#94a3b8;
|
|
--text-muted: #4b5563;
|
|
--radius-sm: 6px;
|
|
--radius-md: 10px;
|
|
--shadow: 0 4px 24px rgba(0,0,0,.4);
|
|
}
|
|
|
|
* { 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;
|
|
}
|
|
|
|
/* ── Header ────────────────────────────────────────── */
|
|
#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;
|
|
}
|
|
|
|
#header-bar h1 {
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
color: #fff;
|
|
margin: 0;
|
|
}
|
|
|
|
#header-bar p {
|
|
font-size: 11px;
|
|
color: var(--text-secondary);
|
|
margin-top: 3px;
|
|
}
|
|
|
|
/* ── Stats Badge ───────────────────────────────────── */
|
|
#stats-bar {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: center;
|
|
}
|
|
|
|
.stat-badge {
|
|
padding: 5px 12px;
|
|
border-radius: 20px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
border: 1px solid var(--border);
|
|
background: rgba(255,255,255,0.04);
|
|
letter-spacing: .3px;
|
|
}
|
|
|
|
.stat-badge.green {
|
|
color: var(--accent-green);
|
|
border-color: rgba(16,185,129,0.35);
|
|
background: rgba(16,185,129,0.07);
|
|
}
|
|
|
|
.stat-badge.orange {
|
|
color: var(--accent-orange);
|
|
border-color: rgba(249,115,22,0.35);
|
|
background: rgba(249,115,22,0.07);
|
|
}
|
|
|
|
/* ── Map ───────────────────────────────────────────── */
|
|
#map {
|
|
flex: 1;
|
|
width: 100%;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
/* ── FAB ───────────────────────────────────────────── */
|
|
.fab-container {
|
|
position: fixed;
|
|
bottom: 30px;
|
|
right: 30px;
|
|
z-index: 9999;
|
|
}
|
|
|
|
.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,.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-btn.active {
|
|
background: linear-gradient(135deg, var(--accent-red), #dc2626);
|
|
box-shadow: 0 0 0 4px rgba(239,68,68,.3);
|
|
}
|
|
|
|
/* ── Toast Notification ────────────────────────────── */
|
|
#toast {
|
|
position: fixed;
|
|
bottom: 30px;
|
|
right: 30px;
|
|
z-index: 10000;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.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: 300px;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.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); }
|
|
}
|
|
|
|
/* ── Leaflet Popup Dark Theme ──────────────────────── */
|
|
.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;
|
|
}
|
|
|
|
/* ── Leaflet Layer Control Dark ────────────────────── */
|
|
.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;
|
|
box-shadow: var(--shadow) !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;
|
|
}
|
|
|
|
/* ── GIS Popup Content ─────────────────────────────── */
|
|
.gis-popup {
|
|
padding: 16px;
|
|
min-width: 240px;
|
|
max-width: 300px;
|
|
font-family: 'Inter', sans-serif;
|
|
}
|
|
|
|
.popup-title {
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
margin-bottom: 12px;
|
|
padding-bottom: 8px;
|
|
border-bottom: 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-of-type {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.info-label { color: var(--text-secondary); }
|
|
.info-value { color: var(--text-primary); font-weight: 600; }
|
|
|
|
/* ── Status Badges (SPBU specific) ────────────────── */
|
|
.status-badge {
|
|
display: inline-block;
|
|
padding: 2px 8px;
|
|
border-radius: 4px;
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
letter-spacing: .4px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.status-24jam {
|
|
background: rgba(16,185,129,.15);
|
|
color: #10b981;
|
|
border: 1px solid rgba(16,185,129,.3);
|
|
}
|
|
|
|
.status-tidak24jam {
|
|
background: rgba(249,115,22,.15);
|
|
color: #f97316;
|
|
border: 1px solid rgba(249,115,22,.3);
|
|
}
|
|
|
|
/* ── Popup Form ────────────────────────────────────── */
|
|
.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 Buttons ─────────────────────────────────── */
|
|
.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;
|
|
position: relative;
|
|
z-index: 10;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.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);
|
|
}
|
|
|
|
/* ── Scrollbar ─────────────────────────────────────── */
|
|
::-webkit-scrollbar { width: 4px; }
|
|
::-webkit-scrollbar-track { background: transparent; }
|
|
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
|