/* assets/css/style.css — WebGIS Pontianak v2.0 */ /* ── RESET & BASE ─────────────────────────────────────── */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } :root { --bg: #080c14; --surface: #0f1522; --card: #141b2d; --card2: #1a2235; --border: rgba(99,179,237,0.12); --accent: #3b82f6; --accent2: #06b6d4; --green: #10b981; --red: #ef4444; --amber: #f59e0b; --purple: #8b5cf6; --pink: #ec4899; --text: #e2e8f0; --text2: #7c93b5; --glow: rgba(59,130,246,0.2); --radius: 12px; --radius-lg: 18px; --shadow: 0 8px 32px rgba(0,0,0,0.4); --shadow-lg: 0 24px 64px rgba(0,0,0,0.5); } html { scroll-behavior: smooth; } body { font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; -webkit-font-smoothing: antialiased; } /* ── SCROLLBAR ────────────────────────────────────────── */ ::-webkit-scrollbar { width: 5px; height: 5px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: rgba(99,179,237,0.2); border-radius: 5px; } ::-webkit-scrollbar-thumb:hover { background: rgba(99,179,237,0.35); } /* ── TYPOGRAPHY ───────────────────────────────────────── */ h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; } h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; } h3 { font-size: 16px; font-weight: 700; } h4 { font-size: 13px; font-weight: 700; } p { font-size: 14px; color: var(--text2); } small { font-size: 11px; color: var(--text2); } a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; } /* ── CARDS ────────────────────────────────────────────── */ .card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; transition: border-color 0.2s, transform 0.2s; } .card:hover { border-color: rgba(99,179,237,0.25); } .card-sm { padding: 14px; border-radius: var(--radius); } /* ── BUTTONS ──────────────────────────────────────────── */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 18px; border-radius: var(--radius); border: none; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.2s; white-space: nowrap; text-decoration: none; } .btn-sm { padding: 6px 12px; font-size: 11px; border-radius: 8px; } .btn-lg { padding: 13px 24px; font-size: 15px; } .btn-full { width: 100%; } .btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; box-shadow: 0 4px 16px var(--glow); } .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px var(--glow); } .btn-primary:active { transform: translateY(0); } .btn-success { background: linear-gradient(135deg, var(--green), #059669); color: #fff; } .btn-success:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(16,185,129,0.3); } .btn-danger { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.25); color: var(--red); } .btn-danger:hover { background: rgba(239,68,68,0.2); } .btn-ghost { background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--text2); } .btn-ghost:hover { background: rgba(255,255,255,0.08); color: var(--text); } .btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; box-shadow: none !important; } /* ── BADGES ───────────────────────────────────────────── */ .badge { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 6px; font-size: 10px; font-weight: 800; letter-spacing: 0.3px; white-space: nowrap; } .badge-blue { background: rgba(59,130,246,0.15); color: #93c5fd; } .badge-green { background: rgba(16,185,129,0.15); color: #6ee7b7; } .badge-amber { background: rgba(245,158,11,0.15); color: #fcd34d; } .badge-red { background: rgba(239,68,68,0.15); color: #fca5a5; } .badge-purple { background: rgba(139,92,246,0.15); color: #c4b5fd; } .badge-gray { background: rgba(255,255,255,0.07); color: var(--text2); } /* ── FORMS ────────────────────────────────────────────── */ .form-group { margin-bottom: 16px; } .form-group label { display: block; font-size: 11px; font-weight: 700; color: var(--text2); margin-bottom: 6px; letter-spacing: 0.3px; text-transform: uppercase; } .form-control { width: 100%; background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--text); padding: 10px 12px; border-radius: var(--radius); font-family: inherit; font-size: 13px; transition: all 0.2s; outline: none; } .form-control:focus { border-color: var(--accent); background: rgba(59,130,246,0.06); box-shadow: 0 0 0 3px var(--glow); } .form-control::placeholder { color: rgba(124,147,181,0.4); } .form-control option { background: var(--card); color: var(--text); } textarea.form-control { resize: vertical; min-height: 80px; } /* ── TABLES ───────────────────────────────────────────── */ .table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); } table.datatable { width: 100%; border-collapse: collapse; } table.datatable thead tr { background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--border); } table.datatable th { padding: 10px 14px; text-align: left; font-size: 10px; font-weight: 800; color: var(--text2); letter-spacing: 0.5px; text-transform: uppercase; white-space: nowrap; } table.datatable td { padding: 11px 14px; font-size: 12px; border-bottom: 1px solid rgba(255,255,255,0.04); vertical-align: middle; } table.datatable tbody tr:hover td { background: rgba(59,130,246,0.03); } table.datatable tbody tr:last-child td { border-bottom: none; } /* ── MODALS ───────────────────────────────────────────── */ .modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 500; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); animation: fadeIn 0.2s; } @keyframes fadeIn { from { opacity: 0; } } .modal-overlay.hidden { display: none; } .modal { background: var(--card); border: 1px solid var(--border); border-radius: 20px; width: 90%; max-width: 560px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); animation: modalSlide 0.3s cubic-bezier(0.23,1,0.32,1); } @keyframes modalSlide { from { opacity: 0; transform: scale(0.95); } } .modal-lg { max-width: 720px; } .modal-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: var(--card); z-index: 2; } .modal-title { font-size: 15px; font-weight: 800; } .modal-close { background: rgba(255,255,255,0.05); border: none; color: var(--text2); width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-size: 15px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; } .modal-close:hover { background: rgba(239,68,68,0.2); color: var(--red); } .modal-body { padding: 20px 24px; } .modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; } /* ── ALERTS / TOASTS ──────────────────────────────────── */ .alert { padding: 12px 16px; border-radius: var(--radius); font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 8px; } .alert-success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); color: #6ee7b7; } .alert-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; } .alert-info { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.3); color: #93c5fd; } .alert-warning { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.3); color: #fcd34d; } .toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; } .toast { padding: 12px 18px; border-radius: var(--radius); font-size: 13px; font-weight: 600; max-width: 320px; animation: toastIn 0.3s cubic-bezier(0.23,1,0.32,1); pointer-events: none; } @keyframes toastIn { from { opacity: 0; transform: translateY(16px); } } .toast-success { background: #065f46; border: 1px solid var(--green); color: #6ee7b7; } .toast-error { background: #7f1d1d; border: 1px solid var(--red); color: #fca5a5; } .toast-info { background: #1e3a5f; border: 1px solid var(--accent); color: #93c5fd; } .toast-warning { background: #78350f; border: 1px solid var(--amber); color: #fcd34d; } /* ── LEAFLET OVERRIDES ────────────────────────────────── */ .leaflet-popup-content-wrapper { background: #fff; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.25); padding: 0; } .leaflet-popup-content { margin: 0; } .leaflet-popup-tip-container { display: none; } .popup-wrap { padding: 12px 14px; min-width: 200px; font-family: 'Sora', sans-serif; } .popup-nama { font-size: 14px; font-weight: 800; margin-bottom: 8px; color: #1e293b; } .popup-row { font-size: 12px; margin-bottom: 4px; color: #475569; } .popup-row strong { color: #1e293b; } .popup-actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; } .popup-btn { padding: 5px 12px; border-radius: 7px; border: none; font-size: 11px; font-weight: 700; cursor: pointer; font-family: 'Sora', sans-serif; transition: all 0.15s; } .pb-blue { background: #3b82f6; color: #fff; } .pb-green { background: #10b981; color: #fff; } .pb-amber { background: #f59e0b; color: #fff; } .pb-blue:hover { background: #2563eb; } .pb-green:hover { background: #059669; } .pb-amber:hover { background: #d97706; } /* ── LOADERS ──────────────────────────────────────────── */ .spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.2); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; vertical-align: middle; } .spinner-dark { border-color: rgba(0,0,0,0.1); border-top-color: var(--accent); } @keyframes spin { to { transform: rotate(360deg); } } .skeleton { background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 6px; } @keyframes shimmer { to { background-position: -200% 0; } } /* ── UTILS ────────────────────────────────────────────── */ .text-center { text-align: center; } .text-right { text-align: right; } .text-muted { color: var(--text2); } .text-accent { color: var(--accent); } .text-green { color: var(--green); } .text-red { color: var(--red); } .text-amber { color: var(--amber); } .font-bold { font-weight: 700; } .font-heavy { font-weight: 800; } .d-flex { display: flex; } .d-grid { display: grid; } .align-center { align-items: center; } .justify-between { justify-content: space-between; } .gap-sm { gap: 8px; } .gap-md { gap: 14px; } .gap-lg { gap: 20px; } .mt-sm { margin-top: 8px; } .mt-md { margin-top: 16px; } .mt-lg { margin-top: 24px; } .mb-sm { margin-bottom: 8px; } .mb-md { margin-bottom: 16px; } .mb-lg { margin-bottom: 24px; } .p-sm { padding: 8px; } .p-md { padding: 16px; } .p-lg { padding: 24px; } .hidden { display: none !important; } .invisible { visibility: hidden; } .w-full { width: 100%; } .h-full { height: 100%; } /* ── EMPTY STATE ──────────────────────────────────────── */ .empty-state { text-align: center; padding: 40px 20px; color: var(--text2); } .empty-state .es-icon { font-size: 40px; margin-bottom: 12px; } .empty-state h4 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 6px; } .empty-state p { font-size: 12px; } /* ── DIVIDERS ─────────────────────────────────────────── */ .section-label { font-size: 10px; font-weight: 800; color: var(--text2); letter-spacing: 1px; text-transform: uppercase; padding: 10px 0 6px; border-bottom: 1px solid var(--border); margin-bottom: 12px; } hr.divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; } /* ── GRID HELPERS ─────────────────────────────────────── */ .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; } .grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; } @media (max-width: 768px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .hide-mobile { display: none !important; } } @media (max-width: 1024px) { .grid-4 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: 1fr 1fr; } .hide-tablet { display: none !important; } } /* ── ANIMATIONS ───────────────────────────────────────── */ @keyframes fadeIn { from { opacity: 0; } } @keyframes slideUp { from { opacity: 0; transform: translateY(16px); } } @keyframes slideDown { from { opacity: 0; transform: translateY(-16px); } } @keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } } @keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } } @keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } } .animate-fade-in { animation: fadeIn 0.3s; } .animate-slide-up { animation: slideUp 0.3s cubic-bezier(0.23,1,0.32,1); } .animate-scale-in { animation: scaleIn 0.3s cubic-bezier(0.23,1,0.32,1); } .animate-pulse { animation: pulse 2s infinite; }