*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: 'Segoe UI', system-ui, sans-serif; background: #0f1117; color: #e2e8f0; height: 100vh; display: flex; flex-direction: column; overflow: hidden; } /* ── Header ── */ header { background: #1a1d2e; border-bottom: 1px solid #2d3748; padding: 0 1rem; height: 52px; display: flex; align-items: center; gap: 1rem; flex-shrink: 0; z-index: 1000; } header h1 { font-size: 1.1rem; font-weight: 700; color: #63b3ed; white-space: nowrap; } header h1 span { color: #68d391; } .header-filters { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; } .filter-btn { padding: 3px 10px; border-radius: 999px; border: 1px solid transparent; font-size: 0.78rem; cursor: pointer; font-weight: 600; transition: all .15s; } .filter-btn.active { opacity: 1; } .filter-btn:not(.active) { opacity: 0.45; filter: grayscale(0.5); } .filter-btn:hover { opacity: 0.9; } .freq-900 { background: #553c9a; border-color: #6b46c1; color: #e9d8fd; } .freq-2400 { background: #2a4365; border-color: #2b6cb0; color: #bee3f8; } .freq-5800 { background: #22543d; border-color: #276749; color: #c6f6d5; } .freq-6000 { background: #744210; border-color: #975a16; color: #fefcbf; } .freq-other { background: #2d3748; border-color: #4a5568; color: #e2e8f0; } /* ── Header action area ── */ .header-actions { display: flex; gap: 0.5rem; align-items: center; margin-left: auto; } #btn-add-ap { padding: 5px 14px; background: #3182ce; border: none; border-radius: 6px; color: #fff; font-size: 0.82rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s; } #btn-add-ap:hover { background: #2b6cb0; } /* ── Dropdown ── */ .dropdown { position: relative; } .btn-import { padding: 5px 12px; background: #2d3748; border: 1px solid #4a5568; border-radius: 6px; color: #e2e8f0; font-size: 0.82rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s; } .btn-import:hover { background: #3d4a60; } .dropdown-menu { display: none; position: absolute; top: calc(100% + 4px); right: 0; background: #1a1d2e; border: 1px solid #2d3748; border-radius: 8px; min-width: 160px; z-index: 1100; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.5); } .dropdown-menu.open { display: block; } .dropdown-item { display: block; width: 100%; padding: 9px 14px; background: none; border: none; text-align: left; color: #e2e8f0; font-size: 0.82rem; cursor: pointer; transition: background .12s; } .dropdown-item:hover { background: #2d3748; } /* ── Main layout ── */ .main { display: flex; flex: 1; overflow: hidden; } /* ── Sidebar ── */ #sidebar { width: 300px; flex-shrink: 0; background: #1a1d2e; border-right: 1px solid #2d3748; display: flex; flex-direction: column; overflow: hidden; } #sidebar-header { padding: 0.6rem 0.8rem; border-bottom: 1px solid #2d3748; font-size: 0.78rem; color: #a0aec0; font-weight: 600; display: flex; justify-content: space-between; align-items: center; } #ap-count { font-weight: 700; color: #63b3ed; } #ap-list { flex: 1; overflow-y: auto; padding: 4px 0; } .ap-item { padding: 8px 12px; cursor: pointer; border-bottom: 1px solid #1e2233; transition: background .12s; display: flex; gap: 10px; align-items: center; } .ap-item:hover { background: #232640; } .ap-item.selected { background: #2a3557; } .ap-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; border: 2px solid rgba(255,255,255,0.25); } .ap-info { flex: 1; min-width: 0; } .ap-name { font-size: 0.85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ap-meta { font-size: 0.72rem; color: #718096; margin-top: 1px; } .ap-freq-badge { font-size: 0.68rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; flex-shrink: 0; } /* ── Map ── */ #map { flex: 1; } /* ── Legend ── */ #legend { position: absolute; bottom: 28px; right: 10px; z-index: 900; background: rgba(26,29,46,0.92); border: 1px solid #2d3748; border-radius: 8px; padding: 10px 14px; font-size: 0.75rem; min-width: 160px; backdrop-filter: blur(4px); } #legend h3 { font-size: 0.78rem; color: #a0aec0; margin-bottom: 8px; } .legend-row { display: flex; align-items: center; gap: 8px; margin: 4px 0; } .legend-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.3); } /* ── Modal ── */ .modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.65); z-index: 2000; align-items: center; justify-content: center; } .modal-overlay.open { display: flex; } .modal { background: #1a1d2e; border: 1px solid #2d3748; border-radius: 12px; padding: 1.5rem; width: 460px; max-width: 95vw; max-height: 90vh; overflow-y: auto; } .modal h2 { font-size: 1rem; margin-bottom: 1rem; color: #63b3ed; } .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; } .form-group { display: flex; flex-direction: column; gap: 4px; } .form-group.full { grid-column: 1/-1; } .form-group label { font-size: 0.75rem; color: #a0aec0; font-weight: 600; } .form-group input, .form-group select, .form-group textarea { background: #0f1117; border: 1px solid #2d3748; border-radius: 6px; color: #e2e8f0; padding: 6px 10px; font-size: 0.83rem; transition: border-color .15s; } .form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #3182ce; } .form-group textarea { resize: vertical; min-height: 54px; } .modal-actions { display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 1rem; } .btn-cancel { padding: 6px 16px; background: transparent; border: 1px solid #4a5568; border-radius: 6px; color: #a0aec0; cursor: pointer; font-size: 0.83rem; } .btn-cancel:hover { border-color: #718096; color: #e2e8f0; } .btn-save { padding: 6px 16px; background: #3182ce; border: none; border-radius: 6px; color: #fff; cursor: pointer; font-size: 0.83rem; font-weight: 600; } .btn-save:hover { background: #2b6cb0; } .btn-delete { padding: 6px 16px; background: #c53030; border: none; border-radius: 6px; color: #fff; cursor: pointer; font-size: 0.83rem; margin-right: auto; } .btn-delete:hover { background: #9b2c2c; } /* ── Popup ── */ .leaflet-popup-content-wrapper { background: #1a1d2e !important; border: 1px solid #2d3748 !important; border-radius: 8px !important; color: #e2e8f0 !important; box-shadow: 0 4px 20px rgba(0,0,0,0.5) !important; } .leaflet-popup-tip { background: #1a1d2e !important; } .popup-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; color: #63b3ed; } .popup-row { font-size: 0.78rem; display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; } .popup-label { color: #718096; } .popup-value { font-weight: 600; } .popup-edit-btn { margin-top: 8px; width: 100%; padding: 5px; background: #2d3748; border: none; border-radius: 5px; color: #e2e8f0; cursor: pointer; font-size: 0.78rem; } .popup-edit-btn:hover { background: #3d4a60; } /* ── Signal bar ── */ .signal-bar-wrap { margin-top: 6px; } .signal-label { font-size: 0.72rem; color: #718096; margin-bottom: 2px; } .signal-bar { height: 6px; border-radius: 3px; background: #2d3748; overflow: hidden; } .signal-fill { height: 100%; border-radius: 3px; } /* Scrollbar */ ::-webkit-scrollbar { width: 5px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: #2d3748; border-radius: 3px; } /* ── Wider modal variant ── */ .modal-wide { width: 600px; } /* ── Info / error boxes ── */ .info-box { background: #1e2a3a; border: 1px solid #2b6cb0; border-radius: 6px; padding: 10px 14px; font-size: 0.78rem; color: #bee3f8; line-height: 1.6; } .info-box code { background: #2d3748; border-radius: 3px; padding: 1px 5px; font-size: 0.75rem; color: #90cdf4; } .error-box { background: #2d1b1b; border: 1px solid #c53030; border-radius: 6px; padding: 10px 14px; font-size: 0.82rem; color: #fc8181; margin-top: 0.5rem; } .success-box { background: #1a2d1a; border: 1px solid #276749; border-radius: 6px; padding: 10px 14px; font-size: 0.82rem; color: #68d391; margin-top: 0.5rem; } /* ── Section label ── */ .section-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #718096; margin-bottom: 6px; } /* ── Preview table ── */ .preview-table { width: 100%; border-collapse: collapse; font-size: 0.75rem; } .preview-table th { background: #2d3748; padding: 5px 8px; text-align: left; color: #a0aec0; font-weight: 600; border-bottom: 1px solid #4a5568; white-space: nowrap; } .preview-table td { padding: 4px 8px; border-bottom: 1px solid #1e2233; white-space: nowrap; max-width: 160px; overflow: hidden; text-overflow: ellipsis; color: #cbd5e0; } .preview-table tr:hover td { background: #232640; } .col-mapped { color: #68d391; } .col-unmapped { color: #718096; } /* ── SNMP raw table ── */ .snmp-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; } .snmp-table td { padding: 4px 8px; border-bottom: 1px solid #1e2233; } .snmp-table td:first-child { color: #a0aec0; font-weight: 600; width: 38%; } .snmp-table td:last-child { color: #e2e8f0; font-family: monospace; } .snmp-table .vendor-row td { color: #f6ad55; } /* ── Utility buttons ── */ .btn-secondary { padding: 6px 16px; background: #2d3748; border: 1px solid #4a5568; border-radius: 6px; color: #e2e8f0; cursor: pointer; font-size: 0.83rem; } .btn-secondary:hover { background: #3d4a60; } .btn-link { background: none; border: none; color: #4299e1; cursor: pointer; font-size: 0.78rem; padding: 0; text-decoration: underline; } .btn-link:hover { color: #63b3ed; } /* ── Spinner ── */ @keyframes spin { to { transform: rotate(360deg); } } .spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid #4a5568; border-top-color: #63b3ed; border-radius: 50%; animation: spin 0.7s linear infinite; vertical-align: middle; margin-right: 6px; }