/* ── Status dots ──────────────────────────────────────────────────────────── */
.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #6c757d;
  flex-shrink: 0;
  transition: background 0.4s;
}
.status-dot.connected    { background: #198754; }
.status-dot.disconnected { background: #dc3545; }

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card { border-radius: 8px; }
.card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.min-w-0 { min-width: 0; }   /* let text-truncate work inside flex children */

/* ── Leaflet map ─────────────────────────────────────────────────────────── */
#tank-map, #detail-map {
  border-radius: 6px;
  border: 1px solid #495057;
}

/* Marker-popup "Details" button — Leaflet recolours popup links; force white. */
.leaflet-popup-content a.popup-details,
.leaflet-popup-content a.popup-details:hover,
.leaflet-popup-content a.popup-details:focus {
  color: #fff;
  text-decoration: none;
}

/* ── Tank cards ──────────────────────────────────────────────────────────── */
.tank-card {
  transition: box-shadow 0.2s, transform 0.1s;
}
.tank-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,0.18); transform: translateY(-1px); }
.tank-card.tank-offline { opacity: 0.72; }

/* Vertical tank fill gauge */
.tank-gauge {
  position: relative;
  width: 30px;
  height: 68px;
  border: 2px solid #adb5bd;
  border-radius: 4px 4px 6px 6px;
  background: #f1f3f5;
  overflow: hidden;
  flex: 0 0 auto;
}
.tank-fill {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  background: #198754;
  transition: height 0.6s ease, background 0.4s;
}

/* Card real-time update flash */
.card-flash .tank-card { box-shadow: 0 0 0 3px rgba(13,110,253,0.45); }

/* ── Signal bars ─────────────────────────────────────────────────────────── */
.signal-icon { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.signal-icon span {
  display: inline-block;
  width: 4px;
  border-radius: 2px;
  background: #6c757d;
}
.signal-icon span:nth-child(1) { height:  4px; }
.signal-icon span:nth-child(2) { height:  7px; }
.signal-icon span:nth-child(3) { height: 10px; }
.signal-icon span:nth-child(4) { height: 14px; }
.signal-icon.s0 span            { background: #dc3545; height: 4px !important; }
.signal-icon.s1 span:nth-child(-n+1) { background: #ffc107; }
.signal-icon.s2 span:nth-child(-n+2) { background: #ffc107; }
.signal-icon.s3 span:nth-child(-n+3) { background: #198754; }
.signal-icon.s4 span               { background: #198754; }

/* ── Navbar ──────────────────────────────────────────────────────────────── */
.navbar-brand { font-size: 1rem; }

/* ── Modal ───────────────────────────────────────────────────────────────── */
#modal-info dt {
  font-size: 0.73rem;
  text-transform: uppercase;
  color: #6c757d;
  margin-bottom: 1px;
}
#modal-info dd { font-size: 0.88rem; margin-bottom: 8px; }
