294 lines
5.2 KiB
CSS
294 lines
5.2 KiB
CSS
:root {
|
|
--bg-dark: #0f1117;
|
|
--border: #2a3248;
|
|
--accent-green: #10b981;
|
|
--accent-orange: #f97316;
|
|
--accent-blue: #3b82f6;
|
|
--accent-yellow: #f59e0b;
|
|
--accent-red: #ef4444;
|
|
--text-primary: #f1f5f9;
|
|
--text-secondary: #94a3b8;
|
|
--text-muted: #64748b;
|
|
--radius-sm: 6px;
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Inter', system-ui, sans-serif;
|
|
background: var(--bg-dark);
|
|
color: var(--text-primary);
|
|
height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
#header-bar {
|
|
background: linear-gradient(135deg, #161b27 0%, #0f1117 100%);
|
|
border-bottom: 1px solid var(--border);
|
|
padding: 14px 20px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
z-index: 1000;
|
|
}
|
|
|
|
#header-bar h1 {
|
|
font-size: 18px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
#header-bar p {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
margin-top: 2px;
|
|
}
|
|
|
|
#stats-bar {
|
|
display: flex;
|
|
gap: 12px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.stat-badge {
|
|
padding: 6px 12px;
|
|
border-radius: 20px;
|
|
font-weight: 600;
|
|
border: 1px solid var(--border);
|
|
background: rgba(255, 255, 255, 0.04);
|
|
}
|
|
|
|
.stat-badge.green {
|
|
color: var(--accent-green);
|
|
border-color: rgba(16, 185, 129, 0.35);
|
|
}
|
|
|
|
.stat-badge.orange {
|
|
color: var(--accent-orange);
|
|
border-color: rgba(249, 115, 22, 0.35);
|
|
}
|
|
|
|
#map {
|
|
flex: 1;
|
|
width: 100%;
|
|
}
|
|
|
|
.leaflet-control-layers {
|
|
border-radius: 8px !important;
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.leaflet-control-layers-expanded {
|
|
padding: 10px 12px !important;
|
|
}
|
|
|
|
.gis-popup {
|
|
min-width: 220px;
|
|
font-family: 'Inter', system-ui, sans-serif;
|
|
}
|
|
|
|
.popup-title {
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
margin-bottom: 10px;
|
|
padding-bottom: 8px;
|
|
border-bottom: 2px solid var(--border);
|
|
}
|
|
|
|
.info-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
margin-bottom: 6px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.info-label {
|
|
color: var(--text-muted);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.info-value {
|
|
text-align: right;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.status-badge {
|
|
display: inline-block;
|
|
padding: 2px 8px;
|
|
border-radius: 4px;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.status-24jam {
|
|
background: rgba(16, 185, 129, 0.15);
|
|
color: #10b981;
|
|
}
|
|
|
|
.status-tidak24jam {
|
|
background: rgba(249, 115, 22, 0.15);
|
|
color: #f97316;
|
|
}
|
|
|
|
#toast {
|
|
position: fixed;
|
|
bottom: 24px;
|
|
left: 50%;
|
|
transform: translateX(-50%) translateY(80px);
|
|
background: #1e2538;
|
|
color: var(--text-primary);
|
|
padding: 10px 20px;
|
|
border-radius: 8px;
|
|
border: 1px solid var(--border);
|
|
font-size: 13px;
|
|
z-index: 9999;
|
|
opacity: 0;
|
|
transition: all 0.3s ease;
|
|
pointer-events: none;
|
|
}
|
|
|
|
#toast.show {
|
|
opacity: 1;
|
|
transform: translateX(-50%) translateY(0);
|
|
}
|
|
|
|
#toast.error {
|
|
border-color: rgba(239, 68, 68, 0.5);
|
|
color: #fca5a5;
|
|
}
|
|
|
|
#toast.success {
|
|
border-color: rgba(16, 185, 129, 0.5);
|
|
color: #6ee7b7;
|
|
}
|
|
|
|
#toast.info {
|
|
border-color: rgba(59, 130, 246, 0.5);
|
|
color: #93c5fd;
|
|
}
|
|
|
|
.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-green), #059669);
|
|
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);
|
|
}
|
|
|
|
.fab-btn.active {
|
|
background: linear-gradient(135deg, var(--accent-orange), #ea580c);
|
|
box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.3);
|
|
}
|
|
|
|
.popup-form label {
|
|
display: block;
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.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: inherit;
|
|
outline: none;
|
|
}
|
|
|
|
.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: inherit;
|
|
cursor: pointer;
|
|
transition: opacity 0.2s;
|
|
pointer-events: auto;
|
|
position: relative;
|
|
z-index: 10;
|
|
}
|
|
|
|
.popup-btn:hover {
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.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: #334155;
|
|
color: #fff;
|
|
}
|
|
|
|
.leaflet-popup-content-wrapper {
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.leaflet-popup-content {
|
|
margin: 12px 14px;
|
|
}
|