/* MeshWatch 2.0 — customizations layered on AdminLTE / Bootstrap 5 */

/* Map container */
.mw-map {
  height: calc(100vh - 200px);
  min-height: 480px;
  border-radius: .25rem;
  overflow: hidden;
}

/* Status pills */
.mw-pill {
  display: inline-block;
  padding: 0.15em 0.6em;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  text-transform: uppercase;
}
.mw-pill-active   { background: rgba(40,167,69,.15);  color: #28a745; border: 1px solid rgba(40,167,69,.3); }
.mw-pill-inactive { background: rgba(220,53,69,.12);  color: #dc3545; border: 1px solid rgba(220,53,69,.3); }
.mw-pill-rf       { background: rgba(0,123,255,.12);  color: #0d6efd; border: 1px solid rgba(0,123,255,.3); }
.mw-pill-proxy    { background: rgba(253,126,20,.14); color: #fd7e14; border: 1px solid rgba(253,126,20,.3); }

/* Summary card big number */
.mw-stat-number { font-size: 2rem; font-weight: 700; line-height: 1; }

/* Dashboard spark rows */
.mw-metric-row { display: flex; justify-content: space-between; padding: .25rem 0; font-size: .875rem; border-bottom: 1px dashed var(--bs-border-color); }
.mw-metric-row:last-child { border-bottom: none; }

/* Table tweaks — compact rows for long node lists */
.table-sm-dense td, .table-sm-dense th { padding: .35rem .55rem; vertical-align: middle; }

/* Node card header emphasis */
.mw-node-card .card-header { padding: .65rem .9rem; }
.mw-node-card .card-body   { padding: .65rem .9rem; }

/* Leaflet overrides so popups look at home on AdminLTE */
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  border: 1px solid var(--bs-border-color);
}
.leaflet-popup-content { min-width: 220px; margin: .8rem; }
.leaflet-popup-content a { color: var(--bs-link-color); }

/* Map control buttons — put them on the card, not floating */
.mw-map-toolbar { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }

/* Auth card */
.mw-auth-card {
  max-width: 400px;
  margin: 6vh auto;
}

/* Bigger icons in sidebar */
.app-sidebar .nav-icon { font-size: 1.05rem; }

/* Small helper: mono for IPs / hostnames */
.mw-mono { font-family: var(--bs-font-monospace); font-size: .875em; }
