464 lines
22 KiB
CSS
464 lines
22 KiB
CSS
/* ================================================================
|
|
WebGIS Sebaran Penduduk Miskin — Dashboard CSS
|
|
================================================================ */
|
|
|
|
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
|
|
|
|
/* ── Reset & Variables ──────────────────────────────────────── */
|
|
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
|
|
|
:root {
|
|
--bg: #0f1117;
|
|
--bg2: #161b27;
|
|
--bg3: #1e2538;
|
|
--sidebar-w: 340px;
|
|
--border: rgba(255,255,255,0.07);
|
|
--text: #e8ecf4;
|
|
--text2: #8890b0;
|
|
--text3: #565e80;
|
|
--accent: #5b7fff;
|
|
--accent2: #7c5bff;
|
|
--green: #22c55e;
|
|
--red: #ef4444;
|
|
--yellow: #f59e0b;
|
|
--glass: rgba(255,255,255,0.04);
|
|
--glass-hover: rgba(255,255,255,0.07);
|
|
--radius: 12px;
|
|
--shadow: 0 8px 32px rgba(0,0,0,0.4);
|
|
--transition: 0.2s cubic-bezier(0.4,0,0.2,1);
|
|
}
|
|
|
|
html, body { height: 100%; overflow: hidden; font-family: 'Plus Jakarta Sans', sans-serif; background: var(--bg); color: var(--text); }
|
|
|
|
/* ── Layout ─────────────────────────────────────────────────── */
|
|
.app-layout { display: flex; height: 100vh; overflow: hidden; }
|
|
|
|
/* ── SIDEBAR ─────────────────────────────────────────────────── */
|
|
.sidebar {
|
|
width: var(--sidebar-w);
|
|
min-width: var(--sidebar-w);
|
|
background: var(--bg2);
|
|
border-right: 1px solid var(--border);
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
z-index: 10;
|
|
}
|
|
|
|
.sidebar-header {
|
|
padding: 18px 20px 14px;
|
|
border-bottom: 1px solid var(--border);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.sidebar-brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.brand-icon {
|
|
width: 38px; height: 38px;
|
|
background: linear-gradient(135deg, var(--accent), var(--accent2));
|
|
border-radius: 10px;
|
|
display: flex; align-items: center; justify-content: center;
|
|
font-size: 18px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.brand-title { font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--text); }
|
|
.brand-sub { font-size: 10px; color: var(--text2); font-weight: 500; }
|
|
|
|
/* Search box */
|
|
.search-box {
|
|
position: relative;
|
|
margin-bottom: 8px;
|
|
}
|
|
.search-box input {
|
|
width: 100%; padding: 8px 12px 8px 34px;
|
|
background: var(--bg3); border: 1px solid var(--border);
|
|
border-radius: 8px; color: var(--text);
|
|
font-size: 12px; font-family: inherit;
|
|
transition: border-color var(--transition);
|
|
outline: none;
|
|
}
|
|
.search-box input:focus { border-color: var(--accent); }
|
|
.search-box input::placeholder { color: var(--text3); }
|
|
.search-box .search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 13px; pointer-events: none; }
|
|
|
|
/* Filter row */
|
|
.filter-row { display: flex; gap: 6px; flex-wrap: wrap; }
|
|
.filter-select {
|
|
flex: 1; min-width: 80px;
|
|
padding: 6px 8px; background: var(--bg3);
|
|
border: 1px solid var(--border); border-radius: 7px;
|
|
color: var(--text); font-size: 11px; font-family: inherit;
|
|
outline: none; cursor: pointer;
|
|
}
|
|
.filter-select:focus { border-color: var(--accent); }
|
|
|
|
/* Stats */
|
|
.stats-grid {
|
|
display: grid; grid-template-columns: 1fr 1fr;
|
|
gap: 8px; padding: 14px 20px;
|
|
border-bottom: 1px solid var(--border); flex-shrink: 0;
|
|
}
|
|
.stat-card {
|
|
background: var(--bg3); border-radius: 10px;
|
|
padding: 10px 12px; text-align: center;
|
|
border: 1px solid var(--border);
|
|
transition: transform var(--transition);
|
|
}
|
|
.stat-card:hover { transform: translateY(-2px); }
|
|
.stat-card.full { grid-column: 1/-1; }
|
|
.stat-num { font-size: 22px; font-weight: 800; line-height: 1; }
|
|
.stat-label{ font-size: 10px; color: var(--text2); margin-top: 3px; font-weight: 500; }
|
|
.stat-card.blue .stat-num { color: var(--accent); }
|
|
.stat-card.green .stat-num { color: var(--green); }
|
|
.stat-card.red .stat-num { color: var(--red); }
|
|
.stat-card.yellow .stat-num { color: var(--yellow); }
|
|
|
|
/* Tabs */
|
|
.sidebar-tabs {
|
|
display: flex; border-bottom: 1px solid var(--border);
|
|
flex-shrink: 0;
|
|
}
|
|
.tab-btn {
|
|
flex: 1; padding: 10px;
|
|
background: none; border: none;
|
|
color: var(--text2); font-size: 12px; font-weight: 600;
|
|
cursor: pointer; font-family: inherit;
|
|
transition: all var(--transition);
|
|
border-bottom: 2px solid transparent;
|
|
display: flex; align-items: center; justify-content: center; gap: 5px;
|
|
}
|
|
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); background: var(--glass); }
|
|
.tab-btn:hover:not(.active) { color: var(--text); background: var(--glass); }
|
|
|
|
/* List container */
|
|
.sidebar-body { flex: 1; overflow-y: auto; padding: 10px 12px; scrollbar-width: thin; scrollbar-color: var(--bg3) transparent; }
|
|
.sidebar-body::-webkit-scrollbar { width: 4px; }
|
|
.sidebar-body::-webkit-scrollbar-track { background: transparent; }
|
|
.sidebar-body::-webkit-scrollbar-thumb { background: var(--bg3); border-radius: 2px; }
|
|
|
|
/* Item cards */
|
|
.item-card {
|
|
background: var(--glass); border: 1px solid var(--border);
|
|
border-radius: var(--radius); padding: 10px 12px;
|
|
margin-bottom: 7px; cursor: pointer;
|
|
transition: all var(--transition);
|
|
display: flex; align-items: flex-start; gap: 10px;
|
|
}
|
|
.item-card:hover { background: var(--glass-hover); border-color: rgba(91,127,255,0.3); transform: translateX(2px); }
|
|
.item-card.highlighted { border-color: var(--accent); background: rgba(91,127,255,0.1); }
|
|
|
|
.item-icon { font-size: 22px; flex-shrink: 0; width: 34px; text-align: center; }
|
|
.item-info { flex: 1; min-width: 0; }
|
|
.item-name { font-size: 12px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
.item-addr { font-size: 10px; color: var(--text2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.item-coord{ font-size: 9px; color: var(--text3); margin-top: 2px; font-family: 'JetBrains Mono', monospace; }
|
|
.item-meta { display: flex; gap: 5px; align-items: center; margin-top: 4px; flex-wrap: wrap; }
|
|
|
|
.item-actions { display: flex; gap: 4px; flex-shrink: 0; flex-direction: column; align-items: center; }
|
|
.btn-icon {
|
|
width: 26px; height: 26px; border: none; border-radius: 6px;
|
|
cursor: pointer; font-size: 12px; display: flex; align-items: center; justify-content: center;
|
|
transition: all var(--transition);
|
|
}
|
|
.btn-icon.edit { background: rgba(91,127,255,0.15); color: var(--accent); }
|
|
.btn-icon.delete { background: rgba(239,68,68,0.12); color: var(--red); }
|
|
.btn-icon:hover { filter: brightness(1.3); transform: scale(1.1); }
|
|
|
|
/* Radius slider in card */
|
|
.item-radius-row { display: flex; align-items: center; gap: 6px; margin-top: 5px; }
|
|
.item-radius-row input[type=range] { flex: 1; height: 3px; accent-color: var(--accent); cursor: pointer; }
|
|
.radius-val { font-size: 10px; color: var(--accent); font-weight: 700; min-width: 38px; }
|
|
|
|
/* Badge */
|
|
.badge-status {
|
|
display: inline-block; padding: 2px 7px; border-radius: 4px;
|
|
font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
|
|
}
|
|
.badge-belum { background: rgba(239,68,68,0.15); color: var(--red); }
|
|
.badge-sudah { background: rgba(34,197,94,0.15); color: var(--green); }
|
|
.badge-menunggu { background: rgba(245,158,11,0.15); color: var(--yellow); }
|
|
|
|
/* Nearest tag */
|
|
.nearest-tag { font-size: 9px; color: var(--accent); background: rgba(91,127,255,0.12); padding: 2px 6px; border-radius: 4px; }
|
|
|
|
/* Empty state */
|
|
.empty-state { text-align: center; padding: 24px 12px; color: var(--text3); font-size: 12px; }
|
|
.empty-state .empty-icon { font-size: 28px; margin-bottom: 6px; display: block; opacity: 0.5; }
|
|
|
|
/* Sidebar footer */
|
|
.sidebar-footer { padding: 12px; border-top: 1px solid var(--border); flex-shrink: 0; }
|
|
.sidebar-btn-row { display: flex; gap: 7px; }
|
|
.btn-sm-action {
|
|
flex: 1; padding: 8px; border: 1px solid var(--border); border-radius: 8px;
|
|
background: var(--glass); color: var(--text2);
|
|
font-size: 11px; font-weight: 600; font-family: inherit;
|
|
cursor: pointer; transition: all var(--transition);
|
|
display: flex; align-items: center; justify-content: center; gap: 4px;
|
|
}
|
|
.btn-sm-action:hover { background: var(--glass-hover); color: var(--text); border-color: rgba(255,255,255,0.15); }
|
|
.btn-sm-action.accent { border-color: rgba(91,127,255,0.3); color: var(--accent); background: rgba(91,127,255,0.08); }
|
|
.btn-sm-action.accent:hover { background: rgba(91,127,255,0.15); }
|
|
|
|
/* ── MAP CONTAINER ────────────────────────────────────────────── */
|
|
.map-wrap { flex: 1; position: relative; overflow: hidden; }
|
|
#map { width: 100%; height: 100%; }
|
|
#map.adding-ibadah { cursor: crosshair !important; }
|
|
#map.adding-miskin { cursor: cell !important; }
|
|
|
|
/* ── TOOLBAR (floating) ───────────────────────────────────────── */
|
|
.map-toolbar {
|
|
position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
|
|
z-index: 900; display: flex; align-items: center; gap: 6px;
|
|
background: rgba(15,17,23,0.92); backdrop-filter: blur(12px);
|
|
border: 1px solid var(--border); border-radius: 50px;
|
|
padding: 6px 12px; box-shadow: var(--shadow);
|
|
}
|
|
.toolbar-label { font-size: 11px; color: var(--text2); font-weight: 600; margin-right: 4px; }
|
|
.toggle-btn {
|
|
padding: 6px 14px; border: 1px solid var(--border); border-radius: 50px;
|
|
background: var(--glass); color: var(--text2);
|
|
font-size: 11px; font-weight: 600; font-family: inherit;
|
|
cursor: pointer; transition: all var(--transition);
|
|
white-space: nowrap;
|
|
}
|
|
.toggle-btn:hover { background: var(--glass-hover); color: var(--text); }
|
|
.toggle-btn.active-ibadah { background: rgba(91,127,255,0.2); color: var(--accent); border-color: rgba(91,127,255,0.4); }
|
|
.toggle-btn.active-miskin { background: rgba(34,197,94,0.15); color: var(--green); border-color: rgba(34,197,94,0.35); }
|
|
.toolbar-divider { width: 1px; height: 20px; background: var(--border); margin: 0 4px; }
|
|
.toolbar-icon-btn {
|
|
width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 50%;
|
|
background: var(--glass); color: var(--text2);
|
|
font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center;
|
|
transition: all var(--transition);
|
|
}
|
|
.toolbar-icon-btn:hover { background: var(--glass-hover); color: var(--text); }
|
|
|
|
/* ── MAP CONTROLS (bottom-right) ──────────────────────────────── */
|
|
.map-controls {
|
|
position: absolute; bottom: 30px; right: 14px;
|
|
z-index: 900; display: flex; flex-direction: column; gap: 8px;
|
|
}
|
|
.map-ctrl-btn {
|
|
width: 42px; height: 42px;
|
|
background: rgba(15,17,23,0.92); backdrop-filter: blur(12px);
|
|
border: 1px solid var(--border); border-radius: 10px;
|
|
color: var(--text); font-size: 16px; cursor: pointer;
|
|
display: flex; align-items: center; justify-content: center;
|
|
transition: all var(--transition); box-shadow: var(--shadow);
|
|
}
|
|
.map-ctrl-btn:hover { background: var(--bg3); border-color: var(--accent); color: var(--accent); }
|
|
.map-ctrl-btn.active { background: rgba(91,127,255,0.2); border-color: var(--accent); color: var(--accent); }
|
|
|
|
/* ── LOC BAR ─────────────────────────────────────────────────── */
|
|
.loc-bar {
|
|
position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
|
|
z-index: 900; background: rgba(15,17,23,0.9); backdrop-filter: blur(10px);
|
|
border: 1px solid var(--border); border-radius: 50px;
|
|
padding: 6px 16px; display: none; align-items: center; gap: 8px;
|
|
font-size: 11px; color: var(--text2); box-shadow: var(--shadow);
|
|
max-width: 600px; white-space: nowrap; overflow: hidden;
|
|
animation: fadeIn 0.3s ease;
|
|
}
|
|
.loc-bar strong { color: var(--text); font-size: 11px; }
|
|
@keyframes fadeIn { from { opacity:0; transform: translateX(-50%) translateY(6px); } to { opacity:1; transform: translateX(-50%) translateY(0); } }
|
|
|
|
/* ── TOAST ─────────────────────────────────────────────────────── */
|
|
#toast {
|
|
position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
|
|
background: rgba(22,27,39,0.95); backdrop-filter: blur(10px);
|
|
border-radius: 10px; padding: 12px 20px;
|
|
font-size: 13px; font-weight: 600;
|
|
z-index: 9999; box-shadow: var(--shadow);
|
|
border-left: 3px solid var(--accent);
|
|
display: none; max-width: 420px; text-align: center;
|
|
animation: toastIn 0.3s ease;
|
|
}
|
|
@keyframes toastIn { from { opacity:0; transform: translateX(-50%) translateY(10px); } to { opacity:1; transform: translateX(-50%) translateY(0); } }
|
|
|
|
/* ── MODAL ─────────────────────────────────────────────────────── */
|
|
.modal-overlay {
|
|
position: fixed; inset: 0; z-index: 2000;
|
|
background: rgba(0,0,0,0.7); backdrop-filter: blur(6px);
|
|
display: flex; align-items: center; justify-content: center;
|
|
padding: 20px;
|
|
opacity: 0; pointer-events: none;
|
|
transition: opacity 0.25s;
|
|
}
|
|
.modal-overlay.open { opacity: 1; pointer-events: all; }
|
|
|
|
.modal-card {
|
|
background: var(--bg2); border: 1px solid var(--border);
|
|
border-radius: 18px; width: 100%; max-width: 540px;
|
|
max-height: 90vh; display: flex; flex-direction: column;
|
|
box-shadow: 0 20px 60px rgba(0,0,0,0.6);
|
|
transform: scale(0.95) translateY(10px);
|
|
transition: transform 0.25s;
|
|
overflow: hidden;
|
|
}
|
|
.modal-overlay.open .modal-card { transform: scale(1) translateY(0); }
|
|
|
|
.modal-header {
|
|
padding: 16px 20px; border-bottom: 1px solid var(--border);
|
|
display: flex; align-items: center; justify-content: space-between;
|
|
flex-shrink: 0;
|
|
}
|
|
.modal-title { font-size: 15px; font-weight: 700; }
|
|
.modal-close {
|
|
width: 28px; height: 28px; border: none; border-radius: 50%;
|
|
background: var(--glass); color: var(--text2); cursor: pointer;
|
|
font-size: 14px; display: flex; align-items: center; justify-content: center;
|
|
transition: all var(--transition);
|
|
}
|
|
.modal-close:hover { background: rgba(239,68,68,0.15); color: var(--red); }
|
|
|
|
.modal-body { flex: 1; overflow-y: auto; padding: 18px 20px; scrollbar-width: thin; scrollbar-color: var(--bg3) transparent; }
|
|
.modal-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; flex-shrink: 0; }
|
|
|
|
/* Form elements */
|
|
.form-group { margin-bottom: 14px; }
|
|
.form-label { display: block; font-size: 11px; font-weight: 700; color: var(--text2); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.5px; }
|
|
.form-control {
|
|
width: 100%; padding: 9px 12px;
|
|
background: var(--bg3); border: 1px solid var(--border);
|
|
border-radius: 8px; color: var(--text);
|
|
font-size: 13px; font-family: inherit;
|
|
transition: border-color var(--transition);
|
|
outline: none;
|
|
}
|
|
.form-control:focus { border-color: var(--accent); }
|
|
.form-control::placeholder { color: var(--text3); }
|
|
select.form-control { cursor: pointer; }
|
|
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
|
|
|
|
.addr-preview {
|
|
padding: 8px 10px; background: rgba(91,127,255,0.06);
|
|
border: 1px solid rgba(91,127,255,0.15); border-radius: 7px;
|
|
font-size: 11px; color: var(--text2); margin-top: 5px; min-height: 32px;
|
|
display: flex; align-items: center; gap: 6px;
|
|
}
|
|
.addr-loading { color: var(--text3); }
|
|
|
|
/* Range slider */
|
|
.range-wrapper { display: flex; align-items: center; gap: 10px; }
|
|
.range-wrapper input[type=range] { flex: 1; accent-color: var(--accent); }
|
|
.range-val { font-weight: 700; color: var(--accent); font-size: 13px; min-width: 50px; text-align: right; }
|
|
|
|
/* Anggota keluarga dynamic rows */
|
|
.anggota-row {
|
|
background: var(--bg3); border: 1px solid var(--border);
|
|
border-radius: 8px; padding: 10px; margin-bottom: 8px;
|
|
position: relative;
|
|
}
|
|
.anggota-row-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
|
|
.anggota-num { font-size: 11px; font-weight: 700; color: var(--text2); }
|
|
.btn-remove-anggota {
|
|
width: 22px; height: 22px; border: none; border-radius: 5px;
|
|
background: rgba(239,68,68,0.12); color: var(--red);
|
|
cursor: pointer; font-size: 12px; display: flex; align-items: center; justify-content: center;
|
|
}
|
|
|
|
.section-label {
|
|
font-size: 11px; font-weight: 700; color: var(--text2);
|
|
text-transform: uppercase; letter-spacing: 0.6px;
|
|
margin: 14px 0 8px; padding-bottom: 5px; border-bottom: 1px solid var(--border);
|
|
display: flex; align-items: center; gap: 6px;
|
|
}
|
|
.section-label::before { content: ''; display: block; width: 3px; height: 13px; background: var(--accent); border-radius: 2px; }
|
|
|
|
/* ── BUTTONS ───────────────────────────────────────────────────── */
|
|
.btn {
|
|
padding: 9px 18px; border-radius: 8px;
|
|
font-size: 13px; font-weight: 600; font-family: inherit;
|
|
border: none; cursor: pointer;
|
|
transition: all var(--transition);
|
|
display: inline-flex; align-items: center; justify-content: center; gap: 6px;
|
|
}
|
|
.btn-primary { background: var(--accent); color: #fff; }
|
|
.btn-primary:hover { background: #4a6ef5; transform: translateY(-1px); }
|
|
.btn-success { background: var(--green); color: #fff; }
|
|
.btn-success:hover { filter: brightness(1.1); transform: translateY(-1px); }
|
|
.btn-danger { background: rgba(239,68,68,0.12); color: var(--red); border: 1px solid rgba(239,68,68,0.2); }
|
|
.btn-danger:hover { background: rgba(239,68,68,0.2); }
|
|
.btn-ghost { background: var(--glass); color: var(--text2); border: 1px solid var(--border); }
|
|
.btn-ghost:hover { background: var(--glass-hover); color: var(--text); }
|
|
.btn-outline-accent { background: transparent; color: var(--accent); border: 1px solid rgba(91,127,255,0.35); }
|
|
.btn-outline-accent:hover { background: rgba(91,127,255,0.1); }
|
|
|
|
/* ── POPUP (Leaflet) ────────────────────────────────────────────── */
|
|
.leaflet-popup-content-wrapper {
|
|
background: var(--bg2) !important;
|
|
border: 1px solid var(--border) !important;
|
|
border-radius: 12px !important;
|
|
box-shadow: 0 8px 32px rgba(0,0,0,0.5) !important;
|
|
color: var(--text) !important;
|
|
}
|
|
.leaflet-popup-tip { background: var(--bg2) !important; }
|
|
.leaflet-popup-content { margin: 14px 16px !important; font-family: 'Plus Jakarta Sans', sans-serif !important; font-size: 13px !important; line-height: 1.5; min-width: 200px; }
|
|
|
|
.popup-title { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
|
|
.popup-addr { font-size: 11px; color: var(--text2); margin-top: 4px; }
|
|
.popup-coord { font-size: 10px; color: var(--text3); font-family: monospace; }
|
|
.popup-divider { height: 1px; background: var(--border); margin: 8px 0; }
|
|
.popup-row { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text2); margin: 3px 0; }
|
|
.popup-row strong { color: var(--text); }
|
|
.popup-actions { display: flex; gap: 6px; margin-top: 10px; }
|
|
.popup-btn {
|
|
flex: 1; padding: 5px 10px; border-radius: 6px; border: none;
|
|
font-size: 11px; font-weight: 600; font-family: inherit; cursor: pointer;
|
|
transition: all var(--transition);
|
|
}
|
|
.popup-btn.edit { background: rgba(91,127,255,0.15); color: var(--accent); }
|
|
.popup-btn.danger { background: rgba(239,68,68,0.12); color: var(--red); }
|
|
.popup-btn:hover { filter: brightness(1.3); }
|
|
|
|
/* ── MARKER ANIMATIONS ───────────────────────────────────────────── */
|
|
@keyframes markerPulse {
|
|
0%,100% { transform: scale(1); }
|
|
50% { transform: scale(1.25); }
|
|
}
|
|
.marker-pulsing { animation: markerPulse 0.6s ease 3; }
|
|
|
|
/* ── UPLOAD PREVIEW ───────────────────────────────────────────────── */
|
|
.upload-area {
|
|
border: 2px dashed var(--border); border-radius: 10px;
|
|
padding: 16px; text-align: center; cursor: pointer;
|
|
transition: all var(--transition); position: relative;
|
|
}
|
|
.upload-area:hover, .upload-area.dragover { border-color: var(--accent); background: rgba(91,127,255,0.05); }
|
|
.upload-area input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
|
|
.upload-text { font-size: 12px; color: var(--text2); }
|
|
.upload-preview { margin-top: 8px; }
|
|
.upload-preview img { max-width: 100%; max-height: 120px; border-radius: 6px; }
|
|
|
|
/* ── Legend ───────────────────────────────────────────────────────── */
|
|
.map-legend {
|
|
position: absolute; bottom: 80px; right: 14px; z-index: 800;
|
|
background: rgba(15,17,23,0.9); backdrop-filter: blur(10px);
|
|
border: 1px solid var(--border); border-radius: 10px;
|
|
padding: 10px 14px; font-size: 11px; color: var(--text2);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
.legend-title { font-weight: 700; color: var(--text); margin-bottom: 7px; font-size: 11px; }
|
|
.legend-item { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
|
|
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
|
|
.legend-rect { width: 20px; height: 10px; border-radius: 3px; flex-shrink: 0; }
|
|
|
|
/* ── Leaflet custom zoom ─────────────────────────────────────────── */
|
|
.leaflet-control-zoom { display: none !important; }
|
|
.leaflet-control-attribution { font-size: 9px !important; background: rgba(0,0,0,0.5) !important; color: #666 !important; }
|
|
.leaflet-control-attribution a { color: #8890b0 !important; }
|
|
|
|
/* ── Responsive ──────────────────────────────────────────────────── */
|
|
@media (max-width: 768px) {
|
|
.sidebar { position: absolute; left: -100%; z-index: 500; transition: left 0.3s; width: 85vw; height: 100%; }
|
|
.sidebar.mobile-open { left: 0; }
|
|
.map-toolbar { top: 10px; padding: 5px 8px; gap: 4px; }
|
|
.toggle-btn { padding: 5px 10px; }
|
|
}
|