body { background-color: #f5f7fa; overflow: hidden; } #map-container { position: relative; width: 100%; height: 100vh; display: flex; } #map { height: 100%; flex: 1; transition: all 0.3s ease; } #sidebar { width: 400px; flex-shrink: 0; background: linear-gradient(135deg, #1a2a6c, #2a4d8e); color: white; padding: 20px; height: 100%; overflow-y: auto; box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2); z-index: 1001; } #sidebar.sidebar-collapsed { width: 0; padding: 0; overflow: hidden; } #toggle-collapsed { position: absolute; top: 20px; left: 20px; z-index: 1000; background: rgba(26, 42, 108, 0.9); color: white; border: none; border-radius: 50%; width: 36px; height: 36px; cursor: pointer; display: none; align-items: center; justify-content: center; transition: all 0.3s ease; box-shadow: 0 2px 5px rgba(0,0,0,0.2); } #toggle-collapsed:hover { background: rgba(26, 42, 108, 1); transform: scale(1.05); } #toggle-collapsed.show { display: flex; } .sidebar-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background: linear-gradient(135deg, #1a2a6c, #2a4d8e); border-bottom: 1px solid rgba(255, 255, 255, 0.2); white-space: nowrap; position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); } .sidebar-header h2 { font-size: 1.5rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; } .toggle-btn { background: rgba(255, 255, 255, 0.2); border: none; border-radius: 4px; color: white; font-size: 1rem; cursor: pointer; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; } .toggle-btn:hover { background: rgba(255, 255, 255, 0.3); } .search-container { margin-bottom: 20px; min-width: 0; } #search-box { width: 100%; padding: 10px 15px; border-radius: 25px; border: none; background: rgba(255, 255, 255, 0.1); color: white; font-size: 14px; } #search-box::placeholder { color: rgba(255, 255, 255, 0.6); } #data-table { width: 100%; border-collapse: collapse; margin-top: 10px; min-width: 0; } #data-table th { background-color: rgba(255, 255, 255, 0.1); padding: 12px 15px; text-align: left; font-weight: 500; position: sticky; top: 0; } #data-table td { padding: 12px 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); cursor: pointer; transition: background 0.3s ease; white-space: normal; word-wrap: break-word; word-break: break-word; } #data-table tr:last-child td { border-bottom: none; } #data-table tr:hover td { background-color: rgba(255, 255, 255, 0.1); } .mmi-badge { display: inline-block; padding: 3px 8px; border-radius: 4px; font-weight: 600; font-size: 0.85rem; text-align: center; min-width: 40px; white-space: nowrap; } .info { padding: 10px 15px; font: 14px/16px Arial, sans-serif; background: rgba(254, 254, 254, 0.6); border-radius: 8px; box-shadow: 0 0 15px rgba(0, 0, 0, 0.2); } .legend { line-height: 18px; color: #444; padding: 10px; } .legend-title { font-weight: bold; margin-bottom: 8px; font-size: 15px; } .legend i { width: 18px; height: 18px; float: left; margin-right: 8px; opacity: 0.8; border-radius: 3px; } .legend-item { margin-bottom: 5px; font-size: 13px; } .map-controls { position: absolute; top: 90px; right: 15px; z-index: 1000; } .control-btn { background: white; border: none; border-radius: 5px; padding: 8px 15px; margin-bottom: 10px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); cursor: pointer; display: flex; align-items: center; font-weight: 500; transition: all 0.3s ease; } .control-btn i { margin-right: 8px; } .control-btn:hover { background: #f1f1f1; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); } .stats-card { background: rgba(255, 255, 255, 0.9); border-radius: 8px; padding: 15px; margin-bottom: 20px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); min-width: 0; } .stats-title { font-size: 16px; font-weight: 600; margin-bottom: 10px; color: #1a2a6c; white-space: nowrap; } .stats-value { font-size: 24px; font-weight: 700; color: #2a4d8e; } .stats-label { font-size: 14px; color: #666; } .highlight { background-color: rgba(255, 215, 0, 0.3) !important; animation: pulse 1.5s infinite; } @keyframes pulse { 0% { background-color: rgba(255, 215, 0, 0.3); } 50% { background-color: rgba(255, 215, 0, 0.6); } 100% { background-color: rgba(255, 215, 0, 0.3); } } /* Responsiveness */ @media (max-width: 768px) { /* Sidebar fullscreen di mobile */ #sidebar:not(.sidebar-collapsed) { position: fixed; top: 0; left: 0; width: 100% !important; height: 100%; z-index: 2000; padding: 20px; } .close-sidebar { display: block; } header { padding: 12px 15px; } #data-table td, #data-table th { padding: 8px 10px; font-size: 13px; } main { padding: 15px; } } @media (max-width: 480px) { #data-table { font-size: 12px; } .card { padding: 15px; } } .sidebar-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 1999; display: none; } #sidebar:not(.sidebar-collapsed) + .sidebar-overlay { display: block; } .location-details { margin-top: 15px; font-size: 13px; color: #ddd; min-width: 0; } .location-details div { margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .featured-item { background-color: rgba(255, 255, 255, 0.15); border-radius: 8px; padding: 15px; margin-top: 20px; min-width: 0; } .featured-title { font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; white-space: nowrap; } .featured-title i { margin-right: 10px; } .featured-content { display: flex; justify-content: space-between; align-items: center; min-width: 0; } .featured-mmi { font-size: 24px; font-weight: 700; flex-shrink: 0; margin-left: 10px; } .leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); padding: 0; overflow: hidden; border: none; } .leaflet-popup-content { margin: 0; width: auto !important; min-width: 280px; } .popup-header { background: linear-gradient(to right, #1a2a6c, #2a4d8e); color: white; padding: 15px; font-size: 18px; font-weight: 600; display: flex; align-items: center; } .popup-header i { margin-right: 10px; font-size: 20px; } .popup-body { padding: 20px; background: #fff; } .popup-section { margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 15px; } .popup-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; } .popup-section-title { font-weight: 600; margin-bottom: 8px; color: #1a2a6c; font-size: 14px; display: flex; align-items: center; } .popup-section-title i { margin-right: 8px; width: 20px; text-align: center; } .popup-section-content { font-size: 15px; color: #333; padding-left: 28px; } .mmi-display { display: inline-block; padding: 8px 15px; border-radius: 5px; font-weight: 700; background: #f0f0f0; margin-top: 5px; font-size: 16px; } .coordinates { font-size: 13px; color: #666; font-family: monospace; margin-top: 10px; background: #f9f9f9; padding: 10px; border-radius: 6px; border-left: 3px solid #1a2a6c; } .popup-footer { padding: 12px 15px; background: #f8f9fa; text-align: center; font-size: 12px; color: #666; border-top: 1px solid #eee; } .earthquake-header { background: linear-gradient(135deg, #1a2a6c, #2a4d8e); color: white; padding: 15px; border-radius: 8px; margin-bottom: 20px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); } .earthquake-header h2 { display: flex; align-items: center; font-size: 1.4rem; margin-bottom: 15px; } .earthquake-header h2 i { margin-right: 10px; font-size: 1.8rem; } .earthquake-detail { display: flex; justify-content: space-between; flex-wrap: wrap; } .earthquake-info { flex: 1; min-width: 150px; margin-bottom: 10px; } .earthquake-info-title { font-size: 0.85rem; opacity: 0.8; margin-bottom: 3px; } .earthquake-info-value { font-size: 1.1rem; font-weight: 600; } .mag-display { display: inline-block; padding: 8px 15px; border-radius: 5px; font-weight: 700; background: rgba(255, 255, 255, 0.15); font-size: 1.4rem; text-align: center; width: 100%; margin-top: 5px; } .earthquake-link { display: block; text-align: center; background: rgba(255, 255, 255, 0.15); color: white; padding: 8px; border-radius: 5px; text-decoration: none; margin-top: 10px; transition: all 0.3s ease; } .earthquake-link:hover { background: rgba(255, 255, 255, 0.25); }
| Desa | Kecamatan | MMI |
|---|