.deviceList {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.deviceCard {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;

  &:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  }

  &.selected {
    border: 2px solid #1677ff;
  }

  &:not(.selected) {
    border: 1px solid #f5f5f5;
  }
}

.headerRow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.checkboxContainer {
  flex-shrink: 0;
}

.imeiText {
  font-size: 13px;
  color: #666;
  font-family: monospace;
  flex: 1;
}

.mainContent {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.2s ease;

  &:hover {
    background-color: #f8f9fa;
  }
}

.avatar {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
  flex-shrink: 0;
  border-radius: 6px;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .avatarText {
    font-size: 18px;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  }
}

.deviceInfo {
  flex: 1;
  min-width: 0;
}

.deviceHeader {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.deviceName {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.statusBadge {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 8px;
  font-weight: 500;

  &.online {
    color: #52c41a;
    background: #f6ffed;
    border: 1px solid #b7eb8f;
  }

  &.offline {
    color: #ff4d4f;
    background: #fff2f0;
    border: 1px solid #ffccc7;
  }
}

.infoList {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.infoItem {
  display: flex;
  align-items: center;
  gap: 8px;
}

.infoLabel {
  font-size: 13px;
  color: #666;
  min-width: 50px;
}

.infoValue {
  font-size: 13px;
  color: #333;

  &.friendCount {
    font-weight: 500;
  }
}

.arrowIcon {
  color: #999;
  font-size: 14px;
  margin-left: auto;
  transition: transform 0.2s ease;
}

.mainContent:hover .arrowIcon {
  transform: translateX(3px);
  color: #1677ff;
}

.paginationContainer {
  padding: 16px;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: center;
}
