/* ============================ CSS CUSTOM PROPERTIES ============================ */ :root { --primary: #1a56db; --primary-dark: #1340b0; --primary-light: #dbeafe; --accent: #0ea5e9; --surface: #ffffff; --surface-2: #f8fafc; --border: #e2e8f0; --border-strong: #cbd5e1; --text-primary: #0f172a; --text-secondary: #475569; --text-muted: #94a3b8; --success: #10b981; --warning: #f59e0b; --danger: #ef4444; --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06); --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10), 0 2px 6px rgba(0, 0, 0, 0.06); --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.14), 0 4px 12px rgba(0, 0, 0, 0.08); --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 20px; --font: 'Plus Jakarta Sans', sans-serif; --font-mono: 'DM Mono', monospace; } /* ============================ BASE ============================ */ *, *::before, *::after { box-sizing: border-box; } body { margin: 0; padding: 0; font-family: var(--font); background: #0f172a; overflow: hidden; } #map { height: 100vh; width: 100%; } /* ============================ HEADER BAR (TOP) ============================ */ .webgis-header { position: absolute; top: 0; left: 0; right: 0; z-index: 1100; height: 56px; background: rgba(15, 23, 42, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, 0.07); display: flex; align-items: center; padding: 0 16px; gap: 16px; } .header-brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; flex-shrink: 0; } .brand-icon { width: 32px; height: 32px; background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: 8px; display: flex; align-items: center; justify-content: center; } .brand-icon svg { width: 18px; height: 18px; color: white; } .brand-name { font-size: 15px; font-weight: 700; color: #f1f5f9; letter-spacing: -0.3px; } .brand-subtitle { font-size: 11px; font-weight: 400; color: var(--text-muted); letter-spacing: 0.5px; text-transform: uppercase; } .header-divider { width: 1px; height: 28px; background: rgba(255, 255, 255, 0.1); flex-shrink: 0; } /* ============================ SEARCH BAR (INSIDE HEADER) ============================ */ .search-wrapper { flex: 1; max-width: 560px; position: relative; } .search-bar { display: flex; align-items: center; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 10px; height: 38px; overflow: visible; transition: all 0.2s ease; } .search-bar:focus-within { background: rgba(255, 255, 255, 0.13); border-color: rgba(59, 130, 246, 0.6); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); } /* ============================ CUSTOM SELECT DROPDOWN ============================ */ .search-category-wrap { position: relative; display: flex; align-items: center; border-right: 1px solid rgba(255, 255, 255, 0.1); padding: 0 8px 0 10px; /* Kembali ke ukuran compact awal */ height: 100%; flex-shrink: 0; background: transparent; /* Transparan agar menyatu dengan kolom pencarian */ transition: background 0.15s ease; cursor: pointer; } .search-category-wrap:hover { background: rgba(255, 255, 255, 0.05); /* Highlight tipis saat disentuh */ } .search-category-icon { color: var(--accent); /* Warna biru aslinya */ display: flex; align-items: center; margin-right: 5px; /* Jarak ikon didekatkan kembali */ flex-shrink: 0; } .search-category-icon svg { width: 14px; height: 14px; } .custom-select-trigger { color: #cbd5e1; /* Warna teks abu-abu aslinya */ font-size: 12px; /* Ukuran font aslinya */ font-weight: 500; padding: 0 20px 0 0; min-width: 80px; white-space: nowrap; user-select: none; } .category-arrow { position: absolute; right: 8px; color: #64748b; /* Warna ikon panah aslinya */ pointer-events: none; display: flex; align-items: center; } .category-arrow svg { width: 12px; height: 12px; } /* --- Kotak Dropdown Utama (Saat diklik) --- */ .custom-select-options { position: absolute; top: calc(100% + 8px); left: 0; min-width: 200px; background: #1e293b; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); z-index: 1300; display: none; flex-direction: column; padding: 8px; } .custom-select-options.show { display: flex; } .custom-option { padding: 10px 14px; font-size: 13px; color: #e2e8f0; border-radius: 6px; cursor: pointer; transition: background 0.15s, color 0.15s; } .custom-option:hover { background: rgba(59, 130, 246, 0.15); color: #ffffff; } .custom-option.selected { background: rgba(59, 130, 246, 0.25); color: #60a5fa; font-weight: 600; } /* Search icon + input */ .search-input-wrap { display: flex; align-items: center; flex: 1; padding: 0 10px; gap: 8px; } .search-icon { color: #64748b; display: flex; align-items: center; flex-shrink: 0; } .search-icon svg { width: 16px; height: 16px; } #search-input { flex: 1; background: transparent; border: none; color: #f1f5f9; font-family: var(--font); font-size: 13px; outline: none; min-width: 0; } #search-input::placeholder { color: #64748b; } .search-kbd { display: flex; align-items: center; gap: 3px; flex-shrink: 0; } .kbd { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 4px; font-family: var(--font-mono); font-size: 10px; color: #64748b; padding: 1px 5px; } .search-clear-btn { background: rgba(255, 255, 255, 0.08); border: none; border-radius: 5px; color: #94a3b8; width: 22px; height: 22px; display: none; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: all 0.15s; } .search-clear-btn:hover { background: rgba(255, 255, 255, 0.15); color: #f1f5f9; } .search-clear-btn svg { width: 12px; height: 12px; } /* ============================ SEARCH RESULTS DROPDOWN ============================ */ .search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #1e293b; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); max-height: 320px; overflow-y: auto; display: none; z-index: 1200; } .search-results::-webkit-scrollbar { width: 4px; } .search-results::-webkit-scrollbar-track { background: transparent; } .search-results::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 4px; } .results-header { padding: 8px 14px 6px; font-size: 10px; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.8px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); } .result-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; transition: background 0.15s; border-bottom: 1px solid rgba(255, 255, 255, 0.04); } .result-item:last-child { border-bottom: none; } .result-item:hover { background: rgba(59, 130, 246, 0.12); } .result-item-icon { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; } .result-item-text { flex: 1; min-width: 0; } .result-item-name { font-size: 13px; font-weight: 500; color: #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .result-item-sub { font-size: 11px; color: #64748b; margin-top: 1px; } .badge-kategori { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 20px; flex-shrink: 0; letter-spacing: 0.3px; } .badge-Rumah-Ibadah { background: rgba(59, 130, 246, 0.15); color: #60a5fa; } .badge-default { background: rgba(148, 163, 184, 0.15); color: #94a3b8; } .result-empty { padding: 20px 14px; text-align: center; color: #64748b; font-size: 13px; } .result-empty-icon { font-size: 28px; margin-bottom: 6px; } /* ============================ HEADER RIGHT TOOLS ============================ */ .header-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; } .tool-btn { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #94a3b8; transition: all 0.15s; position: relative; } .tool-btn:hover { background: rgba(255, 255, 255, 0.12); color: #e2e8f0; border-color: rgba(255, 255, 255, 0.15); } .tool-btn svg { width: 16px; height: 16px; } .status-dot { position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; background: var(--success); border-radius: 50%; border: 1px solid #0f172a; } /* ============================ POPUP STYLES (MODERN CARD) ============================ */ .leaflet-popup-content-wrapper { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 0; border: 1px solid var(--border); overflow: hidden; } .leaflet-popup-content { margin: 0; width: 260px !important; } .leaflet-popup-tip-container { display: block; } .popup-container { font-family: var(--font); font-size: 13.5px; color: var(--text-primary); } /* Popup form inputs */ .popup-container input, .popup-container select, .popup-container textarea { /* <-- Tambahkan ini */ width: 100%; padding: 9px 12px; margin-bottom: 10px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); box-sizing: border-box; font-family: var(--font); font-size: 13px; color: var(--text-primary); background: var(--surface-2); transition: all 0.2s; } .popup-container input:focus, .popup-container select:focus, .popup-container textarea:focus { /* <-- Tambahkan ini juga */ outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.12); background: var(--surface); } /* Khusus untuk textarea agar tidak bisa di-resize sembarangan */ .popup-container textarea { resize: none; } .popup-header { background: linear-gradient(135deg, #1e40af, #1a56db); padding: 14px 16px 12px; position: relative; overflow: hidden; } .popup-header::before { content: ''; position: absolute; top: -20px; right: -20px; width: 80px; height: 80px; background: rgba(255, 255, 255, 0.05); border-radius: 50%; } .popup-header h4 { margin: 0; font-weight: 700; font-size: 15px; color: #ffffff; line-height: 1.3; } .popup-header .popup-type-badge { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 10px; font-weight: 600; color: rgba(255, 255, 255, 0.7); text-transform: uppercase; letter-spacing: 0.5px; } .popup-body { padding: 14px 16px; } .info-row { margin-bottom: 10px; } .info-label { font-weight: 600; color: var(--text-muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.8px; display: block; margin-bottom: 3px; } .info-value { font-size: 13px; font-weight: 500; color: var(--text-primary); } /* Popup form inputs */ .popup-container input, .popup-container select { width: 100%; padding: 9px 12px; margin-bottom: 10px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); box-sizing: border-box; font-family: var(--font); font-size: 13px; color: var(--text-primary); background: var(--surface-2); transition: all 0.2s; } .popup-container input:focus, .popup-container select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.12); background: var(--surface); } .popup-container input[readonly] { background: #f1f5f9; color: var(--text-secondary); cursor: not-allowed; } /* ============================ BUTTONS ============================ */ .btn-group { display: flex; gap: 8px; margin-top: 14px; } .btn { flex: 1; padding: 9px 14px; border: none; border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; font-family: var(--font); font-size: 12.5px; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 5px; letter-spacing: 0.2px; } .btn-save { background: var(--primary); color: white; box-shadow: 0 2px 8px rgba(26, 86, 219, 0.3); } .btn-save:hover { background: var(--primary-dark); box-shadow: 0 4px 12px rgba(26, 86, 219, 0.4); transform: translateY(-1px); } .btn-edit { background: #fff7ed; color: #c2410c; border: 1.5px solid #fed7aa; } .btn-edit:hover { background: #ffedd5; border-color: #fb923c; } .btn-delete { background: #fef2f2; color: #b91c1c; border: 1.5px solid #fecaca; } .btn-delete:hover { background: #fee2e2; border-color: #f87171; } /* ============================ LEGEND (BOTTOM LEFT) ============================ */ .legend { background: rgba(15, 23, 42, 0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; font-family: var(--font); font-size: 11px; color: #cbd5e1; line-height: 1.3; max-width: 32px; max-height: 32px; padding: 0; overflow: hidden; transition: max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1), max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease; cursor: pointer; position: relative; box-sizing: border-box; } .legend:hover { max-width: 230px; max-height: 420px; padding: 14px; cursor: default; } .legend-icon-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); transition: opacity 0.2s; margin: 0; padding: 0; color: var(--accent); display: flex; align-items: center; justify-content: center; } .legend-icon-btn svg { width: 16px; height: 16px; } .legend:hover .legend-icon-btn { opacity: 0; visibility: hidden; } .legend-content { opacity: 0; visibility: hidden; transition: opacity 0.2s ease; min-width: 200px; white-space: nowrap; } .legend:hover .legend-content { opacity: 1; visibility: visible; transition-delay: 0.18s; } .legend h4 { margin: 0 0 10px 0; font-size: 12px; font-weight: 700; color: #f1f5f9; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 6px; letter-spacing: 0.3px; } .legend-item { display: flex; align-items: center; margin-bottom: 5px; } .legend-color { width: 13px; height: 13px; margin-right: 8px; border-radius: 3px; border: 1px solid rgba(255, 255, 255, 0.2); flex-shrink: 0; } .legend-line { width: 18px; height: 3px; margin-right: 8px; border-radius: 2px; flex-shrink: 0; } .legend-marker { height: 16px; margin-right: 8px; margin-left: 2px; } .legend-group { margin-top: 10px; display: block; font-weight: 700; color: #64748b; margin-bottom: 5px; font-size: 9px; text-transform: uppercase; letter-spacing: 1px; } /* ============================ LEAFLET CONTROL OVERRIDES ============================ */ .leaflet-top { top: 75px !important; /* 56px tinggi header + 19px jarak margin */ } /* Wadah Utama Controls (.leaflet-bar) disamakan dengan warna Header */ .leaflet-bar { background: rgba(15, 23, 42, 0.92) !important; backdrop-filter: blur(12px) !important; -webkit-backdrop-filter: blur(12px) !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; border-radius: 10px !important; overflow: hidden; box-shadow: var(--shadow-md) !important; } /* Zoom Control */ .leaflet-control-zoom { border: none !important; } .leaflet-control-zoom a { background: transparent !important; color: #94a3b8 !important; border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important; font-size: 16px !important; font-weight: 300 !important; width: 34px !important; height: 34px !important; line-height: 34px !important; transition: all 0.15s !important; } .leaflet-control-zoom a:last-child { border-bottom: none !important; } .leaflet-control-zoom a:hover { background: rgba(255, 255, 255, 0.1) !important; color: #e2e8f0 !important; } /* Draw Toolbar */ .leaflet-draw-toolbar { margin-top: 0 !important; } .leaflet-draw-toolbar a { background-color: transparent !important; /* Trik Invert: Mengubah ikon hitam bawaan leaflet-draw menjadi putih/cerah */ filter: invert(1) grayscale(1) brightness(1.8); /* Karena menggunakan invert(1), warna border terang harus diset gelap agar dibalik menjadi terang */ border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important; transition: all 0.15s !important; } .leaflet-draw-toolbar a:last-child { border-bottom: none !important; } .leaflet-draw-toolbar a:hover { /* Warna gelap ini akan dibalik oleh filter menjadi highlight putih cerah */ background-color: rgba(0, 0, 0, 0.15) !important; } /* Attribution */ .leaflet-control-attribution { background: rgba(15, 23, 42, 0.7) !important; backdrop-filter: blur(6px) !important; color: #64748b !important; font-size: 9px !important; border-radius: 6px 0 0 0 !important; } .leaflet-control-attribution a { color: #60a5fa !important; } /* Scrollbar global */ ::-webkit-scrollbar { width: 5px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.15); border-radius: 4px; } /* ============================ SIDEBAR TOGGLE BUTTON ============================ */ .sidebar-toggle { position: fixed; top: 68px; left: 16px; z-index: 1050; display: flex; align-items: center; gap: 7px; padding: 0 14px 0 10px; height: 36px; background: rgba(26, 86, 219, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 10px; color: #fff; font-family: var(--font); font-size: 12.5px; font-weight: 600; cursor: pointer; box-shadow: 0 4px 16px rgba(26, 86, 219, 0.35); transition: all 0.2s ease; letter-spacing: 0.2px; } .sidebar-toggle:hover { background: rgba(19, 64, 176, 0.95); box-shadow: 0 6px 20px rgba(26, 86, 219, 0.45); transform: translateY(-1px); } .sidebar-toggle svg { width: 16px; height: 16px; flex-shrink: 0; } .sidebar-toggle.open { left: 316px; background: rgba(30, 41, 59, 0.92); border-color: rgba(255, 255, 255, 0.1); box-shadow: var(--shadow-md); } /* ============================ INPUT SIDEBAR PANEL ============================ */ .input-sidebar { position: fixed; top: 56px; left: -310px; width: 310px; height: calc(100vh - 56px); background: rgba(13, 20, 36, 0.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-right: 1px solid rgba(255, 255, 255, 0.08); z-index: 1040; display: flex; flex-direction: column; transition: left 0.32s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 4px 0 32px rgba(0, 0, 0, 0.4); } .input-sidebar.open { left: 0; } /* Sidebar Header */ .sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); flex-shrink: 0; } .sidebar-title { display: flex; align-items: center; gap: 10px; } .sidebar-title-icon { width: 34px; height: 34px; background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .sidebar-title-icon svg { width: 16px; height: 16px; color: white; } .sidebar-title-text { font-size: 14px; font-weight: 700; color: #f1f5f9; letter-spacing: -0.2px; } .sidebar-title-sub { font-size: 10.5px; color: var(--text-muted); margin-top: 1px; } .sidebar-close { width: 28px; height: 28px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 7px; color: #94a3b8; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.15s; flex-shrink: 0; } .sidebar-close:hover { background: rgba(255, 255, 255, 0.12); color: #f1f5f9; } .sidebar-close svg { width: 13px; height: 13px; } /* Sidebar Tabs */ .sidebar-tabs { display: flex; padding: 8px 10px 0; gap: 4px; flex-shrink: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); overflow-x: auto; scrollbar-width: none; } .sidebar-tabs::-webkit-scrollbar { display: none; } .stab { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 1; min-width: 48px; padding: 7px 4px 9px; border: none; background: transparent; color: #64748b; font-family: var(--font); font-size: 10px; font-weight: 500; cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.15s; white-space: nowrap; } .stab:hover { color: #cbd5e1; } .stab.active { color: #60a5fa; border-bottom-color: #3b82f6; font-weight: 700; } .stab-icon { font-size: 16px; line-height: 1; } /* Sidebar Body / Scrollable area */ .sidebar-body { flex: 1; overflow-y: auto; padding: 16px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.1) transparent; } .sidebar-body::-webkit-scrollbar { width: 4px; } .sidebar-body::-webkit-scrollbar-track { background: transparent; } .sidebar-body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 4px; } /* Tab Content */ .stab-content { display: none; } .stab-content.active { display: block; } /* Step Guide */ .step-guide { background: rgba(59, 130, 246, 0.08); border: 1px solid rgba(59, 130, 246, 0.18); border-radius: 9px; padding: 10px 12px; margin-bottom: 12px; } .step-badge { font-size: 9px; font-weight: 700; color: #60a5fa; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; } .step-guide p { margin: 0; font-size: 12px; color: #94a3b8; line-height: 1.5; } .step-guide strong { color: #cbd5e1; } /* Pick Location Button */ .btn-pick-location { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; background: linear-gradient(135deg, #1a56db, #0ea5e9); border: none; border-radius: 9px; color: white; font-family: var(--font); font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; margin-bottom: 10px; letter-spacing: 0.1px; box-shadow: 0 3px 12px rgba(26, 86, 219, 0.3); } .btn-pick-location:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 5px 16px rgba(26, 86, 219, 0.4); } .btn-pick-location.active-pick { background: linear-gradient(135deg, #f59e0b, #ef4444); box-shadow: 0 3px 12px rgba(245, 158, 11, 0.35); animation: pulse-btn 1.5s infinite; } .btn-pick-location svg { width: 16px; height: 16px; flex-shrink: 0; } .btn-draw { background: linear-gradient(135deg, #0f766e, #10b981); box-shadow: 0 3px 12px rgba(16, 185, 129, 0.28); } .btn-purple { background: linear-gradient(135deg, #4a1d96, #7c3aed); box-shadow: 0 3px 12px rgba(124, 58, 237, 0.28); } .btn-amber { background: linear-gradient(135deg, #92400e, #d97706); box-shadow: 0 3px 12px rgba(217, 119, 6, 0.28); } .btn-red { background: linear-gradient(135deg, #7f1d1d, #ef4444); box-shadow: 0 3px 12px rgba(239, 68, 68, 0.28); } @keyframes pulse-btn { 0%, 100% { opacity: 1; } 50% { opacity: 0.75; } } /* Coordinates Display */ .coords-display { display: flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 7px; padding: 7px 11px; margin-bottom: 12px; } .coords-label { font-size: 10.5px; font-weight: 600; color: #64748b; flex-shrink: 0; } .coords-value { font-size: 11px; font-family: var(--font-mono); color: #94a3b8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .coords-value.has-coords { color: #34d399; } /* Sidebar Form Fields */ .sfield { margin-bottom: 12px; } .sfield-label { display: block; font-size: 10.5px; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.7px; margin-bottom: 5px; } .required { color: #ef4444; } .sinput, .sselect { width: 100%; padding: 9px 12px; background: rgba(255, 255, 255, 0.05); border: 1.5px solid rgba(255, 255, 255, 0.1); border-radius: 8px; color: #e2e8f0; font-family: var(--font); font-size: 13px; transition: all 0.2s; box-sizing: border-box; } .sinput::placeholder { color: #475569; } .sinput:focus, .sselect:focus { outline: none; border-color: rgba(59, 130, 246, 0.7); background: rgba(255, 255, 255, 0.08); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); } .sinput[readonly] { color: #10b981; cursor: default; border-color: rgba(16, 185, 129, 0.3); background: rgba(16, 185, 129, 0.06); } .sselect { cursor: pointer; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2.5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 14px; padding-right: 30px; } .sselect option { background: #1e293b; color: #e2e8f0; } /* Save Buttons */ .btn-save-sidebar { width: 100%; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 16px; background: linear-gradient(135deg, #1a56db, #1340b0); border: none; border-radius: 9px; color: white; font-family: var(--font); font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.2s; margin-top: 6px; box-shadow: 0 4px 14px rgba(26, 86, 219, 0.35); letter-spacing: 0.2px; } .btn-save-sidebar:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(26, 86, 219, 0.45); } .btn-save-sidebar svg { width: 15px; height: 15px; flex-shrink: 0; } .btn-teal { background: linear-gradient(135deg, #0f766e, #10b981); box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3); } .btn-purple-solid { background: linear-gradient(135deg, #4a1d96, #7c3aed); box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3); } .btn-amber-solid { background: linear-gradient(135deg, #92400e, #d97706); box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3); } .btn-red-solid { background: linear-gradient(135deg, #7f1d1d, #ef4444); box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3); } /* Pick Mode Overlay */ .pick-mode-overlay { display: none; position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); z-index: 1500; } .pick-mode-overlay.active { display: flex; } .pick-mode-banner { display: flex; align-items: center; gap: 10px; background: rgba(245, 158, 11, 0.95); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 12px; padding: 10px 16px; color: #fff; font-family: var(--font); font-size: 13px; font-weight: 600; box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4); animation: floatUp 0.3s ease; white-space: nowrap; } .pick-mode-banner svg { width: 16px; height: 16px; flex-shrink: 0; } .pick-mode-banner button { background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 7px; color: #fff; font-family: var(--font); font-size: 12px; font-weight: 600; padding: 4px 10px; cursor: pointer; transition: background 0.15s; margin-left: 4px; } .pick-mode-banner button:hover { background: rgba(255, 255, 255, 0.3); } @keyframes floatUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } /* Rumah Ibadah Custom Icon */ .ibadah-icon-wrapper { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: linear-gradient(135deg, #1e3a5f, #3b82f6); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 3px 10px rgba(59, 130, 246, 0.5); border: 2px solid rgba(255, 255, 255, 0.25); } .ibadah-icon-wrapper svg { transform: rotate(45deg); color: white; } /* ============================ AUTH & LOGIN PAGE STYLES ============================ */ /* Tombol Auth di Header */ .auth-btn { width: auto; padding: 0 12px; gap: 6px; text-decoration: none; color: #cbd5e1; font-size: 12px; font-weight: 600; } .auth-btn:hover { color: #fff; background: rgba(59, 130, 246, 0.15); border-color: rgba(59, 130, 246, 0.3); } /* Halaman Login Khusus */ .login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: #0f172a; background-image: radial-gradient(circle at top right, rgba(30, 64, 175, 0.15), transparent 40%), radial-gradient(circle at bottom left, rgba(15, 118, 110, 0.15), transparent 40%); } .login-card { background: rgba(30, 41, 59, 0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius-lg); padding: 32px; width: 100%; max-width: 380px; box-shadow: var(--shadow-lg); text-align: center; } .login-logo { width: 54px; height: 54px; background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; box-shadow: 0 8px 20px rgba(26, 86, 219, 0.3); } .login-logo svg { width: 28px; height: 28px; color: white; } .login-card h2 { color: #f1f5f9; margin: 0 0 6px; font-size: 22px; font-weight: 700; } .login-card p { color: var(--text-muted); font-size: 13px; margin: 0 0 24px; } .login-form .sfield-label { text-align: left; } .login-form .sinput { background: rgba(15, 23, 42, 0.5); margin-bottom: 16px; } .error-msg { color: #fca5a5; background: rgba(239, 68, 68, 0.15); padding: 10px; border-radius: var(--radius-sm); font-size: 12.5px; margin-bottom: 16px; border: 1px solid rgba(239, 68, 68, 0.3); } .back-link { display: inline-block; margin-top: 24px; color: var(--text-muted); font-size: 12.5px; text-decoration: none; transition: color 0.2s; font-weight: 500; } .back-link:hover { color: var(--accent); } /* Penyesuaian Tombol Auth untuk Mobile */ @media (max-width: 767px) { .auth-btn span { display: none; } .auth-btn { width: 30px; padding: 0; justify-content: center; } .login-card { margin: 20px; padding: 24px; } } /* ============================ RESPONSIVE DESIGN (BREAKPOINTS) ============================ */ /* 1. Desktop Monitor (>= 1280px) Sidebar 340px; header penuh dengan semua elemen */ @media (min-width: 1280px) { .input-sidebar { width: 340px; left: -340px; } .input-sidebar.open { left: 0; } .sidebar-toggle.open { left: 346px; } /* Menyesuaikan posisi toggle saat terbuka */ .search-wrapper { max-width: 560px; } } /* 2. Laptop (< 1280px dan >= 1024px) Sama dengan desktop; search bar sedikit lebih sempit */ @media (max-width: 1279px) and (min-width: 1024px) { .search-wrapper { max-width: 400px; } .input-sidebar { width: 310px; left: -310px; } /* Kembali ke ukuran default 310px */ .sidebar-toggle.open { left: 316px; } } /* 3. Tablet (< 1024px dan >= 768px) Sidebar masih dapat digunakan; header menyesuaikan */ @media (max-width: 1023px) and (min-width: 768px) { .search-wrapper { max-width: 320px; } .brand-subtitle { display: none; } /* Menyembunyikan subtitle untuk hemat ruang */ .custom-select-trigger { min-width: auto; padding-right: 5px; } .input-sidebar { width: 310px; left: -310px; } .sidebar-toggle.open { left: 316px; } } /* 4. Mobile (< 768px) Sidebar full-width saat terbuka; header menggunakan layout kompak */ @media (max-width: 767px) { /* Header Kompak */ .webgis-header { padding: 0 10px; gap: 8px; } .brand-name { display: none; } /* Menyembunyikan teks brand */ .brand-subtitle { display: none; } .header-divider { display: none; } .search-wrapper { max-width: 100%; flex: 1; } /* Layout Kompak untuk Search Bar */ .custom-select-trigger { display: none; } /* Hanya tampilkan icon garis tiga */ .search-category-wrap { padding: 0 6px; border-right: none; } .category-arrow { display: none; } .header-tools { gap: 4px; } .tool-btn { width: 30px; height: 30px; } /* Sidebar Full-width (100%) */ .input-sidebar { width: 100%; left: -100%; border-right: none; } .input-sidebar.open { left: 0; } /* Pindahkan Tombol Toggle ke Bawah Tengah pada Mobile */ .sidebar-toggle { top: auto; bottom: 24px; left: 50%; transform: translateX(-50%); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); } /* Sembunyikan tombol toggle saat sidebar terbuka penuh agar tidak menumpuk */ .sidebar-toggle.open { display: none; } /* Penyesuaian UI Peta pada Mobile */ .leaflet-top { top: 65px !important; } .pick-mode-overlay { bottom: 80px; } /* Naikkan sedikit agar tidak tertutup tombol toggle */ /* Buat legenda lebih kecil di perangkat seluler */ .legend h4 { font-size: 10px; margin-bottom: 6px; } .legend-item { font-size: 9px; } } /* Shift Leaflet top controls below the 56px header in desktop view */ @media (min-width: 768px) { .leaflet-top { margin-top: 66px; } } /* Custom styling for Leaflet Layers Control - Compact Design at bottomleft */ .leaflet-control-layers { background: rgba(15, 23, 42, 0.9) !important; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.1) !important; border-radius: var(--radius-md) !important; box-shadow: var(--shadow-md) !important; transition: all 0.2s ease; padding: 0 !important; } /* Make the collapsed toggle button small and compact */ .leaflet-control-layers-toggle { width: 32px !important; height: 32px !important; background-size: 16px 16px !important; } /* Expanded list styling - smaller padding and fonts */ .leaflet-control-layers-expanded { padding: 8px 10px !important; min-width: 185px; } .leaflet-control-layers-list label { margin-bottom: 6px; cursor: pointer; font-size: 11px; font-weight: 600; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; transition: color 0.15s; } .leaflet-control-layers-list label:last-child { margin-bottom: 0; } .leaflet-control-layers-list label:hover { color: #ffffff; } /* Custom Checkbox Design - Smaller */ .leaflet-control-layers-selector { -webkit-appearance: none; appearance: none; width: 13px !important; height: 13px !important; border: 1.5px solid rgba(255, 255, 255, 0.2) !important; border-radius: 3px !important; outline: none; background: #0f172a !important; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all 0.2s ease; margin: 0 !important; position: relative; } .leaflet-control-layers-selector:checked { background: var(--primary) !important; border-color: var(--primary) !important; } .leaflet-control-layers-selector:checked::after { content: ''; width: 3px; height: 6px; border: solid white; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); position: absolute; top: 1.5px; left: 3.5px; } .leaflet-control-layers-selector:focus { box-shadow: 0 0 0 2.5px rgba(59, 130, 246, 0.25) !important; } /* ========================================== USER PROFILE DROPDOWN WIDGET STYLE ========================================== */ .user-profile-menu { position: relative; display: inline-block; } .profile-trigger { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); padding: 6px 12px; border-radius: var(--radius-md); cursor: pointer; transition: all 0.2s ease; height: 38px; color: var(--text-primary); } .profile-trigger:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); } .profile-avatar { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--primary); object-fit: cover; } .profile-username { font-size: 12.5px; font-weight: 600; color: #f1f5f9; } .profile-chevron { width: 14px; height: 14px; color: #94a3b8; transition: transform 0.2s ease; } .profile-trigger:hover .profile-chevron { color: #f1f5f9; } .profile-dropdown { position: absolute; top: calc(100% + 8px); right: 0; width: 180px; background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 6px; display: flex; flex-direction: column; gap: 2px; z-index: 1000; opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.95); transform-origin: top right; transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1); } .profile-dropdown.active { opacity: 1; visibility: visible; transform: translateY(0) scale(1); } .dropdown-user-info { padding: 8px 12px; } .dropdown-username { font-size: 12px; font-weight: 700; color: #f8fafc; } .dropdown-role { font-size: 10px; color: #64748b; margin-top: 2px; } .dropdown-divider { height: 1px; background: rgba(255, 255, 255, 0.06); margin: 4px 6px; } .dropdown-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 12px; font-weight: 600; color: #cbd5e1; text-decoration: none; border-radius: 6px; transition: all 0.15s ease; cursor: pointer; } .dropdown-item svg { width: 14px; height: 14px; } .dropdown-item:hover { background: rgba(255, 255, 255, 0.05); color: #f1f5f9; } .logout-link:hover { background: rgba(239, 68, 68, 0.1); color: #f87171; }