/* Tracker styles */

.tracker-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 1.2rem;
  min-width: 120px;
}

.tracker-stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.tracker-stat-value {
  font-size: 0.95rem;
  font-weight: 600;
}

.tracker-btn {
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.tracker-btn:hover {
  border-color: var(--accent);
}

.tracker-btn.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.tracker-btn-secondary {
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.tracker-btn-secondary:hover {
  border-color: var(--accent-4);
  color: var(--text);
}

/* Leaflet map customization */
#map .leaflet-control-attribution {
  font-size: 0.7rem;
  background: rgba(255,255,255,0.8);
}

.boat-popup {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  line-height: 1.6;
}

.boat-popup strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.boat-popup .popup-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #666;
}

.boat-popup .popup-row span:last-child {
  font-weight: 500;
  color: #333;
}

/* History list */
.history-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
}

.history-item:last-child {
  border-bottom: none;
}

.history-item-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}

.history-item-info {
  flex: 1;
}

.history-item-time {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.history-item-pos {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.history-item-state {
  font-size: 0.7rem;
  background: var(--bg-alt);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  color: var(--text-muted);
}

.history-empty {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Boat marker icon */
.boat-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

@media (max-width: 768px) {
  .tracker-stat {
    min-width: 100px;
    padding: 0.6rem 1rem;
  }
  #map {
    height: 300px !important;
  }
}